Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JDAQFrameStatusIO.hh
Go to the documentation of this file.
1#ifndef __JDAQFRAMESTATUS_IO__
2#define __JDAQFRAMESTATUS_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(JDAQFrameStatus::daq) +
23 sizeof(JDAQFrameStatus::fifo) +
26 }
27
28
29 /**
30 * Read DAQ frame status from input.
31 *
32 * \param in reader
33 * \param status DAQ frame status
34 * \return reader
35 */
37 {
38 in >> status.daq;
39 in >> status.status;
40 in >> status.fifo;
41 in >> status.status_3;
42 in >> status.status_4;
43
44 return in;
45 }
46
47
48 /**
49 * Write DAQ frame status to output.
50 *
51 * \param out writer
52 * \param status DAQ frame status
53 * \return writer
54 */
55 inline JWriter& operator<<(JWriter& out, const JDAQFrameStatus& status)
56 {
57 out << status.daq;
58 out << status.status;
59 out << status.fifo;
60 out << status.status_3;
61 out << status.status_4;
62
63 return out;
64 }
65}
66
67#endif
Interface for binary input.
Interface for binary output.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.
size_t getSizeof< JDAQFrameStatus >()
Get size of type.