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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock:

Public Member Functions

 RawSummaryDroppedMicroblock (const version_t)
 The default constructor. More...
 
 RawSummaryDroppedMicroblock (const RawSummaryDroppedMicroblock &)
 
 ~RawSummaryDroppedMicroblock ()
 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 (TimeStampLow, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TimeStampHigh, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TimeWindow_sec, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TimeWindow_usec, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (NumDroppedMicroblocks, uint32_t)
 
 INIT_FIRST (getTimeStamp, const, uint64_t,)
 
 INIT_FIRST (setTimeStamp,, bool, const uint64_t)
 
 INIT_FIRST (getTimeWindowTvUsec, const, suseconds_t,)
 
 INIT_FIRST (setTimeWindowTvUsec,, bool, const suseconds_t)
 
 INIT_FIRST (getTimeWindowTvSec, const, time_t,)
 
 INIT_FIRST (setTimeWindowTvSec,, bool, const time_t)
 
 INIT_FIRST (getTimeWindowTv, const, timeval,)
 
 INIT_FIRST (setTimeWindowTv,, bool, const timeval)
 

Detailed Description

Definition at line 57 of file RawSummaryDroppedMicroblockV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 23 of file RawSummaryDroppedMicroblockV0.cpp.

23  :
24  PREVIOUS_VERSION_CLASS_NAME(version)
25  ,ZEROOUT_GET_AND_SET(Version )
26  ,ZEROOUT_GET_AND_SET(TimeStampLow )
27  ,ZEROOUT_GET_AND_SET(TimeStampHigh )
28  ,ZEROOUT_GET_AND_SET(TimeWindow_sec )
29  ,ZEROOUT_GET_AND_SET(TimeWindow_usec)
30  ,ZEROOUT_GET_AND_SET(NumDroppedMicroblocks )
31  ,ZEROOUT_GET_AND_SET(TimeStamp )
32  ,ZEROOUT_GET_AND_SET(TimeWindowTvUsec)
33  ,ZEROOUT_GET_AND_SET(TimeWindowTvSec )
34  ,ZEROOUT_GET_AND_SET(TimeWindowTv )
35 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::RawSummaryDroppedMicroblock ( const RawSummaryDroppedMicroblock copyin)

Definition at line 38 of file RawSummaryDroppedMicroblockV0.cpp.

38  :
39  PREVIOUS_VERSION_CLASS_NAME(copyin)
40  ,DEEPCOPY_GET_AND_SET(Version )
41  ,DEEPCOPY_GET_AND_SET(TimeStampLow )
42  ,DEEPCOPY_GET_AND_SET(TimeStampHigh )
43  ,DEEPCOPY_GET_AND_SET(TimeWindow_sec )
44  ,DEEPCOPY_GET_AND_SET(TimeWindow_usec)
45  ,DEEPCOPY_GET_AND_SET(NumDroppedMicroblocks )
46  ,DEEPCOPY_GET_AND_SET(TimeStamp )
47  ,DEEPCOPY_GET_AND_SET(TimeWindowTvUsec)
48  ,DEEPCOPY_GET_AND_SET(TimeWindowTvSec )
49  ,DEEPCOPY_GET_AND_SET(TimeWindowTv )
50 {}
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::~RawSummaryDroppedMicroblock ( )

Destructor.

Definition at line 53 of file RawSummaryDroppedMicroblockV0.cpp.

53 {}

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::IMPLEMENT_FIRST_GET_AND_SET ( TimeStampLow  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::IMPLEMENT_FIRST_GET_AND_SET ( TimeStampHigh  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::IMPLEMENT_FIRST_GET_AND_SET ( TimeWindow_sec  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::IMPLEMENT_FIRST_GET_AND_SET ( TimeWindow_usec  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::IMPLEMENT_FIRST_GET_AND_SET ( NumDroppedMicroblocks  ,
uint32_t   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::init ( )

Definition at line 57 of file RawSummaryDroppedMicroblockV0.cpp.

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

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

57  {
58  EXECUTE_FUNCTION(setVersion)(_version);
59 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( getTimeStamp  ,
const  ,
uint64_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( setTimeStamp  ,
bool  ,
const uint64_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( getTimeWindowTvUsec  ,
const  ,
suseconds_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( setTimeWindowTvUsec  ,
bool  ,
const suseconds_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( getTimeWindowTvSec  ,
const  ,
time_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( setTimeWindowTvSec  ,
bool  ,
const time_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( getTimeWindowTv  ,
const  ,
timeval   
)
protected
daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::INIT_FIRST ( setTimeWindowTv  ,
bool  ,
const timeval   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::print ( std::ostream &  os = std::cout) const

Definition at line 109 of file RawSummaryDroppedMicroblockV0.cpp.

References EXECUTE_FUNCTION, novadaq::HexUtils::format(), makeTrainCVSamples::int, and PRINT_ON_DEBUG.

109  {
110  os<<"++++ Summary Dropped Microblock ++++\n";
111  os<<boost::format("Dropped Microblock Version:\t%u\n")%EXECUTE_FUNCTION(getVersion)();
112  os<<boost::format("Gen Timestamp Low:\t%u\n")%EXECUTE_FUNCTION(getTimeStampLow)();
113  os<<boost::format("Gen Timestamp High:\t%u\n")%EXECUTE_FUNCTION(getTimeStampHigh)();
114  os<<boost::format("Gen Timestamp:\t\t%Lu\n")%(long long unsigned int)EXECUTE_FUNCTION(getTimeStamp)();
115  time_t timeWindowTvSec = EXECUTE_FUNCTION(getTimeWindowTvSec)();
116  char ctimestr[27]; ctime_r(&timeWindowTvSec,ctimestr);
117  os<<boost::format("TimeWindow:\t\t%s")%ctimestr;
118  os<<boost::format("TimeWindow usec:\t\t%d\n")%(uint32_t) EXECUTE_FUNCTION(getTimeWindowTvUsec)();
119  os<<boost::format("Num Dropped Microblocks:\t\t0x%02x\n")%EXECUTE_FUNCTION(getNumDroppedMicroblocks)();
120  os<<boost::format("Dropped Microblock Version:\t%d\n")%EXECUTE_FUNCTION(getVersion)();
121  PRINT_ON_DEBUG("Buffer is set to "<<_Buffer);
122 
123 }
#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
#define PRINT_ON_DEBUG(x)
Definition: RawDAQData.h:35
void* daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::readData ( const void pointer)
inline

Definition at line 70 of file RawSummaryDroppedMicroblockV0.h.

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

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

70 {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::RawSummaryDroppedMicroblock::sizeofdata ( ) const
inline

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