Macros
Macros.h File Reference
#include "DAQDataFormats/FunctionBind.h"

Go to the source code of this file.

Macros

#define INIT_CUSTOM_DELEGATE(FULLFUNCTIONNAME, OUTPUT, ...)   protected: DELEGATE(CURRENT_CLASS, _function_##FULLFUNCTIONNAME, OUTPUT,__VA_ARGS__ )
 Define Get function pointer. Put it in the header of the first class. Custom output units. More...
 
#define INIT_CUSTOM_GET_FUNCTION(FULLFUNCTIONNAME, OUTPUT_UNITS)   INIT_CUSTOM_DELEGATE(FULLFUNCTIONNAME, OUTPUT_UNITS) const;
 Define Get function pointer. Put it in the header of the first class. Custom output units. More...
 
#define INIT_CUSTOM_SET_FUNCTION(FULLFUNCTIONNAME, INPUT_UNITS)   INIT_CUSTOM_DELEGATE(FULLFUNCTIONNAME, bool, INPUT_UNITS);
 Define Set function pointer. Put it in the header of the first class. Custom input units. More...
 
#define INIT_GET_AND_SET_FUNCTION(FUNCT, UNITS)
 Define both Get and Set function pointers. Put it in the header of the first class. Custom units. More...
 
#define INIT_IS_AND_SET_FUNCTION(FUNCT)
 Define both Is and Set function pointers. Put it in the header of the first class. More...
 
#define CHECK_BINDING_FUNCTION(function)
 Checking of the binding function if it's defined. More...
 
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)    EXECUTE_GENERAL_FUNCTION(_function_##FULLFUNCTIONNAME)
 Execute and return the delegate. More...
 
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
 
#define IMPLEMENT_GENERAL_GET_IN_FIRST_VERSION_CLASS(PROTECTIVENESS, NAMESPACE, FUNC, UNITS)
 These macros are used to implement gets and sets of the fields. More...
 
#define IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(PROTECTIVENESS, PREFUNCT, NAMESPACE, FUNC)
 
#define IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(PROTECTIVENESS, NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS_BOOL(PROTECTIVENESS, NAMESPACE, FUNC)
 
#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS(NAMESPACE, FUNC, UNITS)   IMPLEMENT_GENERAL_GET_IN_FIRST_VERSION_CLASS(public, NAMESPACE, FUNC, UNITS)
 Implement Get, Set method with namespace and units. And then with units=bool. More...
 
#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS(NAMESPACE, FUNC, UNITS)   IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(public, NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL(NAMESPACE, FUNC)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(public, get, NAMESPACE, FUNC)
 
#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL(NAMESPACE, FUNC)    IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS_BOOL(public, NAMESPACE, FUNC)
 
#define IMPLEMENT_IS_IN_FIRST_VERSION_CLASS(NAMESPACE, FUNC)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(public, is, NAMESPACE, FUNC)
 
#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_PROTECTED(NAMESPACE, FUNC, UNITS)   IMPLEMENT_GENERAL_GET_IN_FIRST_VERSION_CLASS(protected, NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_PROTECTED(NAMESPACE, FUNC, UNITS)   IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(protected, NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED(NAMESPACE, FUNC)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(protected, get, NAMESPACE, FUNC)
 
#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED(NAMESPACE, FUNC)    IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(protected, NAMESPACE, FUNC)
 
#define IMPLEMENT_IS_IN_FIRST_VERSION_CLASS_PROTECTED(NAMESPACE, FUNC)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(protected, is, NAMESPACE, FUNC)
 
#define IMPLEMENT_GET(FUNC, UNITS)   IMPLEMENT_GET_IN_FIRST_VERSION_CLASS(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_SET(FUNC, UNITS)   IMPLEMENT_SET_IN_FIRST_VERSION_CLASS(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_GET_BOOL(FUNC)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_SET_BOOL(FUNC)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_IS(FUNC)    IMPLEMENT_IS_IN_FIRST_VERSION_CLASS(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_GET_NOVERSION(FUNC, UNITS)   IMPLEMENT_GET_IN_FIRST_VERSION_CLASS(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_SET_NOVERSION(FUNC, UNITS)   IMPLEMENT_SET_IN_FIRST_VERSION_CLASS(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_GET_NOVERSION_BOOL(FUNC)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_SET_NOVERSION_BOOL(FUNC)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_IS_NOVERSION(FUNC)    IMPLEMENT_IS_IN_FIRST_VERSION_CLASS(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_GET_NOVERSION_PROTECTED(FUNC, UNITS)   IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_SET_NOVERSION_PROTECTED(FUNC, UNITS)   IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_GET_NOVERSION_BOOL_PROTECTED(FUNC)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_SET_NOVERSION_BOOL_PROTECTED(FUNC)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
 
#define IMPLEMENT_IS_NOVERSION_PROTECTED(FUNC)    IMPLEMENT_IS_IN_FIRST_VERSION_CLASS_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)
 
#define IMPLEMENT_GET_AND_SET(FUNC, UNITS)
 
#define IMPLEMENT_GET_AND_SET_BOOL(FUNC)
 
#define IMPLEMENT_IS_AND_SET(FUNC)
 
#define IMPLEMENT_GET_AND_SET_NOVERSION(FUNC, UNITS)
 
#define IMPLEMENT_GET_AND_SET_NOVERSION_BOOL(FUNC)
 
#define IMPLEMENT_IS_AND_SET_NOVERSION(FUNC)
 
#define IMPLEMENT_GET_AND_SET_NOVERSION_PROTECTED(FUNC, UNITS)
 
#define IMPLEMENT_GET_AND_SET_NOVERSION_BOOL_PROTECTED(FUNC)
 
#define IMPLEMENT_IS_AND_SET_NOVERSION_PROTECTED(FUNC)
 
#define DEFINE_SHIFT_FROM_MASK(FUNC)   static const uint32_t SHIFT_##FUNC = daqdataformats::calculateShiftFromAGivenMask(MASK_##FUNC)
 
#define IMPLEMENT_FIRST_GET(FUNC, UNITS)
 
#define IMPLEMENT_FIRST_SET(FUNC, UNITS)
 
#define IMPLEMENT_FIRST_GET_BOOL(FUNC)
 
#define IMPLEMENT_FIRST_SET_BOOL(FUNC)
 
#define IMPLEMENT_FIRST_IS(FUNC)
 
#define IMPLEMENT_FIRST_GET_AND_SET(FUNC, UNITS)
 
#define IMPLEMENT_FIRST_GET_AND_SET_BOOL(FUNC)
 
#define IMPLEMENT_FIRST_IS_AND_SET(FUNC)
 
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(FUNC, CONSTNESS, OUTPUT)   OUTPUT FUNC() CONSTNESS {RETURN_FUNCTION(FUNC)();}
 
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(FUNC, CONSTNESS, OUTPUT, INP1)   OUTPUT FUNC(INP1 a) CONSTNESS {RETURN_FUNCTION(FUNC)(a);}
 
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_2PAR(FUNC, CONSTNESS, OUTPUT, INP1, INP2)   OUTPUT FUNC(INP1 a,INP2 b) CONSTNESS {RETURN_FUNCTION(FUNC)(a,b);}
 
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_3PAR(FUNC, CONSTNESS, OUTPUT, INP1, INP2, INP3)   OUTPUT FUNC(INP1 a,INP2 b,INP3 c) CONSTNESS {RETURN_FUNCTION(FUNC)(a, b, c);}
 
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_4PAR(FUNC, CONSTNESS, OUTPUT, INP1, INP2, INP3, INP4)   OUTPUT FUNC(INP1 a,INP2 b,INP3 c,INP4 d) CONSTNESS {RETURN_FUNCTION(FUNC)(a,b,c,d);}
 
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_5PAR(FUNC, CONSTNESS, OUTPUT, INP1, INP2, INP3, INP4, INP5)   OUTPUT FUNC(INP1 a,INP2 b,INP3 c,INP4 d,INP5 e) CONSTNESS {RETURN_FUNCTION(FUNC)(a,b,c,d,e);}
 
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_0PAR(FUNC, CONSTNESS)   void FUNC() CONSTNESS {EXECUTE_FUNCTION(FUNC)();}
 
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_1PAR(FUNC, CONSTNESS, INP1)   void FUNC(INP1 a) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a);}
 
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_2PAR(FUNC, CONSTNESS, INP1, INP2)   void FUNC(INP1 a,INP2 b) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a,b);}
 
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_3PAR(FUNC, CONSTNESS, INP1, INP2, INP3)   void FUNC(INP1 a,INP2 b,INP3 c) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a, b, c);}
 
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_4PAR(FUNC, CONSTNESS, INP1, INP2, INP3, INP4)   void FUNC(INP1 a,INP2 b,INP3 c,INP4 d) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a,b,c,d);}
 
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_5PAR(FUNC, CONSTNESS, INP1, INP2, INP3, INP4, INP5)   void FUNC(INP1 a,INP2 b,INP3 c,INP4 d,INP5 e) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a,b,c,d,e);}
 
#define IMPLEMENT_GET_MAIN(FUNC, UNITS)   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(get##FUNC, const, UNITS)
 
#define IMPLEMENT_SET_MAIN(FUNC, UNITS)   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(set##FUNC, , bool, const UNITS)
 
#define IMPLEMENT_IS_MAIN(FUNC)   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(is##FUNC , const, bool)
 
#define IMPLEMENT_GET_AND_SET_MAIN(FUNC, UNITS)
 
#define IMPLEMENT_IS_AND_SET_MAIN(FUNC)
 
#define IMPLEMENT_MAIN_init   IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_0PAR (init , )
 
#define IMPLEMENT_MAIN_print   void print(std::ostream& os=std::cout) const {EXECUTE_FUNCTION(print)(os);}
 
#define IMPLEMENT_MAIN_sizeofdata   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(sizeofdata , const, uint32_t)
 
#define IMPLEMENT_MAIN_readData   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(readData , , void*, const void*)
 
#define IMPLEMENT_MAIN_setBufferSource   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(setBufferSource, , bool , const void*)
 
#define IMPLEMENT_MAIN_STANDARD
 
#define INIT_FIRST(FUNC, CONSTNESS, OUTPUT_UNITS, ...)
 
#define INIT_FIRST_GET(FUNC, UNITS)   INIT_FIRST(get##FUNC, const, UNITS, )
 
#define INIT_FIRST_SET(FUNC, UNITS)   INIT_FIRST(set##FUNC, , bool, const UNITS)
 
#define INIT_FIRST_GET_AND_SET(FUNC, UNITS)
 
#define BIND_FUNCTION_TO_CUSTOM_FUNCTION(FUNC, CLASS, FIRSTVERSION_NAMESPACE, BINDING, CONSTNESS, OUTPUT, ...)   _function_##FUNC = (DELEGATE(FIRSTVERSION_NAMESPACE::CLASS, , OUTPUT, __VA_ARGS__) CONSTNESS)&BINDING
 
#define BIND_FUNCTION(FUNC, CLASS, FIRSTVERSION_NAMESPACE, BINDINGVERSION_NAMESPACE, CONSTNESS, OUTPUT, ...)   BIND_FUNCTION_TO_CUSTOM_FUNCTION(FUNC,CLASS,FIRSTVERSION_NAMESPACE,BINDINGVERSION_NAMESPACE::CLASS::FUNC,CONSTNESS,OUTPUT,__VA_ARGS__)
 
#define BIND_CUSTOM_FUNCTION(FUNC, FIRSTVERSION_NAMESPACE, CONSTNESS, OUTPUT, ...)   BIND_FUNCTION(FUNC, CURRENT_CLASS, FIRSTVERSION_NAMESPACE, CURRENT_VERSION_NAMESPACE, CONSTNESS, OUTPUT, __VA_ARGS__)
 
#define BIND_GET(FUNC, FIRSTVERSION_NAMESPACE, OUTPUT)   BIND_FUNCTION(get##FUNC,CURRENT_CLASS,FIRSTVERSION_NAMESPACE,CURRENT_VERSION_NAMESPACE, const, OUTPUT, )
 
#define BIND_SET(FUNC, FIRSTVERSION_NAMESPACE, INPUT)   BIND_FUNCTION(set##FUNC,CURRENT_CLASS,FIRSTVERSION_NAMESPACE,CURRENT_VERSION_NAMESPACE, , bool , const INPUT)
 
#define BIND_IS(FUNC, FIRSTVERSION_NAMESPACE)    BIND_FUNCTION(is##FUNC ,CURRENT_CLASS,FIRSTVERSION_NAMESPACE,CURRENT_VERSION_NAMESPACE, const, bool, )
 
#define BIND_GET_AND_SET(FUNC, FIRSTVERSION_NAMESPACE, OUTPUT)
 
#define BIND_IS_AND_SET(...)
 
#define BIND_STADARD_FUNCTION(FUNC)   _function_##FUNC = (FUNC##_t) &CURRENT_VERSION_NAMESPACE::CURRENT_CLASS::FUNC;
 Binding standard functions. More...
 
#define BIND_STADARD_FUNCTIONS
 
#define IMPLEMENT_FIGUREOUT_VERSION_STATIC_WITH_CUSTOM_GET_VERSION(CLASS, GETVERSIONFUNCTION)
 
#define IMPLEMENT_FIGUREOUT_VERSION_STATIC(CLASS)   IMPLEMENT_FIGUREOUT_VERSION_STATIC_WITH_CUSTOM_GET_VERSION(CLASS, getVersion)
 This should be in the header. More...
 

Macro Definition Documentation

#define BIND_CUSTOM_FUNCTION (   FUNC,
  FIRSTVERSION_NAMESPACE,
  CONSTNESS,
  OUTPUT,
  ... 
)    BIND_FUNCTION(FUNC, CURRENT_CLASS, FIRSTVERSION_NAMESPACE, CURRENT_VERSION_NAMESPACE, CONSTNESS, OUTPUT, __VA_ARGS__)

Definition at line 257 of file Macros.h.

#define BIND_FUNCTION (   FUNC,
  CLASS,
  FIRSTVERSION_NAMESPACE,
  BINDINGVERSION_NAMESPACE,
  CONSTNESS,
  OUTPUT,
  ... 
)    BIND_FUNCTION_TO_CUSTOM_FUNCTION(FUNC,CLASS,FIRSTVERSION_NAMESPACE,BINDINGVERSION_NAMESPACE::CLASS::FUNC,CONSTNESS,OUTPUT,__VA_ARGS__)

Definition at line 253 of file Macros.h.

#define BIND_FUNCTION_TO_CUSTOM_FUNCTION (   FUNC,
  CLASS,
  FIRSTVERSION_NAMESPACE,
  BINDING,
  CONSTNESS,
  OUTPUT,
  ... 
)    _function_##FUNC = (DELEGATE(FIRSTVERSION_NAMESPACE::CLASS, , OUTPUT, __VA_ARGS__) CONSTNESS)&BINDING

Definition at line 250 of file Macros.h.

#define BIND_GET (   FUNC,
  FIRSTVERSION_NAMESPACE,
  OUTPUT 
)    BIND_FUNCTION(get##FUNC,CURRENT_CLASS,FIRSTVERSION_NAMESPACE,CURRENT_VERSION_NAMESPACE, const, OUTPUT, )

Definition at line 260 of file Macros.h.

#define BIND_GET_AND_SET (   FUNC,
  FIRSTVERSION_NAMESPACE,
  OUTPUT 
)
Value:
BIND_GET(FUNC, FIRSTVERSION_NAMESPACE, OUTPUT); \
BIND_SET(FUNC, FIRSTVERSION_NAMESPACE, OUTPUT);
#define BIND_SET(FUNC, FIRSTVERSION_NAMESPACE, INPUT)
Definition: Macros.h:261
#define BIND_GET(FUNC, FIRSTVERSION_NAMESPACE, OUTPUT)
Definition: Macros.h:260

Definition at line 264 of file Macros.h.

#define BIND_IS (   FUNC,
  FIRSTVERSION_NAMESPACE 
)    BIND_FUNCTION(is##FUNC ,CURRENT_CLASS,FIRSTVERSION_NAMESPACE,CURRENT_VERSION_NAMESPACE, const, bool, )

Definition at line 262 of file Macros.h.

#define BIND_IS_AND_SET (   ...)
Value:
BIND_IS(__VA_ARGS__); \
BIND_SET(__VA_ARGS__, bool);
#define BIND_IS(FUNC, FIRSTVERSION_NAMESPACE)
Definition: Macros.h:262

Definition at line 268 of file Macros.h.

#define BIND_SET (   FUNC,
  FIRSTVERSION_NAMESPACE,
  INPUT 
)    BIND_FUNCTION(set##FUNC,CURRENT_CLASS,FIRSTVERSION_NAMESPACE,CURRENT_VERSION_NAMESPACE, , bool , const INPUT)

Definition at line 261 of file Macros.h.

#define BIND_STADARD_FUNCTION (   FUNC)    _function_##FUNC = (FUNC##_t) &CURRENT_VERSION_NAMESPACE::CURRENT_CLASS::FUNC;

Binding standard functions.

Definition at line 274 of file Macros.h.

#define BIND_STADARD_FUNCTIONS
Value:
BIND_STADARD_FUNCTION(print); \
BIND_STADARD_FUNCTION(setBufferSource); \
BIND_STADARD_FUNCTION(readData);
#define BIND_STADARD_FUNCTION(FUNC)
Binding standard functions.
Definition: Macros.h:274
bool print

Definition at line 276 of file Macros.h.

#define CHECK_BINDING_FUNCTION (   function)
Value:
if (! function){ \
std::cout<<"Error!!! Function "<<__PRETTY_FUNCTION__<<" " \
<<"is not binded. For version "<<_version<<". " \
<<"Check the appropriate setFunctionPointers method." \
<<std::endl; \
exit(1); \
}
OStream cout
Definition: OStream.cxx:6

Checking of the binding function if it's defined.

These macros are used to define and implement get and set methods in Main Class Put them in the Header!!!!!!!!!!!!!!!!!!!

Definition at line 46 of file Macros.h.

#define DEFINE_SHIFT_FROM_MASK (   FUNC)    static const uint32_t SHIFT_##FUNC = daqdataformats::calculateShiftFromAGivenMask(MASK_##FUNC)

Definition at line 151 of file Macros.h.

#define EXECUTE_FUNCTION (   FULLFUNCTIONNAME)    EXECUTE_GENERAL_FUNCTION(_function_##FULLFUNCTIONNAME)

Execute and return the delegate.

Definition at line 54 of file Macros.h.

Referenced by daqdataformats::RawDAQData::addCheckSum(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData::addDataPoints(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock2(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock3(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock4(), daqdataformats::RawDAQData::calculateCheckSum(), daqdataformats::RawDAQData::clear(), daqdataformats::VERSION_NAMESPACE::RawEvent::close(), daqdataformats::RawDAQData::copy(), daqdataformats::RawDAQData::defaultConstructorFloatingSize(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getWordPointer(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::init(), daqdataformats::VERSION_NAMESPACE::RawEvent::init(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerRange::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationSystemID::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::init(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::init(), daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::init(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::init(), daqdataformats::VERSION_NAMESPACE::RawEventTail::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerMask::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerTime::init(), daqdataformats::VERSION_NAMESPACE::RawDataBlockHeader::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationHeader::init(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::init(), daqdataformats::VERSION_NAMESPACE::RawEventHeader::init(), daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::init(), daqdataformats::VERSION_NAMESPACE::RawRunHeader::init(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::initWithData(), daqdataformats::RawNanoSlice::initWithDataInternal(), daqdataformats::RawDAQData::lastOperationsInDeepCopy(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData::print(), daqdataformats::VERSION_NAMESPACE::RawMicroBlock::print(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::print(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::print(), daqdataformats::VERSION_NAMESPACE::RawEvent::print(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerRange::print(), daqdataformats::VERSION_NAMESPACE::RawConfigurationSystemID::print(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::print(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::print(), daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::print(), daqdataformats::VERSION_NAMESPACE::RawMicroSliceHeader::print(), daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::print(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::print(), daqdataformats::VERSION_NAMESPACE::RawEventTail::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::print(), daqdataformats::VERSION_NAMESPACE::RawTrigger::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerMask::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerTime::print(), daqdataformats::VERSION_NAMESPACE::RawDataBlockHeader::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::print(), daqdataformats::VERSION_NAMESPACE::RawConfigurationHeader::print(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::print(), daqdataformats::VERSION_NAMESPACE::RawEventHeader::print(), daqdataformats::RawDAQData::print(), daqdataformats::VERSION_NAMESPACE::RawRunHeader::print(), daqdataformats::RawDAQData::printBuffer(), daqdataformats::RawDAQData::printGeneral(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::readData(), daqdataformats::VERSION_NAMESPACE::RawMicroBlock::readData(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::readData(), daqdataformats::VERSION_NAMESPACE::RawEvent::readData(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::readData(), daqdataformats::VERSION_NAMESPACE::RawConfigurationSystemID::readData(), daqdataformats::VERSION_NAMESPACE::RawTrigger::readData(), daqdataformats::RawDAQData::readData(), daqdataformats::RawDAQData::readDataGeneral(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::readDataUnknownVersion(), daqdataformats::VERSION_NAMESPACE::RawTrigger::readDataUnknownVersion(), daqdataformats::RawDAQData::readDataUnknownVersion(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::setAllParameters(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawConfigurationSystemID::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::setParameters(), daqdataformats::VERSION_NAMESPACE::RawEvent::setTrigger2(), daqdataformats::VERSION_NAMESPACE::RawConfigurationSystemID::sizeofdata(), daqdataformats::VERSION_NAMESPACE::RawEvent::tryToSetTail(), daqdataformats::VERSION_NAMESPACE::RawEvent::tryToSetTrigger(), and daqdataformats::RawDAQData::writeData().

#define IMPLEMENT_FIGUREOUT_VERSION_STATIC (   CLASS)    IMPLEMENT_FIGUREOUT_VERSION_STATIC_WITH_CUSTOM_GET_VERSION(CLASS, getVersion)
#define IMPLEMENT_FIGUREOUT_VERSION_STATIC_WITH_CUSTOM_GET_VERSION (   CLASS,
  GETVERSIONFUNCTION 
)
Value:
version_t figureOutTheVersion (const void* buffer) const {return figureOutTheVersionStatic(buffer);} \
static version_t figureOutTheVersionStatic(const void* buffer){ \
CLASS header_zero((void*)buffer, 0); \
return (version_t)header_zero.GETVERSIONFUNCTION(); \
}
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
int32_t version_t
Definition: RawDAQData.h:72

Definition at line 286 of file Macros.h.

Referenced by daqdataformats::RawConfigurationBlock::getSystemIDConst().

#define IMPLEMENT_FIRST_GET (   FUNC,
  UNITS 
)
Value:
IMPLEMENT_GET(FUNC, UNITS); \
INIT_CUSTOM_DELEGATE(get##FUNC, UNITS, ) const
#define IMPLEMENT_GET(FUNC, UNITS)
Definition: Macros.h:101

Definition at line 154 of file Macros.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawRunHeader::readData().

#define IMPLEMENT_FIRST_GET_AND_SET (   FUNC,
  UNITS 
)
Value:
IMPLEMENT_FIRST_GET(FUNC, UNITS); \
IMPLEMENT_FIRST_SET(FUNC, UNITS)
#define IMPLEMENT_FIRST_GET(FUNC, UNITS)
Definition: Macros.h:154

Definition at line 171 of file Macros.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawNanoSlice::checkReservedForCafe(), daqdataformats::VERSION_NAMESPACE::RawEventHeader::getTailFilled(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::readData(), daqdataformats::VERSION_NAMESPACE::RawTriggerRange::readData(), daqdataformats::VERSION_NAMESPACE::RawMicroSliceHeader::readData(), daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::readData(), daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::readData(), daqdataformats::VERSION_NAMESPACE::RawEventTail::readData(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::readData(), daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::readData(), daqdataformats::VERSION_NAMESPACE::RawTriggerMask::readData(), daqdataformats::VERSION_NAMESPACE::RawTriggerTime::readData(), daqdataformats::VERSION_NAMESPACE::RawConfigurationHeader::readData(), daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::readData(), daqdataformats::VERSION_NAMESPACE::RawRunHeader::readData(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::setV1(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::setValue1(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::sizeofdata(), and daqdataformats::VERSION_NAMESPACE::RawDataBlockHeader::sizeofdata().

#define IMPLEMENT_FIRST_GET_AND_SET_BOOL (   FUNC)
#define IMPLEMENT_FIRST_GET_BOOL (   FUNC)
Value:
INIT_CUSTOM_DELEGATE(get##FUNC, bool, ) const
#define IMPLEMENT_GET_BOOL(FUNC)
Definition: Macros.h:103

Definition at line 160 of file Macros.h.

#define IMPLEMENT_FIRST_IS (   FUNC)
Value:
IMPLEMENT_IS(FUNC); \
INIT_CUSTOM_DELEGATE(is##FUNC, bool, ) const
#define IMPLEMENT_IS(FUNC)
Definition: Macros.h:105

Definition at line 166 of file Macros.h.

#define IMPLEMENT_FIRST_IS_AND_SET (   FUNC)
Value:
#define IMPLEMENT_FIRST_SET_BOOL(FUNC)
Definition: Macros.h:163
#define IMPLEMENT_FIRST_IS(FUNC)
Definition: Macros.h:166

Definition at line 177 of file Macros.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawEventHeader::getTailFilled(), and daqdataformats::VERSION_NAMESPACE::RawDataBlockHeader::sizeofdata().

#define IMPLEMENT_FIRST_SET (   FUNC,
  UNITS 
)
Value:
IMPLEMENT_SET(FUNC, UNITS); \
INIT_CUSTOM_DELEGATE(set##FUNC, bool , const UNITS)
#define IMPLEMENT_SET(FUNC, UNITS)
Definition: Macros.h:102

Definition at line 157 of file Macros.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawRunHeader::readData().

#define IMPLEMENT_FIRST_SET_BOOL (   FUNC)
Value:
INIT_CUSTOM_DELEGATE(set##FUNC, bool , const bool)
#define IMPLEMENT_SET_BOOL(FUNC)
Definition: Macros.h:104

Definition at line 163 of file Macros.h.

#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR (   FUNC,
  CONSTNESS,
  OUTPUT 
)    OUTPUT FUNC() CONSTNESS {RETURN_FUNCTION(FUNC)();}
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR (   FUNC,
  CONSTNESS,
  OUTPUT,
  INP1 
)    OUTPUT FUNC(INP1 a) CONSTNESS {RETURN_FUNCTION(FUNC)(a);}
#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_2PAR (   FUNC,
  CONSTNESS,
  OUTPUT,
  INP1,
  INP2 
)    OUTPUT FUNC(INP1 a,INP2 b) CONSTNESS {RETURN_FUNCTION(FUNC)(a,b);}

Definition at line 185 of file Macros.h.

Referenced by daqdataformats::RawNanoSlice::getHeader().

#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_3PAR (   FUNC,
  CONSTNESS,
  OUTPUT,
  INP1,
  INP2,
  INP3 
)    OUTPUT FUNC(INP1 a,INP2 b,INP3 c) CONSTNESS {RETURN_FUNCTION(FUNC)(a, b, c);}

Definition at line 187 of file Macros.h.

#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_4PAR (   FUNC,
  CONSTNESS,
  OUTPUT,
  INP1,
  INP2,
  INP3,
  INP4 
)    OUTPUT FUNC(INP1 a,INP2 b,INP3 c,INP4 d) CONSTNESS {RETURN_FUNCTION(FUNC)(a,b,c,d);}

Definition at line 189 of file Macros.h.

#define IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_5PAR (   FUNC,
  CONSTNESS,
  OUTPUT,
  INP1,
  INP2,
  INP3,
  INP4,
  INP5 
)    OUTPUT FUNC(INP1 a,INP2 b,INP3 c,INP4 d,INP5 e) CONSTNESS {RETURN_FUNCTION(FUNC)(a,b,c,d,e);}

Definition at line 191 of file Macros.h.

#define IMPLEMENT_GENERAL_GET_IN_FIRST_VERSION_CLASS (   PROTECTIVENESS,
  NAMESPACE,
  FUNC,
  UNITS 
)
Value:
PROTECTIVENESS: UNITS get##FUNC() const { \
const uint32_t* pointer = &(RAWBUFF32[NAMESPACE::WORD_##FUNC]); \
return (UNITS) (BITFIELDGET(*pointer, NAMESPACE::MASK_##FUNC, NAMESPACE::SHIFT_##FUNC)); \
}
#define BITFIELDGET(block, mask, shift)
Definition: BitFields.h:23
#define RAWBUFF32
Definition: RawDAQData.h:16

These macros are used to implement gets and sets of the fields.

Definition at line 64 of file Macros.h.

#define IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL (   PROTECTIVENESS,
  PREFUNCT,
  NAMESPACE,
  FUNC 
)
Value:
PROTECTIVENESS: bool PREFUNCT##FUNC() const { \
const uint32_t* pointer = &(RAWBUFF32[NAMESPACE::WORD_##FUNC]); \
return uint32_tToBool(BITFIELDGET(*pointer, NAMESPACE::MASK_##FUNC, NAMESPACE::SHIFT_##FUNC)); \
}
#define BITFIELDGET(block, mask, shift)
Definition: BitFields.h:23
#define RAWBUFF32
Definition: RawDAQData.h:16

Definition at line 69 of file Macros.h.

#define IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS (   PROTECTIVENESS,
  NAMESPACE,
  FUNC,
  UNITS 
)
Value:
PROTECTIVENESS: bool set##FUNC(const UNITS value) { \
uint32_t* pointer = &(RAWBUFF32[NAMESPACE::WORD_##FUNC]); \
BITFIELDSET(*pointer, value, NAMESPACE::MASK_##FUNC, NAMESPACE::SHIFT_##FUNC); \
return true; \
}
const XML_Char int const XML_Char * value
Definition: expat.h:331
#define RAWBUFF32
Definition: RawDAQData.h:16

Definition at line 74 of file Macros.h.

#define IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS_BOOL (   PROTECTIVENESS,
  NAMESPACE,
  FUNC 
)
Value:
PROTECTIVENESS: bool set##FUNC(const bool value) { \
uint32_t* pointer = &(RAWBUFF32[NAMESPACE::WORD_##FUNC]); \
const uint32_t val = boolToUint32_t(value); \
BITFIELDSET(*pointer, val, NAMESPACE::MASK_##FUNC, NAMESPACE::SHIFT_##FUNC); \
return true; \
}
const XML_Char int const XML_Char * value
Definition: expat.h:331
#define RAWBUFF32
Definition: RawDAQData.h:16

Definition at line 80 of file Macros.h.

#define IMPLEMENT_GET (   FUNC,
  UNITS 
)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
#define IMPLEMENT_GET_AND_SET (   FUNC,
  UNITS 
)
#define IMPLEMENT_GET_AND_SET_BOOL (   FUNC)
Value:
IMPLEMENT_SET_BOOL(FUNC)
#define IMPLEMENT_GET_BOOL(FUNC)
Definition: Macros.h:103

Definition at line 123 of file Macros.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawMicroSliceHeader::readData(), and daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::readData().

#define IMPLEMENT_GET_AND_SET_MAIN (   FUNC,
  UNITS 
)
Value:
IMPLEMENT_GET_MAIN(FUNC, UNITS); \
IMPLEMENT_SET_MAIN(FUNC, UNITS)
#define IMPLEMENT_GET_MAIN(FUNC, UNITS)
Definition: Macros.h:208

Definition at line 217 of file Macros.h.

Referenced by daqdataformats::RawConfigurationBlock::close(), daqdataformats::RawTrigger::readData(), and daqdataformats::RawDataBlock::readData().

#define IMPLEMENT_GET_AND_SET_NOVERSION (   FUNC,
  UNITS 
)
Value:
IMPLEMENT_SET_NOVERSION(FUNC, UNITS)
#define IMPLEMENT_GET_NOVERSION(FUNC, UNITS)
Definition: Macros.h:107

Definition at line 130 of file Macros.h.

Referenced by daqdataformats::RawMilliSliceIndexHeader::sizeofdata(), daqdataformats::RawDCMChan::sizeofdata(), and daqdataformats::RawMilliSliceHeader::sizeofdata().

#define IMPLEMENT_GET_AND_SET_NOVERSION_BOOL (   FUNC)
Value:
IMPLEMENT_SET_NOVERSION_BOOL(FUNC)
#define IMPLEMENT_GET_NOVERSION_BOOL(FUNC)
Definition: Macros.h:109

Definition at line 133 of file Macros.h.

#define IMPLEMENT_GET_AND_SET_NOVERSION_BOOL_PROTECTED (   FUNC)
Value:
IMPLEMENT_SET_NOVERSION_BOOL_PROTECTED(FUNC)
#define IMPLEMENT_GET_NOVERSION_BOOL_PROTECTED(FUNC)
Definition: Macros.h:115

Definition at line 143 of file Macros.h.

#define IMPLEMENT_GET_AND_SET_NOVERSION_PROTECTED (   FUNC,
  UNITS 
)
Value:
IMPLEMENT_SET_NOVERSION_PROTECTED(FUNC, UNITS)
#define IMPLEMENT_GET_NOVERSION_PROTECTED(FUNC, UNITS)
Definition: Macros.h:113

Definition at line 140 of file Macros.h.

Definition at line 103 of file Macros.h.

#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS (   NAMESPACE,
  FUNC,
  UNITS 
)    IMPLEMENT_GENERAL_GET_IN_FIRST_VERSION_CLASS(public, NAMESPACE, FUNC, UNITS)

Implement Get, Set method with namespace and units. And then with units=bool.

Definition at line 89 of file Macros.h.

#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL (   NAMESPACE,
  FUNC 
)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(public, get, NAMESPACE, FUNC)

Definition at line 91 of file Macros.h.

#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED (   NAMESPACE,
  FUNC 
)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(protected, get, NAMESPACE, FUNC)

Definition at line 97 of file Macros.h.

#define IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_PROTECTED (   NAMESPACE,
  FUNC,
  UNITS 
)    IMPLEMENT_GENERAL_GET_IN_FIRST_VERSION_CLASS(protected, NAMESPACE, FUNC, UNITS)

Definition at line 95 of file Macros.h.

#define IMPLEMENT_GET_MAIN (   FUNC,
  UNITS 
)    IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(get##FUNC, const, UNITS)

Definition at line 208 of file Macros.h.

Referenced by daqdataformats::RawConfigurationBlock::close().

#define IMPLEMENT_GET_NOVERSION (   FUNC,
  UNITS 
)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
#define IMPLEMENT_GET_NOVERSION_BOOL (   FUNC)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)

Definition at line 109 of file Macros.h.

#define IMPLEMENT_GET_NOVERSION_BOOL_PROTECTED (   FUNC)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)

Definition at line 115 of file Macros.h.

#define IMPLEMENT_GET_NOVERSION_PROTECTED (   FUNC,
  UNITS 
)    IMPLEMENT_GET_IN_FIRST_VERSION_CLASS_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)

Definition at line 113 of file Macros.h.

Definition at line 105 of file Macros.h.

#define IMPLEMENT_IS_AND_SET (   FUNC)
Value:
IMPLEMENT_IS(FUNC) \
IMPLEMENT_SET_BOOL(FUNC)
#define IMPLEMENT_IS(FUNC)
Definition: Macros.h:105

Definition at line 126 of file Macros.h.

#define IMPLEMENT_IS_AND_SET_MAIN (   FUNC)
Value:
IMPLEMENT_SET_MAIN(FUNC, bool)
#define IMPLEMENT_IS_MAIN(FUNC)
Definition: Macros.h:212

Definition at line 220 of file Macros.h.

Referenced by daqdataformats::RawDataBlock::readData().

#define IMPLEMENT_IS_AND_SET_NOVERSION (   FUNC)
Value:
IMPLEMENT_SET_NOVERSION_BOOL(FUNC)
#define IMPLEMENT_IS_NOVERSION(FUNC)
Definition: Macros.h:111

Definition at line 136 of file Macros.h.

Referenced by daqdataformats::RawMilliSliceIndexHeader::sizeofdata(), and daqdataformats::RawMilliSliceHeader::sizeofdata().

#define IMPLEMENT_IS_AND_SET_NOVERSION_PROTECTED (   FUNC)
Value:
IMPLEMENT_SET_NOVERSION_BOOL_PROTECTED(FUNC)
#define IMPLEMENT_IS_NOVERSION_PROTECTED(FUNC)
Definition: Macros.h:117

Definition at line 146 of file Macros.h.

#define IMPLEMENT_IS_IN_FIRST_VERSION_CLASS (   NAMESPACE,
  FUNC 
)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(public, is, NAMESPACE, FUNC)

Definition at line 93 of file Macros.h.

#define IMPLEMENT_IS_IN_FIRST_VERSION_CLASS_PROTECTED (   NAMESPACE,
  FUNC 
)    IMPLEMENT_GENERAL_GET_OR_IS_IN_FIRST_VERSION_CLASS_BOOL(protected, is, NAMESPACE, FUNC)

Definition at line 99 of file Macros.h.

#define IMPLEMENT_IS_MAIN (   FUNC)    IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(is##FUNC , const, bool)

Definition at line 212 of file Macros.h.

Referenced by daqdataformats::RawDataBlock::readData().

#define IMPLEMENT_IS_NOVERSION (   FUNC)    IMPLEMENT_IS_IN_FIRST_VERSION_CLASS(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)

Definition at line 111 of file Macros.h.

#define IMPLEMENT_IS_NOVERSION_PROTECTED (   FUNC)    IMPLEMENT_IS_IN_FIRST_VERSION_CLASS_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)

Definition at line 117 of file Macros.h.

#define IMPLEMENT_MAIN_init   IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_0PAR (init , )

Definition at line 224 of file Macros.h.

#define IMPLEMENT_MAIN_print   void print(std::ostream& os=std::cout) const {EXECUTE_FUNCTION(print)(os);}

Definition at line 225 of file Macros.h.

#define IMPLEMENT_MAIN_readData   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(readData , , void*, const void*)

Definition at line 227 of file Macros.h.

#define IMPLEMENT_MAIN_setBufferSource   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(setBufferSource, , bool , const void*)

Definition at line 228 of file Macros.h.

Referenced by daqdataformats::RawDataBlock::close().

#define IMPLEMENT_MAIN_sizeofdata   IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR(sizeofdata , const, uint32_t)

Definition at line 226 of file Macros.h.

#define IMPLEMENT_MAIN_STANDARD
Value:
IMPLEMENT_MAIN_init \
IMPLEMENT_MAIN_print \
IMPLEMENT_MAIN_sizeofdata \
using PREVIOUS_VERSION_CLASS_NAME::readData; \
IMPLEMENT_MAIN_readData
bool print

Definition at line 230 of file Macros.h.

Referenced by daqdataformats::RawDataBlock::close().

#define IMPLEMENT_SET (   FUNC,
  UNITS 
)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS(VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)

Definition at line 104 of file Macros.h.

#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS (   NAMESPACE,
  FUNC,
  UNITS 
)    IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(public, NAMESPACE, FUNC, UNITS)

Definition at line 90 of file Macros.h.

#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL (   NAMESPACE,
  FUNC 
)    IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS_BOOL(public, NAMESPACE, FUNC)

Definition at line 92 of file Macros.h.

#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED (   NAMESPACE,
  FUNC 
)    IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(protected, NAMESPACE, FUNC)

Definition at line 98 of file Macros.h.

#define IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_PROTECTED (   NAMESPACE,
  FUNC,
  UNITS 
)    IMPLEMENT_GENERAL_SET_IN_FIRST_VERSION_CLASS(protected, NAMESPACE, FUNC, UNITS)

Definition at line 96 of file Macros.h.

#define IMPLEMENT_SET_MAIN (   FUNC,
  UNITS 
)    IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR(set##FUNC, , bool, const UNITS)
#define IMPLEMENT_SET_NOVERSION (   FUNC,
  UNITS 
)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)

Definition at line 108 of file Macros.h.

#define IMPLEMENT_SET_NOVERSION_BOOL (   FUNC)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL(CURRENT_FIELDS_SUB_NAMESPACE, FUNC)

Definition at line 110 of file Macros.h.

#define IMPLEMENT_SET_NOVERSION_BOOL_PROTECTED (   FUNC)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_BOOL_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)

Definition at line 116 of file Macros.h.

#define IMPLEMENT_SET_NOVERSION_PROTECTED (   FUNC,
  UNITS 
)    IMPLEMENT_SET_IN_FIRST_VERSION_CLASS_PROTECTED(CURRENT_FIELDS_SUB_NAMESPACE, FUNC, UNITS)
#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_0PAR (   FUNC,
  CONSTNESS 
)    void FUNC() CONSTNESS {EXECUTE_FUNCTION(FUNC)();}

Definition at line 194 of file Macros.h.

#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_1PAR (   FUNC,
  CONSTNESS,
  INP1 
)    void FUNC(INP1 a) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a);}

Definition at line 196 of file Macros.h.

Referenced by daqdataformats::RawNanoSlice::getHeader().

#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_2PAR (   FUNC,
  CONSTNESS,
  INP1,
  INP2 
)    void FUNC(INP1 a,INP2 b) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a,b);}

Definition at line 198 of file Macros.h.

#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_3PAR (   FUNC,
  CONSTNESS,
  INP1,
  INP2,
  INP3 
)    void FUNC(INP1 a,INP2 b,INP3 c) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a, b, c);}

Definition at line 200 of file Macros.h.

#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_4PAR (   FUNC,
  CONSTNESS,
  INP1,
  INP2,
  INP3,
  INP4 
)    void FUNC(INP1 a,INP2 b,INP3 c,INP4 d) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a,b,c,d);}

Definition at line 202 of file Macros.h.

#define IMPLEMENT_VOID_RETURNING_FUNCTION_POINTER_5PAR (   FUNC,
  CONSTNESS,
  INP1,
  INP2,
  INP3,
  INP4,
  INP5 
)    void FUNC(INP1 a,INP2 b,INP3 c,INP4 d,INP5 e) CONSTNESS {EXECUTE_FUNCTION(FUNC)(a,b,c,d,e);}

Definition at line 204 of file Macros.h.

#define INIT_CUSTOM_DELEGATE (   FULLFUNCTIONNAME,
  OUTPUT,
  ... 
)    protected: DELEGATE(CURRENT_CLASS, _function_##FULLFUNCTIONNAME, OUTPUT,__VA_ARGS__ )

Define Get function pointer. Put it in the header of the first class. Custom output units.

These macros are used to put definitions of function pointers in the Header of the first version of the class Put them in the Header!!!!!!!!!!!!!!!!!!!

Definition at line 22 of file Macros.h.

#define INIT_CUSTOM_GET_FUNCTION (   FULLFUNCTIONNAME,
  OUTPUT_UNITS 
)    INIT_CUSTOM_DELEGATE(FULLFUNCTIONNAME, OUTPUT_UNITS) const;

Define Get function pointer. Put it in the header of the first class. Custom output units.

Definition at line 25 of file Macros.h.

#define INIT_CUSTOM_SET_FUNCTION (   FULLFUNCTIONNAME,
  INPUT_UNITS 
)    INIT_CUSTOM_DELEGATE(FULLFUNCTIONNAME, bool, INPUT_UNITS);

Define Set function pointer. Put it in the header of the first class. Custom input units.

Definition at line 28 of file Macros.h.

#define INIT_FIRST (   FUNC,
  CONSTNESS,
  OUTPUT_UNITS,
  ... 
)
#define INIT_FIRST_GET (   FUNC,
  UNITS 
)    INIT_FIRST(get##FUNC, const, UNITS, )

Definition at line 243 of file Macros.h.

#define INIT_FIRST_GET_AND_SET (   FUNC,
  UNITS 
)
Value:
INIT_FIRST_GET(FUNC, UNITS); \
INIT_FIRST_SET(FUNC, UNITS)
#define INIT_FIRST_SET(FUNC, UNITS)
Definition: Macros.h:244
#define INIT_FIRST_GET(FUNC, UNITS)
Definition: Macros.h:243

Definition at line 245 of file Macros.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawMicroSliceHeader::readData(), and daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::sizeofdata().

#define INIT_FIRST_SET (   FUNC,
  UNITS 
)    INIT_FIRST(set##FUNC, , bool, const UNITS)

Definition at line 244 of file Macros.h.

#define INIT_GET_AND_SET_FUNCTION (   FUNCT,
  UNITS 
)
Value:
INIT_CUSTOM_GET_FUNCTION(get##FUNCT, UNITS) \
INIT_CUSTOM_SET_FUNCTION(set##FUNCT, UNITS)
#define INIT_CUSTOM_GET_FUNCTION(FULLFUNCTIONNAME, OUTPUT_UNITS)
Define Get function pointer. Put it in the header of the first class. Custom output units...
Definition: Macros.h:25

Define both Get and Set function pointers. Put it in the header of the first class. Custom units.

Definition at line 31 of file Macros.h.

#define INIT_IS_AND_SET_FUNCTION (   FUNCT)
Value:
INIT_CUSTOM_GET_FUNCTION(is##FUNCT , bool) \
INIT_CUSTOM_SET_FUNCTION(set##FUNCT, bool)
#define INIT_CUSTOM_GET_FUNCTION(FULLFUNCTIONNAME, OUTPUT_UNITS)
Define Get function pointer. Put it in the header of the first class. Custom output units...
Definition: Macros.h:25

Define both Is and Set function pointers. Put it in the header of the first class.

Definition at line 36 of file Macros.h.

#define RETURN_FUNCTION (   FULLFUNCTIONNAME)
Value:
EXECUTE_ON_DEBUG(CHECK_BINDING_FUNCTION(_function_##FULLFUNCTIONNAME)); \
return EXECUTE_GENERAL_FUNCTION(_function_##FULLFUNCTIONNAME)
#define EXECUTE_ON_DEBUG(x)
Debugging macros.
Definition: RawDAQData.h:34
#define EXECUTE_GENERAL_FUNCTION(FULLFUNCTIONNAME)
Macro to execute the function given a function pointer.
Definition: FunctionBind.h:37
#define CHECK_BINDING_FUNCTION(function)
Checking of the binding function if it&#39;s defined.
Definition: Macros.h:46

Definition at line 57 of file Macros.h.

Referenced by daqdataformats::RawSummaryDCMData::addCorruptMicroslices(), daqdataformats::RawEvent::addDataBlock(), daqdataformats::RawDataBlock::addDCMData(), daqdataformats::RawDataBlock::addMicroBlock(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock1(), daqdataformats::RawSummaryDCMData::addMissingDCMs(), daqdataformats::RawSummaryDCMData::addMissingMicroslices(), daqdataformats::VERSION_NAMESPACE::RawEvent::close(), daqdataformats::RawConfigurationBlock::close(), daqdataformats::RawEvent::close(), daqdataformats::RawDataBlock::close(), daqdataformats::RawConfigurationBlock::getSystemID(), daqdataformats::RawConfigurationBlock::getSystemIDConst(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getValue(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getValue1(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::getVersion(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::init(), daqdataformats::VERSION_NAMESPACE::RawEvent::init(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::init(), daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::init(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerMask::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerTime::init(), daqdataformats::VERSION_NAMESPACE::RawDataBlockHeader::init(), daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationHeader::init(), daqdataformats::VERSION_NAMESPACE::RawEventHeader::init(), daqdataformats::VERSION_NAMESPACE::RawRunHeader::init(), daqdataformats::RawDAQData::print(), daqdataformats::RawTrigger::readData(), daqdataformats::RawDataBlock::readData(), daqdataformats::RawDAQData::readData(), daqdataformats::RawDAQData::readDataUnknownVersion(), daqdataformats::RawDAQData::resetBufferSource(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::setAllParameters(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::setBufferSource(), daqdataformats::RawDAQData::setBufferSourceUnknownVersion(), daqdataformats::RawEvent::setTrigger(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::setValue(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::setValue1(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::setVersion(), daqdataformats::RawDAQData::sizeofdata(), and daqdataformats::VERSION_NAMESPACE::RawEvent::tryToSetTrigger().