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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/DAQDataFormats/cxx/include/RawSummaryDCMDataHeaderV0.h"

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader:

Public Member Functions

 RawSummaryDCMDataHeader (const version_t)
 
 RawSummaryDCMDataHeader (const RawSummaryDCMDataHeader &)
 
 ~RawSummaryDCMDataHeader ()
 
void init ()
 
void print (std::ostream &os=std::cout) const
 
uint32_t sizeofdata () const
 
voidreadData (const void *pointer)
 

Protected Member Functions

 IMPLEMENT_FIRST_GET_AND_SET (Version, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (NumEntries, uint32_t)
 
 INIT_FIRST (advanceNumEntries,, bool,)
 

Detailed Description

Definition at line 44 of file RawSummaryDCMDataHeaderV0.h.

Constructor & Destructor Documentation

daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::RawSummaryDCMDataHeader ( const version_t  version)

Definition at line 25 of file RawSummaryDCMDataHeaderV0.cpp.

25  :
26  PREVIOUS_VERSION_CLASS_NAME(version)
27  ,ZEROOUT_GET_AND_SET(Version)
28  ,ZEROOUT_GET_AND_SET(NumEntries)
29  ,ZEROOUT_FUNCTION(advanceNumEntries)
30 {}
#define ZEROOUT_FUNCTION(FUNC)
Definition: FunctionBind.h:52
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::RawSummaryDCMDataHeader ( const RawSummaryDCMDataHeader copyin)

Definition at line 33 of file RawSummaryDCMDataHeaderV0.cpp.

33  :
34  PREVIOUS_VERSION_CLASS_NAME(copyin)
35  ,DEEPCOPY_GET_AND_SET(Version)
36  ,DEEPCOPY_GET_AND_SET(NumEntries)
37  ,DEEPCOPY_FUNCTION(advanceNumEntries)
38 {}
#define DEEPCOPY_FUNCTION(FUNC)
Definition: FunctionBind.h:40
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::~RawSummaryDCMDataHeader ( )

Definition at line 42 of file RawSummaryDCMDataHeaderV0.cpp.

42  {
43 }

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::IMPLEMENT_FIRST_GET_AND_SET ( NumEntries  ,
uint32_t   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::init ( )

Definition at line 47 of file RawSummaryDCMDataHeaderV0.cpp.

References samweb_client.client::_version, EXECUTE_FUNCTION, and RETURN_FUNCTION.

Referenced by demo.App::__init__(), testem0.App::__init__(), Lesson1.App::__init__(), and ExN03.App::__init__().

47  {
48  EXECUTE_FUNCTION(setVersion)(_version);
49  EXECUTE_FUNCTION(setNumEntries)(0);
50 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::INIT_FIRST ( advanceNumEntries  ,
bool   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::print ( std::ostream &  os = std::cout) const

Definition at line 57 of file RawSummaryDCMDataHeaderV0.cpp.

References samweb_client.client::_version, allTimeWatchdog::endl, EXECUTE_FUNCTION, novadaq::HexUtils::format(), MECModelEnuComparisons::i, and sizeofdata().

57  {
58  const uint32_t size_of_data = EXECUTE_FUNCTION(sizeofdata)();
59 
60  os<<boost::format("\nSummaryDCMData Header(size=%u, version=%u):") % size_of_data % _version ;
61  os<<boost::format(" getNumEntries=%u")% getNumEntries();
62  os<<boost::format(" Version=%u" )% EXECUTE_FUNCTION(getVersion)();
63  os<<"\n";
64 
65  printBuffer(os);
66 
67  os<<"\nSummaryDCMDataHeader RAW 32bit words (converted, if required, to native endian format):";
68  for(uint32_t i = 0; i < size_of_data; ++i){
69  os<<" ";
70  printWord(i,false, os);
71  }
72 
73  os<<"\nSummaryDCMDataHeader RAW bits (converted, if required, to native endian format):";
74  for(uint32_t i = 0; i < size_of_data; ++i){
75  os<<std::endl;
76  printWord(i,true, os);
77  }
78 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14
void* daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::readData ( const void pointer)
inline

Definition at line 60 of file RawSummaryDCMDataHeaderV0.h.

References IMPLEMENT_FIRST_GET_AND_SET, INIT_FIRST, and daqdataformats::RawDAQData::readDataGeneral().

Referenced by PandAna.core.core.loader::Go().

60 {return RawDAQData::readDataGeneral(pointer);};
void * readDataGeneral(const void *buffer)
General ReadData method when the sizeofdata is known.
Definition: RawDAQData.cpp:186
uint32_t daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataHeader::sizeofdata ( ) const
inline

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