Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
KM3NETDAQ::JDAQAbstractPreamble Class Reference

Simple data structure for the DAQ preamble required for a correct calculation of the object size for binary I/O. More...

#include <JDAQAbstractPreamble.hh>

Inheritance diagram for KM3NETDAQ::JDAQAbstractPreamble:
KM3NETDAQ::JDAQPreamble KM3NETDAQ::JDAQEvent KM3NETDAQ::JDAQSummaryslice KM3NETDAQ::JDAQSuperFrame KM3NETDAQ::JDAQTimeslice JTRIGGER::JTriggeredEvent KM3NETDAQ::JSummaryslice KM3NETDAQ::JDAQTimesliceL0 KM3NETDAQ::JDAQTimesliceL1 KM3NETDAQ::JDAQTimesliceL2 KM3NETDAQ::JDAQTimesliceSN JTRIGGER::JSummaryRouter KM3NETDAQ::JTimesliceL0 KM3NETDAQ::JEventTimeslice KM3NETDAQ::JRandomTimeslice

Public Member Functions

 JDAQAbstractPreamble ()
 Default constuctor.
 
int getLength () const
 Get length.
 
int getDataType () const
 Get data type.
 
 ClassDefNV (JDAQAbstractPreamble, 1)
 

Protected Member Functions

template<class T >
 JDAQAbstractPreamble (JDAQType< T > type)
 Constructor.
 

Protected Attributes

int length
 
int type
 

Detailed Description

Simple data structure for the DAQ preamble required for a correct calculation of the object size for binary I/O.

Note that JDAQPreamble derives from this and adds I/O and ROOT functionality.

Definition at line 21 of file JDAQAbstractPreamble.hh.

Constructor & Destructor Documentation

◆ JDAQAbstractPreamble() [1/2]

template<class T >
KM3NETDAQ::JDAQAbstractPreamble::JDAQAbstractPreamble ( JDAQType< T > type)
inlineprotected

Constructor.

Parameters
typedata type of derived class

Definition at line 29 of file JDAQAbstractPreamble.hh.

29 :
30 length(0),
32 {}
int getDataType()
Template definition for method returning data type.

◆ JDAQAbstractPreamble() [2/2]

KM3NETDAQ::JDAQAbstractPreamble::JDAQAbstractPreamble ( )
inline

Default constuctor.

Definition at line 38 of file JDAQAbstractPreamble.hh.

38 :
39 length(0),
40 type (0)
41 {}

Member Function Documentation

◆ getLength()

int KM3NETDAQ::JDAQAbstractPreamble::getLength ( ) const
inline

Get length.

Returns
number of bytes

Definition at line 49 of file JDAQAbstractPreamble.hh.

50 {
51 return length;
52 }

◆ getDataType()

int KM3NETDAQ::JDAQAbstractPreamble::getDataType ( ) const
inline

Get data type.

Returns
data type

Definition at line 60 of file JDAQAbstractPreamble.hh.

61 {
62 return type;
63 }

◆ ClassDefNV()

KM3NETDAQ::JDAQAbstractPreamble::ClassDefNV ( JDAQAbstractPreamble ,
1  )

Member Data Documentation

◆ length

int KM3NETDAQ::JDAQAbstractPreamble::length
protected

Definition at line 69 of file JDAQAbstractPreamble.hh.

◆ type

int KM3NETDAQ::JDAQAbstractPreamble::type
protected

Definition at line 70 of file JDAQAbstractPreamble.hh.


The documentation for this class was generated from the following file: