ldas-tools-framecpp
2.6.2
|
#include <Verify.hh>
Public Types | |
typedef VerifyException::error_type | error_type |
typedef std::unique_ptr < FrameFilename > | frame_filename_ptr_type |
typedef boost::shared_ptr < std::exception > | error_info_type |
typedef std::list < error_info_type > | error_info_container_type |
typedef INT_4U | chkType_type |
typedef INT_4U | chkSum_type |
Public Member Functions | |
Verify () | |
INT_8U | BufferSize () const |
retrun: INT_8U - return size in bytes of the I/O buffer. More... | |
void | BufferSize (INT_8U Bytes) |
Change the size of the I/O buffer. More... | |
bool | CheckDataValid () const |
return: bool - state of checking that the data valid field is zero More... | |
void | CheckDataValid (bool Check) |
param: bool Check - true if the data valid field must be zero, false More... | |
bool | CheckDataValidAll () const |
void | CheckDataValidAll (bool Check) |
void | CheckFast (bool Check) |
Request fast checking. More... | |
bool | CheckFast () const |
Query if fast checking has been requested. More... | |
bool | CheckFileChecksum () const |
return: bool - true if checksums for frame files need to be More... | |
void | CheckFileChecksum (bool Check) |
param: bool Check - true if checksums for frame files need to be More... | |
bool | CheckFileChecksumOnly () const |
void | CheckFileChecksumOnly (bool Check) |
bool | CheckForDuplicateChannelNames () const |
Query if duplicate channel name checking has been requested. More... | |
void | CheckForDuplicateChannelNames (bool Check) |
Request checking for duplicate channel names. More... | |
bool | CheckFrameChecksum () const |
return: bool - true if checksums for individual frames need to be More... | |
void | CheckFrameChecksum (bool Check) |
param: bool Check - true if checksums for individual frames need to be More... | |
bool | CheckMD5Sum () const |
return: bool - true if md5sum for the frame file will be More... | |
void | CheckMD5Sum (bool Check) |
param: bool Check - true if md5sum for the frame file should be More... | |
void | ChecksumHeader (chkSum_type Checksum) |
Establish the Checksum value for the FrHeader. More... | |
INT_4U | ChecksumScheme () const |
Retrieve the value for the checksum scheme. More... | |
void | ChecksumScheme (INT_4U Value) |
Set the value for the checksum scheme. More... | |
bool | CollectAllErrors () const |
Retrieve the value for the checksum scheme. More... | |
void | CollectAllErrors (bool Value) |
Set the value for the collect all errors state. More... | |
error_info_container_type | ErrorInfoQueue () const |
Retrieve additional infomation about an error. More... | |
bool | Expandability () const |
Retrieve the value governing checking of compressed data. More... | |
void | Expandability (bool Value) |
Set the value governing validation of compressed data. More... | |
bool | MustHaveEOFChecksum () const |
return: bool - true if the frame file must have the EOF checksum More... | |
void | MustHaveEOFChecksum (bool Conformance) |
Change requirement of the frame file having the EOF checksum structure. More... | |
void | SeenFrEndOfFile (bool Value) |
bool | Strict () const |
return: bool - state of strictness. True for strict conformance to More... | |
void | Strict (bool Strictness) |
param: bool Strictness - true if the frame file must conform to all More... | |
bool | UseMemoryMappedIO () const |
return: bool - true if memory mapped I/O will be used More... | |
void | UseMemoryMappedIO (bool UseMemoryMappedIO) |
param: bool UseMemoryMappedIO - true if memory mapped I/O should be More... | |
bool | ValidateMetadata () const |
return: bool - true if metadata should be validated More... | |
void | ValidateMetadata (bool ValidateMetadata) |
param: bool ValidateMetadata - true if frame metadata to be verified against More... | |
void | operator() (const std::string &Filename) |
void | operator() (IFrameStream &Stream, frame_filename_ptr_type &Filename=NULL_FRAME_FILENAME) |
void | ExamineFrEndOfFileChecksum (IFrameStream &Stream, chkType_type Type, chkSum_type Sum) |
void | ExamineFrHeaderChecksum (chkSum_type Checksum) const |
Verify the checksum for the FrHeader structure. More... | |
template<int > | |
void | ExamineMagicNumber (const unsigned char *Source) |
template<> | |
void | ExamineMagicNumber (const unsigned char *Source) |
template<> | |
void | ExamineMagicNumber (const unsigned char *Source) |
template<> | |
void | ExamineMagicNumber (const unsigned char *Source) |
Static Public Attributes | |
static frame_filename_ptr_type | NULL_FRAME_FILENAME |
Friends | |
void | FrameSpec::ObjectInterface::VerifyObject (Verify &Verifier, IFrameStream &Stream) const |
typedef INT_4U FrameCPP::Common::Verify::chkSum_type |
typedef INT_4U FrameCPP::Common::Verify::chkType_type |
typedef std::list< error_info_type > FrameCPP::Common::Verify::error_info_container_type |
typedef boost::shared_ptr< std::exception > FrameCPP::Common::Verify::error_info_type |
typedef std::unique_ptr< FrameFilename > FrameCPP::Common::Verify::frame_filename_ptr_type |
Verify::Verify | ( | ) |
|
inline |
retrun: INT_8U - return size in bytes of the I/O buffer.
|
inline |
Change the size of the I/O buffer.
[in] | Bytes | establish the size in bytes of the I/O buffer. A value of 0 sets the buffer size to the system specified default. |
|
inline |
return: bool - state of checking that the data valid field is zero
|
inline |
param: bool Check - true if the data valid field must be zero, false
|
inline |
|
inline |
[in] | True | if the data valid field must be zero, false otherwise. |
|
inline |
Request fast checking.
[in] | Value | If Value is true, then fast checking is enabled; If Value is false, then fast checking is disabled. |
|
inline |
Query if fast checking has been requested.
|
inline |
return: bool - true if checksums for frame files need to be
|
inline |
param: bool Check - true if checksums for frame files need to be
|
inline |
|
inline |
|
inline |
Query if duplicate channel name checking has been requested.
|
inline |
Request checking for duplicate channel names.
|
inline |
return: bool - true if checksums for individual frames need to be
|
inline |
param: bool Check - true if checksums for individual frames need to be
|
inline |
return: bool - true if md5sum for the frame file will be
|
inline |
param: bool Check - true if md5sum for the frame file should be
|
inline |
|
inline |
Retrieve the value for the checksum scheme.
|
inline |
Set the value for the checksum scheme.
Establish the value for the checksum scheme.
|
inline |
Retrieve the value for the checksum scheme.
|
inline |
Set the value for the collect all errors state.
Establish the value for the checksum scheme.
[in] | Value | True if errors should be buffered till the end. |
|
inline |
Retrieve additional infomation about an error.
void Verify::ExamineFrEndOfFileChecksum | ( | IFrameStream & | Stream, |
chkType_type | Type, | ||
chkSum_type | Sum | ||
) |
void Verify::ExamineFrHeaderChecksum | ( | chkSum_type | Checksum | ) | const |
void FrameCPP::Common::Verify::ExamineMagicNumber | ( | const unsigned char * | Source | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve the value governing checking of compressed data.
|
inline |
Set the value governing validation of compressed data.
[in] | Value | If Value is true, then compressed data should be expanded as part of data validation. If Value is false, then compressed data should not be expanded as part of data validation. |
|
inline |
return: bool - true if the frame file must have the EOF checksum
|
inline |
Change requirement of the frame file having the EOF checksum structure.
[in] | Conformance | true if the frame file must have the EOF checksum structure, false otherwise |
void Verify::operator() | ( | const std::string & | Filename | ) |
void Verify::operator() | ( | IFrameStream & | Stream, |
frame_filename_ptr_type & | Filename = NULL_FRAME_FILENAME |
||
) |
|
inline |
|
inline |
return: bool - state of strictness. True for strict conformance to
|
inline |
param: bool Strictness - true if the frame file must conform to all
|
inline |
return: bool - true if memory mapped I/O will be used
|
inline |
param: bool UseMemoryMappedIO - true if memory mapped I/O should be
|
inline |
return: bool - true if metadata should be validated
|
inline |
param: bool ValidateMetadata - true if frame metadata to be verified against
|
friend |
|
static |