Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDAQTimesliceHeaderIO.hh
Go to the documentation of this file.
1 #ifndef __JDAQTIMESLICEHEADER_IO__
2 #define __JDAQTIMESLICEHEADER_IO__
3 
5 
6 #include "JIO/JSerialisable.hh"
7 
8 #include "JDAQ/JDAQHeaderIO.hh"
9 
10 /**
11  * \author mdejong
12  */
13 namespace 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 time slice header from input.
29  *
30  * \param in reader
31  * \param header DAQ time slice header
32  * \return reader
33  */
35  {
36  in >> static_cast<JDAQHeader&>(header);
37 
38  return in;
39  }
40 
41 
42  /**
43  * Write JDAQ time slice header to output.
44  *
45  * \param out writer
46  * \param header DAQ time slice header
47  * \return writer
48  */
49  inline JWriter& operator<<(JWriter& out, const JDAQTimesliceHeader& header)
50  {
51  out << static_cast<const JDAQHeader&>(header);
52 
53  return out;
54  }
55 }
56 
57 #endif
Interface for binary output.
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
size_t getSizeof< JDAQHeader >()
Get size of type.
Definition: JDAQHeaderIO.hh:21
Interface for binary input.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.
size_t getSizeof< JDAQTimesliceHeader >()
Get size of type.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46