Jpp 20.0.0-rc.9
the software that should make you happy
Loading...
Searching...
No Matches
JDAQSummarysliceHeaderIO.hh
Go to the documentation of this file.
1#ifndef __JDAQSUMMARYSLICEHEADER_IO__
2#define __JDAQSUMMARYSLICEHEADER_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<>
22 {
23 return getSizeof<JDAQHeader>();
24 }
25
26
27 /**
28 * Read JDAQ summary slice header from input.
29 *
30 * \param in reader
31 * \param header DAQ summary slice header
32 * \return reader
33 */
35 {
36 in >> static_cast<JDAQHeader&>(header);
37
38 return in;
39 }
40
41
42 /**
43 * Write JDAQ summary slice header to output.
44 *
45 * \param out writer
46 * \param header DAQ summary slice header
47 * \return writer
48 */
49 inline JWriter& operator<<(JWriter& out, const JDAQSummarysliceHeader& header)
50 {
51 out << static_cast<const JDAQHeader&>(header);
52
53 return out;
54 }
55}
56
57#endif
Interface for binary input.
Interface for binary output.
std::ostream & operator<<(std::ostream &out, const morphology_type &object)
Write morphology to output stream.
std::istream & operator>>(std::istream &in, morphology_type &object)
Read morphology from input stream.
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39
size_t getSizeof< JDAQSummarysliceHeader >()
Get size of type.
size_t getSizeof< JDAQHeader >()
Get size of type.