Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

ASN1XERInputStream Class Reference
[C++ Classes for Streaming XER Decoding.]

#include <ASN1XERInputStream.h>

Inheritance diagram for ASN1XERInputStream:

ASN1XERDecodeBuffer ASN1XERMessageBuffer ASN1XERFileInputStream ASN1XERSocketInputStream List of all members.

Detailed Description

This class is a base class for other ASN.1 XER input stream's classes. It is derived from the ASN1Stream base class. It contains variables and methods specific to streaming decoding of XER messages. It is used to manage the input stream containing the ASN.1 message to be decoded.


Public Member Functions

 ASN1XERInputStream (OSCInputStream &inputStream)
 ASN1XERInputStream (const ASN1OCTET *msgbuf, size_t numocts)
ASN1XERInputStreamoperator>> (ASN1CType &val)
int decodeObj (ASN1CType &val)

Protected Member Functions

 ASN1XERInputStream (const char *pFilename)


Constructor & Destructor Documentation

ASN1XERInputStream::ASN1XERInputStream OSCInputStream &  inputStream  )  [inline]
 

A constructor. Initializes input stream by using OSCInputStream instance. Use getStatus() method to determine has error occured during the initialization or not.

Parameters:
inputStream Input stream object.

ASN1XERInputStream::ASN1XERInputStream const ASN1OCTET *  msgbuf,
size_t  numocts
[inline]
 

A constructor. Initializes input stream by using memory buffer. Use getStatus() method to determine has error occured during the initialization or not.

Parameters:
msgbuf A pointer to a buffer containing an encoded ASN.1 message.
numocts Size of the message buffer.


Member Function Documentation

int ASN1XERInputStream::decodeObj ASN1CType &  val  ) 
 

This method decodes an ASN.1 constructed object from the stream.

Parameters:
val A reference to an object to be decoded.
Returns:
Completion status of operation:
  • 0 (ASN_OK) = success,
  • negative return value is error.

ASN1XERInputStream& ASN1XERInputStream::operator>> ASN1CType &  val  ) 
 

Decodes an ASN.1 constructed object from the stream. Use getStatus() method to determine has error occured during the operation or not.

Parameters:
val A reference to an object to be decoded.
Returns:
reference to this class to perform sequential decoding.


The documentation for this class was generated from the following file:

Copyright © 1997-2004 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 1 Oct 2004.
ASN1C XER Runtime, ASN1C v5.7x