Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
daqdataformats::RawDAQDataConstructor Class Referenceabstract

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/DAQDataFormats/cxx/unittest/RawDAQDataConstructor.h"

Inheritance diagram for daqdataformats::RawDAQDataConstructor:
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationNameConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationSystemIDConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationTailConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::DataBlockHeaderConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventHeaderConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventTailConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockHeaderConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RunHeaderConstructor daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMaskConstructor daqdataformats::DataBlockConstructor daqdataformats::EventConstructor daqdataformats::MicroSliceConstructor daqdataformats::MicroSliceHeaderConstructor daqdataformats::MilliSliceConstructor daqdataformats::MilliSliceHeaderConstructor daqdataformats::TimingMarkerConstructor daqdataformats::TriggerConstructor daqdataformats::TriggerHeaderConstructor daqdataformats::TriggerRangeConstructor daqdataformats::TriggerTimeConstructor daqdataformats::TriggerTimingMarkerConstructor

Public Member Functions

 RawDAQDataConstructor ()
 
 RawDAQDataConstructor (const version_t)
 
virtual ~RawDAQDataConstructor ()
 
virtual daqdataformats::RawDAQDatagetFilledDataFormat (const version_t) const =0
 
virtual daqdataformats::RawDAQDatagetEmptyDataFormat (const version_t) const =0
 method to create an empty dataformat with a given version More...
 
virtual bool fillDataFormat (daqdataformats::RawDAQData *) const =0
 method to Fill the input dataformat More...
 
virtual version_t getVersion (const daqdataformats::RawDAQData *) const
 Get version of the input dataformat. More...
 
version_t getMaximumVersion () const
 Get maximum version for the dataformat. More...
 

Protected Member Functions

uint32_t boolToUint32_t (const bool number) const
 Bool to uint abd backwards conversions. More...
 
bool uint32_tToBool (const uint32_t number) const
 

Protected Attributes

version_t _maximumVersion
 Maximum version of the dataformat. More...
 

Detailed Description

Definition at line 134 of file RawDAQDataConstructor.h.

Constructor & Destructor Documentation

daqdataformats::RawDAQDataConstructor::RawDAQDataConstructor ( )

Definition at line 13 of file RawDAQDataConstructor.cpp.

13  :
14  _maximumVersion(-1)
15 {
16 }
version_t _maximumVersion
Maximum version of the dataformat.
daqdataformats::RawDAQDataConstructor::RawDAQDataConstructor ( const version_t  ver)

Definition at line 19 of file RawDAQDataConstructor.cpp.

19  :
20  _maximumVersion(ver)
21 {
22 }
version_t _maximumVersion
Maximum version of the dataformat.
daqdataformats::RawDAQDataConstructor::~RawDAQDataConstructor ( )
virtual

Definition at line 25 of file RawDAQDataConstructor.cpp.

25 { }

Member Function Documentation

uint32_t daqdataformats::RawDAQDataConstructor::boolToUint32_t ( const bool  number) const
inlineprotected

Bool to uint abd backwards conversions.

Definition at line 156 of file RawDAQDataConstructor.h.

156 { return ((number) ? 1 : 0); }
virtual bool daqdataformats::RawDAQDataConstructor::fillDataFormat ( daqdataformats::RawDAQData ) const
pure virtual

method to Fill the input dataformat

Implemented in daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RunHeaderConstructor, daqdataformats::MilliSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::DataBlockHeaderConstructor, daqdataformats::TriggerHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMaskConstructor, daqdataformats::TriggerTimeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationSystemIDConstructor, daqdataformats::TriggerTimingMarkerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventTailConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationNameConstructor, daqdataformats::TriggerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationTailConstructor, daqdataformats::DataBlockConstructor, daqdataformats::TriggerRangeConstructor, daqdataformats::EventConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor, daqdataformats::MicroSliceConstructor, daqdataformats::MicroSliceHeaderConstructor, daqdataformats::TimingMarkerConstructor, and daqdataformats::MilliSliceConstructor.

virtual daqdataformats::RawDAQData* daqdataformats::RawDAQDataConstructor::getEmptyDataFormat ( const version_t  ) const
pure virtual

method to create an empty dataformat with a given version

Implemented in daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RunHeaderConstructor, daqdataformats::MilliSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::DataBlockHeaderConstructor, daqdataformats::TriggerHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMaskConstructor, daqdataformats::TriggerTimeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationSystemIDConstructor, daqdataformats::TriggerTimingMarkerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventTailConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationNameConstructor, daqdataformats::TriggerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationTailConstructor, daqdataformats::DataBlockConstructor, daqdataformats::TriggerRangeConstructor, daqdataformats::EventConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor, daqdataformats::MicroSliceConstructor, daqdataformats::MicroSliceHeaderConstructor, daqdataformats::TimingMarkerConstructor, and daqdataformats::MilliSliceConstructor.

Referenced by daqdataformats::RawDAQDataUnitTest::checkReadData().

virtual daqdataformats::RawDAQData* daqdataformats::RawDAQDataConstructor::getFilledDataFormat ( const version_t  ) const
pure virtual

method to create a filled dataformat with a given version

Implemented in daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RunHeaderConstructor, daqdataformats::MilliSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::DataBlockHeaderConstructor, daqdataformats::TriggerHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMaskConstructor, daqdataformats::TriggerTimeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationSystemIDConstructor, daqdataformats::TriggerTimingMarkerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventTailConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationNameConstructor, daqdataformats::TriggerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationTailConstructor, daqdataformats::DataBlockConstructor, daqdataformats::TriggerRangeConstructor, daqdataformats::EventConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor, daqdataformats::MicroSliceConstructor, daqdataformats::MicroSliceHeaderConstructor, daqdataformats::TimingMarkerConstructor, and daqdataformats::MilliSliceConstructor.

Referenced by daqdataformats::RawDAQDataUnitTest::checkReadData().

version_t daqdataformats::RawDAQDataConstructor::getMaximumVersion ( ) const
inline

Get maximum version for the dataformat.

Definition at line 152 of file RawDAQDataConstructor.h.

References _maximumVersion.

152 {return _maximumVersion;}
version_t _maximumVersion
Maximum version of the dataformat.
virtual version_t daqdataformats::RawDAQDataConstructor::getVersion ( const daqdataformats::RawDAQData ) const
inlinevirtual

Get version of the input dataformat.

Reimplemented in daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RunHeaderConstructor, daqdataformats::MilliSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::DataBlockHeaderConstructor, daqdataformats::TriggerHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMaskConstructor, daqdataformats::TriggerTimeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationSystemIDConstructor, daqdataformats::TriggerTimingMarkerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventTailConstructor, daqdataformats::TriggerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationNameConstructor, daqdataformats::DataBlockConstructor, daqdataformats::EventConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationTailConstructor, daqdataformats::TriggerRangeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor, and daqdataformats::MilliSliceConstructor.

Definition at line 149 of file RawDAQDataConstructor.h.

149 { return -1;}
bool daqdataformats::RawDAQDataConstructor::uint32_tToBool ( const uint32_t  number) const
inlineprotected

Definition at line 157 of file RawDAQDataConstructor.h.

157 { return ((number) ? true : false); }

Member Data Documentation

version_t daqdataformats::RawDAQDataConstructor::_maximumVersion
protected

Maximum version of the dataformat.

Definition at line 162 of file RawDAQDataConstructor.h.

Referenced by getMaximumVersion().


The documentation for this class was generated from the following files: