GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TParserLibrary Class Reference

Definition at line 10 of file TParserLibrary.h.

Public Member Functions

 ~TParserLibrary ()
 
TDataParserCreateDataParser ()
 
TRawFileCreateRawFile (const std::string &file)
 
void DestroyDataParser (TDataParser *parser)
 
void DestroyRawFile (TRawFile *file)
 
std::string LibraryVersion ()
 
void Load ()
 

Static Public Member Functions

static TParserLibraryAddCurrent ()
 
static TParserLibraryGet (bool verbose=false)
 
static TParserLibraryGetAll ()
 
static void PrintDirectory ()
 
static void Set (TParserLibrary *val)
 

Private Member Functions

 TParserLibrary ()
 

Private Attributes

TDataParser *(* fCreateDataParser )()
 
TRawFile *(* fCreateRawFile )(const std::string &)
 
void(* fDestroyDataParser )(TDataParser *)
 
void(* fDestroyRawFile )(TRawFile *)
 
void * fHandle
 
void(* fInitLibrary )()
 
std::string(* fLibraryVersion )()
 

Friends

class TSingleton< TParserLibrary >
 

#include <TParserLibrary.h>

+ Inheritance diagram for TParserLibrary:
+ Collaboration diagram for TParserLibrary:

Constructor & Destructor Documentation

◆ ~TParserLibrary()

TParserLibrary::~TParserLibrary ( )

Definition at line 13 of file TParserLibrary.cxx.

References fHandle.

◆ TParserLibrary()

TParserLibrary::TParserLibrary ( )
inlineprivate

Definition at line 27 of file TParserLibrary.h.

References fHandle.

Member Function Documentation

◆ AddCurrent()

static TParserLibrary * TSingleton< TParserLibrary >::AddCurrent ( )
inlinestaticinherited

Definition at line 137 of file TSingleton.h.

◆ CreateDataParser()

TDataParser* TParserLibrary::CreateDataParser ( )
inline

function to open library specific data parser

Definition at line 21 of file TParserLibrary.h.

References fCreateDataParser, and Load().

Referenced by TUnpackingLoop::TUnpackingLoop().

◆ CreateRawFile()

TRawFile* TParserLibrary::CreateRawFile ( const std::string &  file)
inline

function to open library specific raw data file

Definition at line 18 of file TParserLibrary.h.

References fCreateRawFile, and Load().

Referenced by TGRSIint::OpenRawFile().

◆ DestroyDataParser()

void TParserLibrary::DestroyDataParser ( TDataParser parser)
inline

function to destroy library specific data parser

Definition at line 22 of file TParserLibrary.h.

References fDestroyDataParser, and Load().

◆ DestroyRawFile()

void TParserLibrary::DestroyRawFile ( TRawFile file)
inline

function to destroy library specific raw data file

Definition at line 19 of file TParserLibrary.h.

References fDestroyRawFile, and Load().

◆ Get()

◆ GetAll()

static TParserLibrary * TSingleton< TParserLibrary >::GetAll ( )
inlinestaticinherited

Definition at line 62 of file TSingleton.h.

◆ LibraryVersion()

std::string TParserLibrary::LibraryVersion ( )
inline

returns version of shared object library loaded

Definition at line 24 of file TParserLibrary.h.

References fLibraryVersion, and Load().

◆ Load()

◆ PrintDirectory()

static void TSingleton< TParserLibrary >::PrintDirectory ( )
inlinestaticinherited

Definition at line 166 of file TSingleton.h.

◆ Set()

static void TSingleton< TParserLibrary >::Set ( TParserLibrary val)
inlinestaticinherited

Definition at line 129 of file TSingleton.h.

Friends And Related Function Documentation

◆ TSingleton< TParserLibrary >

friend class TSingleton< TParserLibrary >
friend

Definition at line 12 of file TParserLibrary.h.

Member Data Documentation

◆ fCreateDataParser

TDataParser*(* TParserLibrary::fCreateDataParser) ()
private

Definition at line 37 of file TParserLibrary.h.

Referenced by CreateDataParser(), and Load().

◆ fCreateRawFile

TRawFile*(* TParserLibrary::fCreateRawFile) (const std::string &)
private

Definition at line 34 of file TParserLibrary.h.

Referenced by CreateRawFile(), and Load().

◆ fDestroyDataParser

void(* TParserLibrary::fDestroyDataParser) (TDataParser *)
private

Definition at line 38 of file TParserLibrary.h.

Referenced by DestroyDataParser(), and Load().

◆ fDestroyRawFile

void(* TParserLibrary::fDestroyRawFile) (TRawFile *)
private

Definition at line 35 of file TParserLibrary.h.

Referenced by DestroyRawFile(), and Load().

◆ fHandle

void* TParserLibrary::fHandle
private

handle for shared object library

Definition at line 29 of file TParserLibrary.h.

Referenced by Load(), TParserLibrary(), and ~TParserLibrary().

◆ fInitLibrary

void(* TParserLibrary::fInitLibrary) ()
private

Definition at line 31 of file TParserLibrary.h.

Referenced by Load().

◆ fLibraryVersion

std::string(* TParserLibrary::fLibraryVersion) ()
private

Definition at line 32 of file TParserLibrary.h.

Referenced by LibraryVersion(), and Load().