ROOTANA
Public Member Functions | Private Attributes
TGenericData Class Reference

#include <TGenericData.hxx>

Inheritance diagram for TGenericData:
Inheritance graph
[legend]
Collaboration diagram for TGenericData:
Collaboration graph
[legend]

Public Member Functions

 TGenericData (int bklen, int bktype, const char *name, void *pdata)
 
virtual ~TGenericData ()
 
const uint16_t * GetData16 () const
 
const uint32_t * GetData32 () const
 
const uint64_t * GetData64 () const
 
const float * GetFloat () const
 
const double * GetDouble () const
 
const char * GetChar () const
 
int GetSize () const
 
int GetType () const
 
std::string GetName () const
 
void Dump ()
 Dump the bank contents in an unstructured way. More...
 
virtual void Print ()
 Print the bank contents in a structured way. More...
 

Private Attributes

int fSize
 Size of the bank (in what units?) More...
 
int fBankType
 Bank data type (MIDAS TID_xxx). More...
 
std::string fBankName
 Bank name. More...
 
void * fData
 

Detailed Description

A generic ABC for storing decoded data banks. Provides methods for accessing unstructured data. INherited classes will provide more user-friendly data access.

Definition at line 11 of file TGenericData.hxx.

Constructor & Destructor Documentation

◆ TGenericData()

TGenericData::TGenericData ( int  bklen,
int  bktype,
const char *  name,
void *  pdata 
)
inline

Definition at line 15 of file TGenericData.hxx.

◆ ~TGenericData()

virtual TGenericData::~TGenericData ( )
inlinevirtual

Definition at line 21 of file TGenericData.hxx.

Member Function Documentation

◆ Dump()

void TGenericData::Dump ( )
inline

Dump the bank contents in an unstructured way.

Definition at line 49 of file TGenericData.hxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetChar()

const char* TGenericData::GetChar ( ) const
inline

Definition at line 39 of file TGenericData.hxx.

◆ GetData16()

const uint16_t* TGenericData::GetData16 ( ) const
inline

Definition at line 24 of file TGenericData.hxx.

Here is the caller graph for this function:

◆ GetData32()

const uint32_t* TGenericData::GetData32 ( ) const
inline

Definition at line 27 of file TGenericData.hxx.

Here is the caller graph for this function:

◆ GetData64()

const uint64_t* TGenericData::GetData64 ( ) const
inline

Definition at line 30 of file TGenericData.hxx.

Here is the caller graph for this function:

◆ GetDouble()

const double* TGenericData::GetDouble ( ) const
inline

Definition at line 36 of file TGenericData.hxx.

◆ GetFloat()

const float* TGenericData::GetFloat ( ) const
inline

Definition at line 33 of file TGenericData.hxx.

Here is the caller graph for this function:

◆ GetName()

std::string TGenericData::GetName ( ) const
inline

Definition at line 46 of file TGenericData.hxx.

Here is the caller graph for this function:

◆ GetSize()

int TGenericData::GetSize ( ) const
inline

Definition at line 42 of file TGenericData.hxx.

Here is the caller graph for this function:

◆ GetType()

int TGenericData::GetType ( ) const
inline

Definition at line 44 of file TGenericData.hxx.

◆ Print()

virtual void TGenericData::Print ( )
inlinevirtual

Print the bank contents in a structured way.

Reimplemented in TV792NData, TV792Data, TV1730RawData, TV1730DppData, TV1720RawData, TV1190Data, TTRB3Data, TMesytecData, TL2249Data, and TDT724RawData.

Definition at line 59 of file TGenericData.hxx.

Here is the call graph for this function:

Field Documentation

◆ fBankName

std::string TGenericData::fBankName
private

Bank name.

Definition at line 72 of file TGenericData.hxx.

◆ fBankType

int TGenericData::fBankType
private

Bank data type (MIDAS TID_xxx).

Definition at line 69 of file TGenericData.hxx.

◆ fData

void* TGenericData::fData
private

Pointer to the unstructured data. The data itself is NOT owned by TGenericData.

Definition at line 76 of file TGenericData.hxx.

◆ fSize

int TGenericData::fSize
private

Size of the bank (in what units?)

Definition at line 66 of file TGenericData.hxx.


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