CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
HeaderMarker.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file eformat/HeaderMarker.h
5
* @author <a href="mailto:
[email protected]
>Andr� DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* @brief Defines the constants used by Event Fragments.
11
*/
12
13
#ifndef EFORMAT_HEADERMARKER_H
14
#define EFORMAT_HEADERMARKER_H
15
16
#include <stdint.h>
17
#include <string>
18
19
namespace
eformat
{
20
21
/**
22
* The types of header markers available. They are all 32 bit
23
* numbers, with 1234 in the middle for the identification of byte
24
* ordering (endianness).
25
*/
26
enum
HeaderMarker
{
ROD
= 0xee1234ee,
///< The ROD marker
27
ROB
= 0xdd1234dd,
///< The ROB marker
28
ROS
= 0xcc1234cc,
///< The ROS marker
29
SUB_DETECTOR
= 0xbb1234bb,
///< The SubDet. marker
30
FULL_EVENT
= 0xaa1234aa};
///< The event marker
31
32
/**
33
* An alias
34
*/
35
typedef
enum
HeaderMarker
HeaderMarker
;
36
37
/**
38
* Returns the child marker of a given parent marker
39
*
40
* @param e The marker from which you would like to the get child fragment
41
* type from
42
*/
43
HeaderMarker
child_marker
(
HeaderMarker
e);
44
45
/**
46
* Returns a string that represents the string of the equivalent marker
47
*
48
* @param e The enumeration value
49
*/
50
std::string
marker2string
(
const
eformat::HeaderMarker
& e);
51
52
/**
53
* Returns a string that represents the string of the equivalent marker
54
*
55
* @param e The enumeration value
56
*/
57
std::string
marker2string
(uint32_t e);
58
59
}
60
61
#endif
//EFORMAT_HEADERMARKER_H
eformat
Definition
BadVersionIssue.h:20
eformat::HeaderMarker
HeaderMarker
Definition
HeaderMarker.h:26
eformat::FULL_EVENT
@ FULL_EVENT
Definition
HeaderMarker.h:30
eformat::SUB_DETECTOR
@ SUB_DETECTOR
The SubDet. marker.
Definition
HeaderMarker.h:29
eformat::ROB
@ ROB
The ROB marker.
Definition
HeaderMarker.h:27
eformat::ROD
@ ROD
The ROD marker.
Definition
HeaderMarker.h:26
eformat::ROS
@ ROS
The ROS marker.
Definition
HeaderMarker.h:28
eformat::child_marker
HeaderMarker child_marker(HeaderMarker e)
Definition
HeaderMarker.cxx:15
eformat::marker2string
std::string marker2string(const eformat::HeaderMarker &e)
Definition
HeaderMarker.cxx:33
6.6.5.h
Event
eformat
eformat-00-00-04
eformat
HeaderMarker.h
Generated by
1.12.0