OSB_LIB::Asn1Reader Class Reference

Collaboration diagram for OSB_LIB::Asn1Reader:

Collaboration graph
[legend]
List of all members.

Detailed Description

Read and manage ASN.1 data.

Definition at line 150 of file asn1reader.h.

Public Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

OSB_LIB::Asn1Reader::Asn1Reader (  ) 

Default constructor.

OSB_LIB::Asn1Reader::~Asn1Reader (  ) 

Destructor: deletes buffer_.

OSB_LIB::Asn1Reader::Asn1Reader ( const Asn1Reader  )  [private]

Prevent copying: not implemented.


Member Function Documentation

void OSB_LIB::Asn1Reader::asn1Data ( Asn1Data dest  )  const

Provide data as binary ASN.1.

Parameters:
dest Buffer to store the binary data.
This member is provided to write ASN.1 records with error(s) to a file.

bool OSB_LIB::Asn1Reader::getBlock ( FILE *  input  )  [private]

Get ASN.1 data from file with block structure.

Parameters:
input Input file to use.
Returns:
true if successful, else false.

bool OSB_LIB::Asn1Reader::getFlat ( FILE *  input  )  [private]

Get ASN.1 data from file.

Parameters:
input Input file to use.
Returns:
true if successful, else false.

Asn1Info& OSB_LIB::Asn1Reader::info (  ) 

Get information about ASN.1 type that was read.

Meaningful only after a successful call to nextAsn1().

const Asn1Info& OSB_LIB::Asn1Reader::info (  )  const

Get information about ASN.1 type that was read.

Meaningful only after calling a successful nextAsn1().

void OSB_LIB::Asn1Reader::init ( size_t  blkSize,
Asn1Byte  blkFiller 
)

Initialize to process a file with block structure.

Parameters:
blkSize Block size of input.
blkFiller Filler byte for unused data in a block.
See also:
init().
Call nextAsn1() to retrieve the first ASN.1 record from the input file.

void OSB_LIB::Asn1Reader::init (  ) 

Initialize to process a file with contiguous ASN.1 records.

See also:
init(size_t, Asn1Byte).
Call nextAsn1() to retrieve the first ASN.1 record from the input file.

bool OSB_LIB::Asn1Reader::nextAsn1 ( FILE *  input  ) 

Get the next ASN.1 record from the input.

Parameters:
input Input file to use.
Returns:
true if another ASN.1 record is available, else false.
Reads data from input as needed:
this means that any ASN.1 info retrieved from the reader (directly with info() or via Asn1Info::nextMember()) are invalidated!

Asn1Reader& OSB_LIB::Asn1Reader::operator= ( const Asn1Reader  )  [private]

Prevent assignment: not implemented.

void OSB_LIB::Asn1Reader::reserve ( size_t  size,
bool  exact 
) [private]

Allocate memory for buffer_.

Parameters:
size Requested size of buffer_.
exact Flag if the requested size is exact or minimal.


Member Data Documentation

Asn1Byte OSB_LIB::Asn1Reader::blkFiller_ [private]

The block filler.

Definition at line 261 of file asn1reader.h.

size_t OSB_LIB::Asn1Reader::blkSize_ [private]

Block size of the input file.

It is 0 for contiguous files.

Definition at line 259 of file asn1reader.h.

Asn1Byte* OSB_LIB::Asn1Reader::buffer_ [private]

Data buffer for ASN.1 data.

Definition at line 264 of file asn1reader.h.

long OSB_LIB::Asn1Reader::bufFilePos_ [private]

The position of buffer_[0] in the input file.

Definition at line 273 of file asn1reader.h.

size_t OSB_LIB::Asn1Reader::bufSize_ [private]

Size of data allocated to buffer_.

Definition at line 266 of file asn1reader.h.

long OSB_LIB::Asn1Reader::bytesRead_ [private]

Number of bytes read from the input file.

Definition at line 276 of file asn1reader.h.

size_t OSB_LIB::Asn1Reader::curPos_ [private]

Current position in buffer_.

Definition at line 271 of file asn1reader.h.

size_t OSB_LIB::Asn1Reader::dataSize_ [private]

Size of valid data in buffer_.

Definition at line 269 of file asn1reader.h.

Asn1Info OSB_LIB::Asn1Reader::info_ [private]

Information about ASN.1 type that was read.

Definition at line 279 of file asn1reader.h.


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