Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JDAQKeyHitIO.hh
Go to the documentation of this file.
1#ifndef __JDAQKEYHIT_IO__
2#define __JDAQKEYHIT_IO__
3
5
7
9#include "JDAQ/JDAQHitIO.hh"
10
11/**
12 * \author mdejong
13 */
14namespace KM3NETDAQ {
15
16 /**
17 * Get size of type.
18 *
19 * \return number of bytes
20 */
21 template<>
22 inline size_t getSizeof<JDAQKeyHit>()
23 {
26 }
27
28
29 /**
30 * Read JDAQKeyHit from input.
31 *
32 * \param in JReader
33 * \param hit JDAQKeyHit
34 * \return JReader
35 */
37 {
38 in >> static_cast<JDAQModuleIdentifier&>(hit);
39 in >> static_cast<JDAQHit&> (hit);
40
41 return in;
42 }
43
44
45 /**
46 * Write JDAQKeyHit to output.
47 *
48 * \param out JWriter
49 * \param hit JDAQKeyHit
50 * \return JWriter
51 */
52 inline JWriter& operator<<(JWriter& out, const JDAQKeyHit& hit)
53 {
54 out << static_cast<const JDAQModuleIdentifier&>(hit);
55 out << static_cast<const JDAQHit&> (hit);
56
57 return out;
58 }
59}
60
61#endif
Interface for binary input.
Interface for binary output.
Hit data structure.
Definition JDAQHit.hh:35
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< JDAQHit >()
Get size of type.
Definition JDAQHitIO.hh:19
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.
size_t getSizeof< JDAQKeyHit >()
Get size of type.