MicroBlockHeaderConstructor.cpp
Go to the documentation of this file.
1 /*
2  * File: MicroBlockHeaderConstructor.cpp
3  * Author: denis
4  *
5  * Created on September 20, 2012, 2:18 PM
6  */
8 /// It is requred to
9 /// 1. include DAQDataFormats/DataFormatFirst.inc
10 /// 2. define CURRENT_CLASS
11 /// 3. define CURRENT_CLASS_VERSION for version of the class
12 /// OR define LAST_CLASS_VERSION for the main structure of the class
13 /// 4. (optional) define CURRENT_FIELDS_SUB_NAMESPACE
14 /// 5. include DAQDataFormats/DataFormatLast.inc
15 /// before the declaration of the DataFormat version class in the header.
16 #include "DAQDataFormats/DataFormatFirst.inc"
17 #define CURRENT_CLASS RawMicroBlockHeader
18 #define LAST_CLASS_VERSION 1
19 #define CURRENT_FIELDS_SUB_NAMESPACE microblock
20 #include "DAQDataFormats/DataFormatLast.inc"
21 
22 namespace daqdataformats {
24 
25 //------------------------------------------------------------------------------
28 {
29 }
30 
31 //------------------------------------------------------------------------------
33 
34 //------------------------------------------------------------------------------
37  fillDataFormat(out);
38  return out;
39 }
40 
41 //------------------------------------------------------------------------------
44 }
45 
46 //------------------------------------------------------------------------------
49  setFieldToTestValue_DestBuffID(microblock);
50  setFieldToTestValue_Partition(microblock);
51  return true;
52 }
53 
54 }}// end of namespaces
static const version_t RAWMICROBLOCK_LATEST_VERSION
daqdataformats::RawDAQData * getFilledDataFormat(const daqdataformats::version_t) const
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
int32_t version_t
Definition: RawDAQData.h:72
Class to hold the data from the FEBs in correct formats.
#define CURRENT_FIELDS_SUB_NAMESPACE
daqdataformats::RawDAQData * getEmptyDataFormat(const daqdataformats::version_t) const
method to create an empty dataformat with a given version