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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawConfigurationTail:

Public Member Functions

 RawConfigurationTail (const version_t)
 The default constructor. More...
 
 RawConfigurationTail (const RawConfigurationTail &)
 
 ~RawConfigurationTail ()
 Destructor. More...
 
void init ()
 
void print (std::ostream &os=std::cout) const
 
uint32_t sizeofdata () const
 
voidreadData (const void *pointer)
 
 IMPLEMENT_FIRST_GET_AND_SET (Version, uint32_t)
 Make set protected, so that users of the class cannot access this method. More...
 
 IMPLEMENT_FIRST_GET_AND_SET (Reserved1, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (Reserved2, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (MarkerLo1, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (MarkerLo2, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (CRC, uint32_t)
 

Detailed Description

Definition at line 60 of file RawConfigurationTailV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 23 of file RawConfigurationTailV0.cpp.

23  :
24  RawDAQData(version)
25  ,ZEROOUT_GET_AND_SET(Version)
26  ,ZEROOUT_GET_AND_SET(Reserved1)
27  ,ZEROOUT_GET_AND_SET(Reserved2)
28  ,ZEROOUT_GET_AND_SET(MarkerLo1)
29  ,ZEROOUT_GET_AND_SET(MarkerLo2)
31 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::RawConfigurationTail ( const RawConfigurationTail copyin)

Definition at line 33 of file RawConfigurationTailV0.cpp.

33  :
34  RawDAQData(copyin)
35  ,DEEPCOPY_GET_AND_SET(Version)
36  ,DEEPCOPY_GET_AND_SET(Reserved1)
37  ,DEEPCOPY_GET_AND_SET(Reserved2)
38  ,DEEPCOPY_GET_AND_SET(MarkerLo1)
39  ,DEEPCOPY_GET_AND_SET(MarkerLo2)
41 {}
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::~RawConfigurationTail ( )

Destructor.

Definition at line 44 of file RawConfigurationTailV0.cpp.

44 { }

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)

Make set protected, so that users of the class cannot access this method.

daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::IMPLEMENT_FIRST_GET_AND_SET ( Reserved1  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::IMPLEMENT_FIRST_GET_AND_SET ( Reserved2  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::IMPLEMENT_FIRST_GET_AND_SET ( MarkerLo1  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::IMPLEMENT_FIRST_GET_AND_SET ( MarkerLo2  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::IMPLEMENT_FIRST_GET_AND_SET ( CRC  ,
uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::init ( )

Definition at line 49 of file RawConfigurationTailV0.cpp.

References samweb_client.client::_version, EXECUTE_FUNCTION, and daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::Marker_value.

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

49  {
50 
51  EXECUTE_FUNCTION(setVersion)(_version);
52 
53  // Set the Marker
56 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
void daqdataformats::VERSION_NAMESPACE::RawConfigurationTail::print ( std::ostream &  os = std::cout) const

Definition at line 60 of file RawConfigurationTailV0.cpp.

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

60  {
61  const uint32_t size_of_data = EXECUTE_FUNCTION(sizeofdata)();
62 
63  os<<boost::format("\n---RawConfigurationTail---------------------------------------------size = %u words\n")
64  % size_of_data;
65 
66  os<<boost::format(" MarkerLo1=%u") % EXECUTE_FUNCTION(getMarkerLo1)();
67  os<<boost::format(" MarkerLo2=%u") % EXECUTE_FUNCTION(getMarkerLo2)();
68 
69  os<<"\nRawConfigurationTail Data RAW 32bit WORDs (converted, if required, to native endian format):";
70  for(uint32_t i = 0; i < size_of_data; ++i){
71  printWord(i, false, os);
72  os<<" ";
73  }
74 
75  os<<"\nRawConfigurationTail Data RAW 32bit Bits (converted, if required, to native endian format):";
76  for(uint32_t i = 0; i < size_of_data; ++i){
77  os<<"\n ";
78  printWord(i, true, os);
79  }
80 
81 }
#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::RawConfigurationTail::readData ( const void pointer)
inline

Definition at line 72 of file RawConfigurationTailV0.h.

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

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

72 {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::RawConfigurationTail::sizeofdata ( ) const
inline

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