OSB_LIB::Asn1InputInfo Class Reference

Collaboration diagram for OSB_LIB::Asn1InputInfo:

Collaboration graph
[legend]
List of all members.

Detailed Description

Information about ASN.1 input files.

Definition at line 199 of file asn1tagdes.h.

Public Types

Public Member Functions

Public Attributes

Static Private Member Functions

Private Attributes


Member Typedef Documentation

typedef std::list<Asn1TagDes> OSB_LIB::Asn1InputInfo::Asn1DesList

STL container used to store the ASN.1 descriptions.

Definition at line 202 of file asn1tagdes.h.

typedef std::list<Asn1Tag>::const_iterator OSB_LIB::Asn1InputInfo::TagIter

Iterator into list of nested tags.

Definition at line 204 of file asn1tagdes.h.


Constructor & Destructor Documentation

OSB_LIB::Asn1InputInfo::Asn1InputInfo (  ) 

Default constructor.

It sets:


Member Function Documentation

void OSB_LIB::Asn1InputInfo::add ( const Asn1TagDes asn1Des  ) 

Add the description of an ASN.1 type.

const Asn1DesList& OSB_LIB::Asn1InputInfo::asn1Des (  )  const

Get list of ASN.1 descritions.

void OSB_LIB::Asn1InputInfo::clearDes (  ) 

Clear list of ASN.1 descriptions.

static const Asn1TagDes* OSB_LIB::Asn1InputInfo::find ( const Asn1DesList src,
TagIter  begin,
TagIter  end 
) [static, private]

Get the description for an ASN.1 type.

Parameters:
src List of ASN.1 description to search.
begin Iterator to begin of tag list,
it points to the top-level tag.
end Iterator to end of tag list.
Returns:
Pointer to the description for the tag, 0 if the ASN.1 tag as described by begin and end is not in asn1Des_.

static const Asn1TagDes* OSB_LIB::Asn1InputInfo::find ( const Asn1DesList src,
const Asn1Tag tag 
) [static, private]

Find the description for an ASN.1 tag.

Parameters:
src List of ASN.1 description to search.
tag ASN.1 tag to find.
Returns:
Pointer to the description for tag, 0 if the tag is not in src.

static Asn1TagDes* OSB_LIB::Asn1InputInfo::find ( Asn1DesList src,
const Asn1Tag tag 
) [static, private]

Find the description for an ASN.1 tag.

Parameters:
src List of ASN.1 description to search.
tag ASN.1 tag to find.
Returns:
Pointer to the description for tag, 0 if the tag is not in src.

const Asn1TagDes* OSB_LIB::Asn1InputInfo::find ( TagIter  begin,
TagIter  end 
) const

Get the description for an ASN.1 type.

Parameters:
begin Iterator to begin of tag list,
it points to the top-level tag.
end Iterator to end of tag list.
Returns:
Pointer to the description for the tag, 0 if the ASN.1 tag as described by begin and end is not in asn1Des_.

void OSB_LIB::Asn1InputInfo::print ( std::ostream &  os,
int  flatten = -1 
) const

Print the ASN.1 descriptions to a stream.

Parameters:
os Stream to write to.
flatten Level to which the indent of non-context specific types is reduced.
Prints the tag description in a format suitable for Asn1DesParser.

bool OSB_LIB::Asn1InputInfo::read ( const std::string &  path,
OsbErrors errors 
)

Read ASN.1 information from confiugration file.

Parameters:
path Path to configuration file.
errors Gets errors and warnings.
Returns:
true if successful, else false.
See also:
CfgFile

bool OSB_LIB::Asn1InputInfo::setDecoders ( OsbErrors errors  ) 

Set the decoder function.

Sets the decoders for all tag descriptions, i.e., calls Asn1TagDes::setDecoders() and evaluates the result.

Parameters:
errors Gets errors for unknown decoders.
Returns:
true if all decoders could be determined, else false.

void OSB_LIB::Asn1InputInfo::write ( const std::string &  path,
int  flatten = -1 
) const

Write ASN.1 information to confiugration file.

Parameters:
path Path to configuration file, an existing file is replaced.
flatten Level to which the indent of non-context specific types is reduced.
Exceptions:
OsbException in case of any error.
See also:
CfgFile

print()


Member Data Documentation

Asn1DesList OSB_LIB::Asn1InputInfo::asn1Des_ [private]

List of sub-types.

Definition at line 355 of file asn1tagdes.h.

Asn1Byte OSB_LIB::Asn1InputInfo::blkFiller_

The block filler.

Definition at line 352 of file asn1tagdes.h.

size_t OSB_LIB::Asn1InputInfo::blkSize_

Block size of the input file.

It is 0 for contiguous files.

Definition at line 350 of file asn1tagdes.h.


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