OSB_LIB::Asn1DesParser Class Reference

Collaboration diagram for OSB_LIB::Asn1DesParser:

Collaboration graph
[legend]
List of all members.

Detailed Description

Parser for ASN.1 tag descriptions.

The parsing strategy is based on token speparated by ,;{ or }:
the parser reads the next token and checks if its separator is acceptable.

Definition at line 365 of file asn1tagdes.h.

Public Member Functions

Private Member Functions

Private Attributes

Classes


Constructor & Destructor Documentation

OSB_LIB::Asn1DesParser::Asn1DesParser ( std::istream &  is,
size_t  lineNo = 1 
) [explicit]

Constructor with input file.

Parameters:
is Input stream to parse, it must be open.
lineNo Line number in input.

OSB_LIB::Asn1DesParser::Asn1DesParser ( const Asn1DesParser rhs  )  [private]

Prevent copying: not implemented.


Member Function Documentation

size_t OSB_LIB::Asn1DesParser::colNo (  )  const

Current column.

Error OSB_LIB::Asn1DesParser::error ( OsbBaseError::ErrorNo  errNo  )  [private]

Create an error.

bool OSB_LIB::Asn1DesParser::getChar ( char &  c  )  [private]

Get next character from input file.

void OSB_LIB::Asn1DesParser::getComposed ( Asn1TagDes parent  )  [private]

Get settings for a composed tag.

bool OSB_LIB::Asn1DesParser::getDes ( Asn1TagDes dest,
bool  readTag 
) [private]

Get the next tag description.

Parameters:
dest ASN.1 description to populate.
readTag Flag to read the tag
Exceptions:
Error in case of an error.
Returns:
true if an ASN.1 description was read,
false at the end of the input stream.

bool OSB_LIB::Asn1DesParser::getDes ( Asn1TagDes dest  ) 

Get the next tag description.

Parameters:
dest ASN.1 description to populate.
Exceptions:
Error in case of an error.
Returns:
true if an ASN.1 description was read,
false at the end of the input stream.

void OSB_LIB::Asn1DesParser::getPrimitive ( Asn1TagDes dest  )  [private]

Get settings for a primitive tag.

size_t OSB_LIB::Asn1DesParser::lineNo (  )  const

Current line number.

bool OSB_LIB::Asn1DesParser::nextToken (  )  [private]

Get next token from input file.

Asn1DesParser OSB_LIB::Asn1DesParser::operator= ( const Asn1DesParser rhs  )  [private]

Prevent assignment: not implemented.


Member Data Documentation

size_t OSB_LIB::Asn1DesParser::colNo_ [private]

Current column.

Definition at line 431 of file asn1tagdes.h.

std::string OSB_LIB::Asn1DesParser::curToken_ [private]

The current token.

Definition at line 433 of file asn1tagdes.h.

std::istream& OSB_LIB::Asn1DesParser::is_ [private]

Input stream to parse.

Definition at line 427 of file asn1tagdes.h.

size_t OSB_LIB::Asn1DesParser::lineNo_ [private]

Current line number.

Definition at line 429 of file asn1tagdes.h.

char OSB_LIB::Asn1DesParser::separator_ [private]

The last separator.

Definition at line 435 of file asn1tagdes.h.


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