Jpp
17.0.0
the software that should make you happy
|
DAQ preamble. More...
#include <JDAQPreamble.hh>
Public Member Functions | |
JDAQPreamble () | |
Default constructor. More... | |
virtual | ~JDAQPreamble () |
Virtual destructor. More... | |
ClassDef (JDAQPreamble, 1) | |
int | getLength () const |
Get length. More... | |
int | getDataType () const |
Get data type. More... | |
ClassDefNV (JDAQAbstractPreamble, 1) | |
Static Public Member Functions | |
template<class T > | |
static JDAQPreamble | getDAQPreamble (const T &object) |
Get DAQ preamble. More... | |
Protected Member Functions | |
template<class T > | |
JDAQPreamble (const JDAQType< T > &type) | |
Constructor. More... | |
Protected Attributes | |
int | length |
int | type |
Friends | |
size_t | getSizeof () |
Definition of method to get size of data type. More... | |
JReader & | operator>> (JReader &, JDAQPreamble &) |
Read DAQ preamble from input. More... | |
JWriter & | operator<< (JWriter &, const JDAQPreamble &) |
Write DAQ preamble to output. More... | |
std::ostream & | operator<< (std::ostream &out, const JDAQPreamble &preamble) |
Print DAQ preamble. More... | |
DAQ preamble.
The data type is determined by the return value of method getDataType().
This method should be overloaded so that each data type is uniquely mapped to an integer value.
The size and type information of this object can be used for RTTI.
Definition at line 26 of file JDAQPreamble.hh.
|
inlineprotected |
Constructor.
type | data type of derived class |
Definition at line 38 of file JDAQPreamble.hh.
|
inline |
Default constructor.
Definition at line 51 of file JDAQPreamble.hh.
|
inlinevirtual |
|
inlinestatic |
Get DAQ preamble.
This method should be used for binary I/O to get the actual data for the given object.
To this end, the following method should be overloaded for the corresponding data type.
size_t getSizeof(const T&);
object | object |
Definition at line 76 of file JDAQPreamble.hh.
KM3NETDAQ::JDAQPreamble::ClassDef | ( | JDAQPreamble | , |
1 | |||
) |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
friend |
Definition of method to get size of data type.
This method should be specialised for each desired data type with fixed length.
|
friend |
Read DAQ preamble from input.
Note that JDAQAbstractPreamble::length is read first.
in | reader |
preamble | DAQ preamble |
Definition at line 35 of file JDAQPreambleIO.hh.
|
friend |
Write DAQ preamble to output.
Note that JDAQPreamble::getSize() is written first.
out | writer |
preamble | DAQ preamble |
Definition at line 53 of file JDAQPreambleIO.hh.
|
friend |
Print DAQ preamble.
out | output stream |
preamble | JDAQPreamble |
Definition at line 94 of file JDAQPreamble.hh.
|
protectedinherited |
Definition at line 69 of file JDAQAbstractPreamble.hh.
|
protectedinherited |
Definition at line 70 of file JDAQAbstractPreamble.hh.