Jpp
|
DAQ preamble. More...
#include <JDAQPreamble.hh>
Public Member Functions | |
JDAQPreamble () | |
Default constructor. More... | |
virtual | ~JDAQPreamble () |
Virtual destructor. More... | |
virtual int | getSize () const |
Get size of object. More... | |
ClassDef (JDAQPreamble, 1) | |
int | getLength () const |
Get length. More... | |
int | getDataType () const |
Get data type. More... | |
ClassDefNV (JDAQAbstractPreamble, 1) | |
Static Public Member Functions | |
static int | sizeOf () |
Get size of object. More... | |
Protected Member Functions | |
template<class T > | |
JDAQPreamble (JDAQType< T > type) | |
Constructor. More... | |
void | setLength () |
Set length. More... | |
Protected Attributes | |
int | length |
int | type |
Friends | |
JReader & | operator>> (JReader &in, JDAQPreamble &preamble) |
Read DAQ preamble from input. More... | |
JWriter & | operator<< (JWriter &out, const JDAQPreamble &preamble) |
Write DAQ preamble to output. More... | |
DAQ preamble.
Note that for I/O, the data member length is read whereas the return value of the virtual method getSize() is written.
Any derived class should provide for an implementation of method getSize() so that the actual size of the object is written.
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 the (abstract) object can be used for RTTI.
Definition at line 39 of file JDAQPreamble.hh.
|
inlineprotected |
Constructor.
type | data type of derived class |
Definition at line 51 of file JDAQPreamble.hh.
|
inline |
Default constructor.
Definition at line 60 of file JDAQPreamble.hh.
|
inlinevirtual |
|
inlinestatic |
|
inlinevirtual |
Get size of object.
Reimplemented in KM3NETDAQ::JDAQEvent, KM3NETDAQ::JDAQTimeslice, KM3NETDAQ::JDAQSuperFrame, and KM3NETDAQ::JDAQSummaryslice.
Definition at line 121 of file JDAQPreamble.hh.
KM3NETDAQ::JDAQPreamble::ClassDef | ( | JDAQPreamble | , |
1 | |||
) |
|
inlineprotected |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
friend |
Read DAQ preamble from input.
in | JReader |
preamble | JDAQPreamble |
Definition at line 80 of file JDAQPreamble.hh.
|
friend |
Write DAQ preamble to output.
out | JWriter |
preamble | JDAQPreamble |
Definition at line 96 of file JDAQPreamble.hh.
|
protectedinherited |
Definition at line 79 of file JDAQAbstractPreamble.hh.
|
protectedinherited |
Definition at line 80 of file JDAQAbstractPreamble.hh.