ChecksumParser Class Reference

Inheritance diagram for ChecksumParser:

Barry::Parser List of all members.

Detailed Description

Definition at line 54 of file brecsum.cc.

Public Member Functions

 ChecksumParser (bool IncludeIds)
virtual void Clear ()
 Reset and prepare for a new raw data packet.
virtual void SetIds (uint8_t RecType, uint32_t UniqueId)
 Stores the IDs.
virtual void ParseFields (const Barry::Data &data, size_t &offset)
 Called to parse sub fields in the raw data packet.
virtual void Store ()
 Called at the very end of record parsing, and used to store the final packet somewhere, either in memory, disk, etc.


Member Function Documentation

virtual void ChecksumParser::Clear (  )  [inline, virtual]

Reset and prepare for a new raw data packet.

Reimplemented from Barry::Parser.

Definition at line 64 of file brecsum.cc.

References Barry::SHA1_Init().

virtual void ChecksumParser::SetIds ( uint8_t  RecType,
uint32_t  UniqueId 
) [inline, virtual]

Stores the IDs.

Reimplemented from Barry::Parser.

Definition at line 69 of file brecsum.cc.

References Barry::SHA1_Update().

virtual void ChecksumParser::ParseFields ( const Barry::Data data,
size_t &  offset 
) [inline, virtual]

Called to parse sub fields in the raw data packet.

The same data is passed as was passed in ParseHeader, only the offset will be updated if it was advanced during the header parsing.

Reimplemented from Barry::Parser.

Definition at line 76 of file brecsum.cc.

References Barry::Data::GetData(), Barry::Data::GetSize(), and Barry::SHA1_Update().

virtual void ChecksumParser::Store (  )  [inline, virtual]

Called at the very end of record parsing, and used to store the final packet somewhere, either in memory, disk, etc.

Reimplemented from Barry::Parser.

Definition at line 83 of file brecsum.cc.

References Barry::SHA1_Final().


The documentation for this class was generated from the following file:
Generated on Wed Sep 24 21:27:32 2008 for Barry by  doxygen 1.5.1