ldas-tools-framecpp
2.6.2
|
Support checksumed objects. More...
#include <FrameSpec.hh>
Public Types | |
typedef ObjectWithChecksum< ObjectType, ChecksumType > | self_type |
typedef IStream | istream_type |
typedef OStream | ostream_type |
Public Member Functions | |
ObjectWithChecksum () | |
Constructor - Default. More... | |
ObjectWithChecksum (const Description *Description) | |
Constructor. More... | |
ObjectWithChecksum (class_type Class, const Description *Description) | |
Constructor. More... | |
ObjectWithChecksum (const ObjectWithChecksum &Source) | |
copy constructor More... | |
ObjectWithChecksum (istream_type &Source) | |
Constructor - Stream. More... | |
virtual | ~ObjectWithChecksum () |
destructor More... | |
virtual streamsize_type | Bytes (const StreamBase &Stream) const |
Return the number of bytes for this object. More... | |
virtual self_type * | Create (istream_type &Stream) const |
Virtual constructor. More... | |
virtual void | Write (ostream_type &Stream) const |
Write object to the stream. More... | |
Static Public Member Functions | |
static const char * | CheckSumDataClass () |
Data class to be used in class field of FrSE. More... | |
static const char * | CheckSumDataComment () |
Comment to be used in comment field of FrSE. More... | |
Protected Member Functions | |
virtual streamsize_type | pBytes (const StreamBase &Stream) const =0 |
Number of bytes needed to write this structure. More... | |
virtual self_type * | pCreate (istream_type &Stream) const =0 |
Virtual constructor. More... | |
virtual void | pWrite (ostream_type &Stream) const =0 |
Write the structure to the stream. More... | |
Support checksumed objects.
ObjectType | Frame object type |
ChecksumType | Object used for checksum calculation |
typedef IStream FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::istream_type |
typedef OStream FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::ostream_type |
typedef ObjectWithChecksum< ObjectType, ChecksumType > FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::self_type |
FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::ObjectWithChecksum | ( | ) |
Constructor - Default.
FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::ObjectWithChecksum | ( | const Description * | Description | ) |
Constructor.
FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::ObjectWithChecksum | ( | class_type | Class, |
const Description * | Description | ||
) |
Constructor.
FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::ObjectWithChecksum | ( | const ObjectWithChecksum< ObjectType, ChecksumType > & | Source | ) |
copy constructor
FrameCPP::Common::FrameSpec::ObjectWithChecksum< ObjectType, ChecksumType >::ObjectWithChecksum | ( | istream_type & | Source | ) |
Constructor - Stream.
|
virtual |
destructor
Reimplemented in FrameCPP::Version_8::ObjectWithChecksum< ObjectType >, FrameCPP::Version_8::ObjectWithChecksum< Common::FrameSpec::Object >, FrameCPP::Version_8::ObjectWithChecksum< Common::FrSH >, FrameCPP::Version_8::ObjectWithChecksum< Common::FrTOC >, FrameCPP::Version_8::ObjectWithChecksum< Common::FrDetector >, FrameCPP::Version_8::ObjectWithChecksum< Common::FrameH >, and FrameCPP::Version_8::ObjectWithChecksum< Common::FrStatData >.
|
virtual |
Return the number of bytes for this object.
[in] | Stream | Stream characteristics used to determine the number of bytes needed to format the object for the Stream. |
|
static |
Data class to be used in class field of FrSE.
|
static |
Comment to be used in comment field of FrSE.
|
virtual |
Virtual constructor.
[in] | Stream | The input stream from where the object is being read. |
|
protectedpure virtual |
Number of bytes needed to write this structure.
[in] | Stream | The stream from which to the object is being read or written. |
Implemented in FrameCPP::Version_8::FrVect, FrameCPP::Version_8::FrDetector, FrameCPP::Version_8::FrProcData, FrameCPP::Version_8::FrSimData, FrameCPP::Version_8::FrRawData, FrameCPP::Version_8::FrSimEvent, FrameCPP::Version_8::FrAdcData, FrameCPP::Version_8::FrSerData, FrameCPP::Version_8::FrSummary, FrameCPP::Version_8::FrEvent, FrameCPP::Version_8::FrameH, FrameCPP::Version_8::FrStatData, FrameCPP::Version_8::FrTable, FrameCPP::Version_8::FrTOC, FrameCPP::Version_8::FrHistory, FrameCPP::Version_8::FrMsg, FrameCPP::Version_8::FrEndOfFrame, FrameCPP::Version_8::FrSH, and FrameCPP::Version_8::FrSE.
|
protectedpure virtual |
Virtual constructor.
[in] | Stream | The input stream from where the object is being read. |
Implemented in FrameCPP::Version_8::FrVect, FrameCPP::Version_8::FrDetector, FrameCPP::Version_8::FrProcData, FrameCPP::Version_8::FrSimData, FrameCPP::Version_8::FrRawData, FrameCPP::Version_8::FrSimEvent, FrameCPP::Version_8::FrAdcData, FrameCPP::Version_8::FrSerData, FrameCPP::Version_8::FrSummary, FrameCPP::Version_8::FrEvent, FrameCPP::Version_8::FrameH, FrameCPP::Version_8::FrStatData, FrameCPP::Version_8::FrTable, FrameCPP::Version_8::FrTOC, FrameCPP::Version_8::FrHistory, FrameCPP::Version_8::FrMsg, FrameCPP::Version_8::FrEndOfFrame, FrameCPP::Version_8::FrSH, and FrameCPP::Version_8::FrSE.
|
protectedpure virtual |
Write the structure to the stream.
[in] | Stream | The output stream where the object is to be written. |
Implemented in FrameCPP::Version_8::FrVect, FrameCPP::Version_8::FrDetector, FrameCPP::Version_8::FrProcData, FrameCPP::Version_8::FrSimData, FrameCPP::Version_8::FrRawData, FrameCPP::Version_8::FrSimEvent, FrameCPP::Version_8::FrAdcData, FrameCPP::Version_8::FrSerData, FrameCPP::Version_8::FrSummary, FrameCPP::Version_8::FrEvent, FrameCPP::Version_8::FrameH, FrameCPP::Version_8::FrStatData, FrameCPP::Version_8::FrTable, FrameCPP::Version_8::FrTOC, FrameCPP::Version_8::FrHistory, FrameCPP::Version_8::FrMsg, FrameCPP::Version_8::FrEndOfFrame, FrameCPP::Version_8::FrSH, and FrameCPP::Version_8::FrSE.
|
virtual |
Write object to the stream.