Public Member Functions | Protected Member Functions | List of all members
daqdataformats::RawConfigurationBlock Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-30/DAQDataFormats/cxx/include/RawConfigurationBlock.h"

Inheritance diagram for daqdataformats::RawConfigurationBlock:

Public Member Functions

 RawConfigurationBlock (const version_t version=rawconfhdr::RAWCONFIGURATIONBLOCKHEADER_LATEST_VERSION)
 Constructors. More...
 
 RawConfigurationBlock (const RawConfigurationBlock &copy_in)
 The default constructor. More...
 
 RawConfigurationBlock (const void *dadablockheader_buffer, const version_t version=rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION)
 Deep copy constructor. More...
 
 ~RawConfigurationBlock ()
 Destructor. More...
 
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource bool close (const bool produce_crc=false)
 
RawConfigurationSystemIDgetSystemID (const uint32_t isystem)
 
RawConfigurationSystemIDgetSystemIDConst (const uint32_t isystem) const
 
uint32_t getDAQSystemID (const uint32_t id)
 
uint32_t getConfigurationHeaderVersion () const
 

Protected Member Functions

bool setFunctionPointers ()
 

Detailed Description

Definition at line 26 of file RawConfigurationBlock.h.

Constructor & Destructor Documentation

daqdataformats::RawConfigurationBlock::RawConfigurationBlock ( const version_t  version = rawconfhdr::RAWCONFIGURATIONBLOCKHEADER_LATEST_VERSION)

Constructors.

Definition at line 23 of file RawConfigurationBlock.cpp.

References daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockMaximumSize.

23  :
24  PREVIOUS_VERSION_CLASS_NAME(version)
25 {
26  INITIALIZE_DEBUGGING_VARIABLES;
28  defaultConstructorFloatingSize();
29 
30  _tail = new RawConfigurationTail(_version_ConfigurationTail);
31 }
const XML_Char * version
Definition: expat.h:187
daqdataformats::RawConfigurationBlock::RawConfigurationBlock ( const RawConfigurationBlock copy_in)

The default constructor.

Definition at line 34 of file RawConfigurationBlock.cpp.

34  :
35  PREVIOUS_VERSION_CLASS_NAME(copy_in)
36 {
37  INITIALIZE_DEBUGGING_VARIABLES;
38  lastOperationsInDeepCopy(copy_in);
39  _tail = new RawConfigurationTail(_version_ConfigurationTail);
40 }
daqdataformats::RawConfigurationBlock::RawConfigurationBlock ( const void dadablockheader_buffer,
const version_t  version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION 
)

Deep copy constructor.

Definition at line 43 of file RawConfigurationBlock.cpp.

References daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockMaximumSize.

43  :
44  PREVIOUS_VERSION_CLASS_NAME(version)
45 {
46  INITIALIZE_DEBUGGING_VARIABLES;
48  copy(datablock_buffer);
49 
50  _tail = new RawConfigurationTail(_version_ConfigurationTail);
51 }
const XML_Char * version
Definition: expat.h:187
daqdataformats::RawConfigurationBlock::~RawConfigurationBlock ( )

Destructor.

Shallow copy constructor

Definition at line 55 of file RawConfigurationBlock.cpp.

55 {}

Member Function Documentation

bool daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::close ( const bool  produce_crc = false)
inline

If internal buffer, need to adjust the size

Adjust the size

Set Tail's address and initialize it

Add CRC at the very end of _Buffer

Definition at line 39 of file RawConfigurationBlock.h.

References getSystemID(), getSystemIDConst(), IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR, IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR, IMPLEMENT_GET_AND_SET_MAIN, IMPLEMENT_GET_MAIN, IMPLEMENT_SET_MAIN, and RETURN_FUNCTION.

Referenced by daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor::fillDataFormat(), daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor::getEmptyDataFormat(), and daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::init().

39 {RETURN_FUNCTION(close)(produce_crc);}
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource bool close(const bool produce_crc=false)
uint32_t daqdataformats::RawConfigurationBlock::getConfigurationHeaderVersion ( ) const
inline

Definition at line 86 of file RawConfigurationBlock.h.

Referenced by getSystemIDConst().

86 { return getConfigurationVersion();}
uint32_t daqdataformats::RawConfigurationBlock::getDAQSystemID ( const uint32_t  id)
inline

These two are obsolete functions. PLEASE don't use them. Use They are here temporarily just to be compatible with old DAQDataFormats They will be removed!

Definition at line 84 of file RawConfigurationBlock.h.

References getSystemID().

84 { return getSystemID(id)->getVersion();}
RawConfigurationSystemID * getSystemID(const uint32_t isystem)
daqdataformats::RawConfigurationSystemID * daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::getSystemID ( const uint32_t  isystem)
inline
daqdataformats::RawConfigurationSystemID * daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::getSystemIDConst ( const uint32_t  isystem) const
inline
bool daqdataformats::RawConfigurationBlock::setFunctionPointers ( )
protected

Referenced by getSystemIDConst().


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