Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JDAQSuperFrameHeaderIO.hh
Go to the documentation of this file.
1#ifndef __JDAQSUPERFRAMEHEADER_IO__
2#define __JDAQSUPERFRAMEHEADER_IO__
3
5
7
11
12/**
13 * \author mdejong
14 */
15namespace KM3NETDAQ {
16
17
18 /**
19 * Get size of type.
20 *
21 * \return number of bytes
22 */
23 template<>
30
31
32 /**
33 * Read DAQ super frame header from input.
34 *
35 * \param in reader
36 * \param header DAQ super frame header
37 * \return reader
38 */
40 {
41 in >> static_cast<JDAQHeader&> (header);
42 in >> static_cast<JDAQModuleIdentifier&>(header);
43 in >> static_cast<JDAQFrameStatus&> (header);
44
45 return in;
46 }
47
48
49 /**
50 * Write DAQ super frame header to output.
51 *
52 * \param out writer
53 * \param header DAQ supe frame header
54 * \return writer
55 */
56 inline JWriter& operator<<(JWriter& out, const JDAQSuperFrameHeader& header)
57 {
58 out << static_cast<const JDAQHeader&> (header);
59 out << static_cast<const JDAQModuleIdentifier&>(header);
60 out << static_cast<const JDAQFrameStatus&> (header);
61
62 return out;
63 }
64}
65
66#endif
Interface for binary input.
Interface for binary output.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
size_t getSizeof< JDAQSuperFrameHeader >()
Get size of type.
size_t getSizeof< JDAQModuleIdentifier >()
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.
size_t getSizeof< JDAQHeader >()
Get size of type.
size_t getSizeof< JDAQFrameStatus >()
Get size of type.