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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint:

Public Member Functions

 RawSummaryDCMDataPoint (const version_t)
 
 RawSummaryDCMDataPoint (const RawSummaryDCMDataPoint &)
 
 ~RawSummaryDCMDataPoint ()
 Destructor. More...
 
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 (DataType, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (DCMID, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TimeStampLow, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TimeStampHigh, uint32_t)
 
 INIT_FIRST (getTimeStamp, const, uint64_t,)
 
 INIT_FIRST (setTimeStamp,, bool, const uint64_t)
 

Detailed Description

Definition at line 60 of file RawSummaryDCMDataPointV0.h.

Constructor & Destructor Documentation

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

Definition at line 25 of file RawSummaryDCMDataPointV0.cpp.

25  :
26  PREVIOUS_VERSION_CLASS_NAME(version)
27  ,ZEROOUT_GET_AND_SET(Version)
29  ,ZEROOUT_GET_AND_SET(DCMID)
30  ,ZEROOUT_GET_AND_SET(TimeStampLow)
31  ,ZEROOUT_GET_AND_SET(TimeStampHigh)
32 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::RawSummaryDCMDataPoint ( const RawSummaryDCMDataPoint copyin)

Definition at line 35 of file RawSummaryDCMDataPointV0.cpp.

35  :
36  PREVIOUS_VERSION_CLASS_NAME(copyin)
37  ,DEEPCOPY_GET_AND_SET(Version)
39  ,DEEPCOPY_GET_AND_SET(DCMID)
40  ,DEEPCOPY_GET_AND_SET(TimeStampLow)
41  ,DEEPCOPY_GET_AND_SET(TimeStampHigh)
42 {
43 }
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::~RawSummaryDCMDataPoint ( )

Destructor.

Definition at line 45 of file RawSummaryDCMDataPointV0.cpp.

45 {}

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::IMPLEMENT_FIRST_GET_AND_SET ( DataType  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::IMPLEMENT_FIRST_GET_AND_SET ( DCMID  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::IMPLEMENT_FIRST_GET_AND_SET ( TimeStampLow  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::IMPLEMENT_FIRST_GET_AND_SET ( TimeStampHigh  ,
uint32_t   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::init ( )

Definition at line 49 of file RawSummaryDCMDataPointV0.cpp.

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

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

49  {
50  EXECUTE_FUNCTION(setVersion)(_version);
51 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::INIT_FIRST ( getTimeStamp  ,
const  ,
uint64_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::INIT_FIRST ( setTimeStamp  ,
bool  ,
const uint64_t   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawSummaryDCMDataPoint::print ( std::ostream &  os = std::cout) const

Definition at line 71 of file RawSummaryDCMDataPointV0.cpp.

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

71  {
72 
73  os<<boost::format("SummaryDCMDataPoint: Verion=%u Type=%u DCMID=%u TimeStampLow=%u TimeStampHigh=%u ")
74  %EXECUTE_FUNCTION(getVersion)()
75  %EXECUTE_FUNCTION(getDataType)()
76  %EXECUTE_FUNCTION(getDCMID)()
77  %EXECUTE_FUNCTION(getTimeStampLow)()
78  %EXECUTE_FUNCTION(getTimeStampHigh)();
79 
80  const uint32_t size_of_data = EXECUTE_FUNCTION(sizeofdata)();
81 
82  os<<"Data size = "<<size_of_data<<"\n";
83 
84 
85  os<<"\nRAW(hex):";
86  for(uint32_t i = 0; i < size_of_data; ++i){
87  printWord(i,false, os);
88  os<<" ";
89  }
90 
91  os<<"\nRAW(binary):";
92  for(uint32_t i = 0; i < size_of_data; ++i){
93  if(i > 0)os<<" ";
94  printWord(i,true, os);
95  os<<std::endl;
96  }
97 }
#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::RawSummaryDCMDataPoint::readData ( const void pointer)
inline

Definition at line 76 of file RawSummaryDCMDataPointV0.h.

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

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

76 {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::RawSummaryDCMDataPoint::sizeofdata ( ) const
inline

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