RawSummaryDCMDataPoint.h
Go to the documentation of this file.
1 #ifndef RAWSUMMARYDCMDATAPOINT_H
2 #define RAWSUMMARYDCMDATAPOINT_H
3 
4 #include "DAQDataFormats/RawSummaryDCMDataPointV0.h"
5 #include "DAQDataFormats/Macros.h"
6 
7 /// It is requred to
8 /// 1. include DAQDataFormats/DataFormatFirst.inc
9 /// 2. define CURRENT_CLASS
10 /// 3. define CURRENT_CLASS_VERSION for version of the class
11 /// OR define LAST_CLASS_VERSION for the main structure of the class
12 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
13 /// 5. include DAQDataFormats/DataFormatLast.inc
14 /// before the declaration of the DataFormat version class in the header.
15 #include "DAQDataFormats/DataFormatFirst.inc"
16 #define CURRENT_CLASS RawSummaryDCMDataPoint
17 #define LAST_CLASS_VERSION 0
18 #define CURRENT_FIELDS_SUB_NAMESPACE summarydcmdatapoint
19 #include "DAQDataFormats/DataFormatLast.inc"
20 
21 namespace daqdataformats {
22 
25  }
26 
27  class RawSummaryDCMDataPoint: public PREVIOUS_VERSION_CLASS_NAME {
28 
29  public:
30  // Constructors
32  RawSummaryDCMDataPoint (const RawSummaryDCMDataPoint& copy_in); //! Deep copy constructor
33  RawSummaryDCMDataPoint (const void* datapoint_buffer, const version_t version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION ); //! Shallow copy constructor
34  /// Destructor
36 
38 
39  IMPLEMENT_GET_MAIN (Version , uint32_t)
40  IMPLEMENT_GET_AND_SET_MAIN(DCMID, uint32_t)
42  IMPLEMENT_GET_AND_SET_MAIN(TimeStampLow , uint32_t)
43  IMPLEMENT_GET_AND_SET_MAIN(TimeStampHigh , uint32_t)
44  IMPLEMENT_GET_AND_SET_MAIN(TimeStamp, uint64_t)
45 
46 
48 
49  protected:
50  IMPLEMENT_SET_MAIN(Version, uint32_t);
51  bool setFunctionPointers();
52 
53  };// end of RawSummaryDCMDataPoint
54 
55 
56 } // END NAMESPCE daqdataformats
57 #endif /* RAWNANOSLICE_H */
#define IMPLEMENT_SET_MAIN(FUNC, UNITS)
Definition: Macros.h:210
#define IMPLEMENT_MAIN_STANDARD
Definition: Macros.h:230
#define CURRENT_FIELDS_SUB_NAMESPACE
#define CURRENT_CLASS
#define LAST_CLASS_VERSION
const XML_Char * version
Definition: expat.h:187
#define IMPLEMENT_FIGUREOUT_VERSION_STATIC(CLASS)
This should be in the header.
Definition: Macros.h:295
int32_t version_t
Definition: RawDAQData.h:72
#define IMPLEMENT_GET_AND_SET_MAIN(FUNC, UNITS)
Definition: Macros.h:217
static const version_t DAQDATAFORMAT_UNKNOWN_VERSION
Definition: RawDAQData.h:81
Class to hold the data from the FEBs in correct formats.
#define IMPLEMENT_GET_MAIN(FUNC, UNITS)
Definition: Macros.h:208