Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JDAQModuleIdentifierIO.hh
Go to the documentation of this file.
1#ifndef __JDAQMODULEIDENTIFIER_IO__
2#define __JDAQMODULEIDENTIFIER_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(JDAQModuleIdentifier::id);
22 }
23
24
25 /**
26 * Read module identifier from input.
27 *
28 * \param in reader
29 * \param module module identifier
30 * \return rader
31 */
33 {
34 in >> module.id;
35
36 return in;
37 }
38
39
40 /**
41 * Write module identifier to output.
42 *
43 * \param out writer
44 * \param module module identifier
45 * \return writer
46 */
47 inline JWriter& operator<<(JWriter& out, const JDAQModuleIdentifier& module)
48 {
49 out << module.id;
50
51 return out;
52 }
53}
54
55#endif
Interface for binary input.
Interface for binary output.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
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.