Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JDAQTriggerMaskIO.hh
Go to the documentation of this file.
1#ifndef __JDAQTRIGGERMASK_IO__
2#define __JDAQTRIGGERMASK_IO__
3
5
7
8/**
9 * \author mdejong
10 */
11namespace KM3NETDAQ {
12
13 /**
14 * Get size of type.
15 *
16 * \return number of bytes
17 */
18 template<>
20 {
21 return sizeof(JDAQTriggerMask::trigger_mask);
22 }
23
24
25 /**
26 * Read DAQ trigger mask from input.
27 *
28 * \param in reader
29 * \param mask DAQ trigger mask
30 * \return reader
31 */
33 {
34 in >> mask.trigger_mask;
35
36 return in;
37 }
38
39
40 /**
41 * Write DAQ trigger mask to output.
42 *
43 * \param out writer
44 * \param mask DAQ trigger mask
45 * \return writer
46 */
47 inline JWriter& operator<<(JWriter& out, const JDAQTriggerMask& mask)
48 {
49 out << mask.trigger_mask;
50
51 return out;
52 }
53}
54
55#endif
Interface for binary input.
Interface for binary output.
Auxiliary class for trigger mask.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
size_t getSizeof< JDAQTriggerMask >()
Get size of type.
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.