Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JDAQPMTIdentifierIO.hh
Go to the documentation of this file.
1#ifndef __JDAQPMTIDENTIFIER_IO__
2#define __JDAQPMTIDENTIFIER_IO__
3
5
7
9
10/**
11 * \author mdejong
12 */
13namespace KM3NETDAQ {
14
15 /**
16 * Get size of type.
17 *
18 * \return number of bytes
19 */
20 template<>
26
27
28 /**
29 * Read PMT identifier from input.
30 *
31 * \param in reader
32 * \param pmt PMT identifier
33 * \return reader
34 */
36 {
37 in >> static_cast<JDAQModuleIdentifier&>(pmt);
38 in >> pmt.address;
39
40 return in;
41 }
42
43
44 /**
45 * Write PMT identifier to output.
46 *
47 * \param out writer
48 * \param pmt PMT identifier
49 * \return writer
50 */
51 inline JWriter& operator<<(JWriter& out, const JDAQPMTIdentifier& pmt)
52 {
53 out << static_cast<const JDAQModuleIdentifier&>(pmt);
54 out << pmt.address;
55
56 return out;
57 }
58}
59
60#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.
size_t getSizeof< JDAQPMTIdentifier >()
Get size of type.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.