Jpp  16.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JDAQModuleIdentifierIO.hh
Go to the documentation of this file.
1 #ifndef __JDAQMODULEIDENTIFIER_IO__
2 #define __JDAQMODULEIDENTIFIER_IO__
3 
5 
6 #include "JIO/JSerialisable.hh"
7 
8 /**
9  * \author mdejong
10  */
11 namespace 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 output.
JWriter & operator<<(JWriter &out, const JDAQChronometer &chronometer)
Write DAQ chronometer to output.
Interface for binary input.
JReader & operator>>(JReader &in, JDAQChronometer &chronometer)
Read DAQ chronometer from input.
size_t getSizeof< JDAQModuleIdentifier >()
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42