Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-23/DAQDataFormats/cxx/unittest/ConfigurationHeaderConstructor.h"

Inheritance diagram for daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor:
daqdataformats::RawDAQDataConstructor

Public Member Functions

 ConfigurationHeaderConstructor ()
 
 ~ConfigurationHeaderConstructor ()
 
 DEFINE_TESTVALUE (DetectorID)
 
 DEFINE_TESTVALUE (ConfigurationBlockSize)
 
 DEFINE_TESTVALUE (ResourceManagerID)
 
 DEFINE_TESTVALUE (RunNumber)
 
 DEFINE_TESTVALUE (RunType)
 
 DEFINE_TESTVALUE (ConfigurationIDX)
 
 DEFINE_TESTVALUE (Partition)
 
 DEFINE_TESTVALUE (Subrun)
 
 DEFINE_TESTVALUE (SystemNumber)
 
 DEFINE_TESTVALUE (SystemVersionIDX)
 
daqdataformats::RawDAQDatagetFilledDataFormat (const daqdataformats::version_t) const
 
daqdataformats::RawDAQDatagetEmptyDataFormat (const daqdataformats::version_t) const
 method to create an empty dataformat with a given version More...
 
bool fillDataFormat (daqdataformats::RawDAQData *) const
 method to Fill the input dataformat More...
 
version_t getVersion (const daqdataformats::RawDAQData *inver) 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 45 of file ConfigurationHeaderConstructor.h.

Constructor & Destructor Documentation

daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::ConfigurationHeaderConstructor ( )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::~ConfigurationHeaderConstructor ( )

Definition at line 33 of file ConfigurationHeaderConstructor.cpp.

33 { }

Member Function Documentation

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

Bool to uint abd backwards conversions.

Definition at line 156 of file RawDAQDataConstructor.h.

156 { return ((number) ? 1 : 0); }
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( DetectorID  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( ConfigurationBlockSize  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( ResourceManagerID  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( RunNumber  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( RunType  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( ConfigurationIDX  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( Partition  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( Subrun  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( SystemNumber  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::DEFINE_TESTVALUE ( SystemVersionIDX  )
bool daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::fillDataFormat ( daqdataformats::RawDAQData ) const
virtual

method to Fill the input dataformat

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 48 of file ConfigurationHeaderConstructor.cpp.

Referenced by getFilledDataFormat().

48  {
50  setFieldToTestValue_DetectorID(microblock);
51  setFieldToTestValue_ConfigurationBlockSize(microblock);
52  setFieldToTestValue_ResourceManagerID(microblock);
53  setFieldToTestValue_RunNumber(microblock);
54  setFieldToTestValue_RunType(microblock);
55  setFieldToTestValue_ConfigurationIDX(microblock);
56  setFieldToTestValue_Partition(microblock);
57  setFieldToTestValue_Subrun(microblock);
58  setFieldToTestValue_SystemNumber(microblock);
59  setFieldToTestValue_SystemVersionIDX(microblock);
60 
61  return true;
62 }
daqdataformats::RawDAQData * daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::getEmptyDataFormat ( const daqdataformats::version_t  ) const
virtual

method to create an empty dataformat with a given version

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 43 of file ConfigurationHeaderConstructor.cpp.

Referenced by getFilledDataFormat().

daqdataformats::RawDAQData * daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor::getFilledDataFormat ( const daqdataformats::version_t  ) const
virtual

method to create a filled dataformat with a given version

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 36 of file ConfigurationHeaderConstructor.cpp.

References fillDataFormat(), getEmptyDataFormat(), and confusionMatrixTree::out.

36  {
37  RawConfigurationHeader* out = (RawConfigurationHeader*)getEmptyDataFormat(ver);
38  fillDataFormat(out);
39  return out;
40 }
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
daqdataformats::RawDAQData * getEmptyDataFormat(const daqdataformats::version_t) const
method to create an empty dataformat with a given version
version_t daqdataformats::RawDAQDataConstructor::getMaximumVersion ( ) const
inlineinherited

Get maximum version for the dataformat.

Definition at line 152 of file RawDAQDataConstructor.h.

References daqdataformats::RawDAQDataConstructor::_maximumVersion.

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

Get version of the input dataformat.

Reimplemented from daqdataformats::RawDAQDataConstructor.

Definition at line 63 of file ConfigurationHeaderConstructor.h.

63  {
64  const RawConfigurationHeader* nano_ver = (const RawConfigurationHeader*)inver;
65  return nano_ver->getConfigurationHeaderVersion();
66  }
bool daqdataformats::RawDAQDataConstructor::uint32_tToBool ( const uint32_t  number) const
inlineprotectedinherited

Definition at line 157 of file RawDAQDataConstructor.h.

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

Member Data Documentation

version_t daqdataformats::RawDAQDataConstructor::_maximumVersion
protectedinherited

Maximum version of the dataformat.

Definition at line 162 of file RawDAQDataConstructor.h.

Referenced by daqdataformats::RawDAQDataConstructor::getMaximumVersion().


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