OSB_LIB::Asn1ToId2 Class Reference

Inheritance diagram for OSB_LIB::Asn1ToId2:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::Asn1ToId2:

Collaboration graph
[legend]
List of all members.

Detailed Description

Convert ASN.1 to Id2<T>.

Definition at line 936 of file cdrasn1.h.

Public Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_LIB::Asn1ToId2::Asn1ToId2 ( CdrAsn1Tag  id1Tag,
CdrAsn1Tag  id2Tag 
)

The only constructor.

Parameters:
id1Tag Value of tag for first id.
id2Tag Value of tag for second id.


Member Function Documentation

size_t OSB_LIB::Asn1ToId2::decodeId ( long dest,
const Asn1Info src,
CdrAsn1Tag  expectedTag,
OsbErrors errors 
) [private]

Decode one id.

size_t OSB_LIB::Asn1ToId2::operator() ( Asn1Info src,
OsbErrors errors 
) [virtual]

Decode from ASN.1.

Parameters:
src ASN.1 type with the two id's to decode.
errors Container for detected errors.
Returns:
The number of detected errors: 0 in case of success.
Remarks:
If decoding fails, it is not meaningful to call value(Id2<T>&) because the internal members id1_ and id2_ have undefined values.

Implements OSB_LIB::Asn1Decoder.

template<typename T>
void OSB_LIB::Asn1ToId2::value ( Id2< T > &  dest  )  const [inline]

Convert decoded data into Id<2>.

Parameters:
dest Id2<T> to populate.

Definition at line 971 of file cdrasn1.h.

References id1_, and id2_.


Member Data Documentation

Asn1Int2Long OSB_LIB::Asn1ToId2::decoder_ [private]

Decoder for both id's.

Definition at line 976 of file cdrasn1.h.

long OSB_LIB::Asn1ToId2::id1_ [private]

Buffer for 1st id.

Definition at line 979 of file cdrasn1.h.

Referenced by value().

const CdrAsn1Tag OSB_LIB::Asn1ToId2::id1Tag_ [private]

Expected tag for 1st id.

Definition at line 977 of file cdrasn1.h.

long OSB_LIB::Asn1ToId2::id2_ [private]

Buffer for 2nd id.

Definition at line 980 of file cdrasn1.h.

Referenced by value().

const CdrAsn1Tag OSB_LIB::Asn1ToId2::id2Tag_ [private]

Expected tag for 2nd id.

Definition at line 978 of file cdrasn1.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:14:39 2006 for OSB Library by  doxygen 1.4.7