AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpDataStreams Class Reference

Mapping data streams provider. More...

#include <AliMpDataStreams.h>

Inheritance diagram for AliMpDataStreams:

Public Member Functions

 AliMpDataStreams (AliMpDataMap *map=0x0)
 
 AliMpDataStreams (TRootIOCtor *ioCtor)
 
virtual ~AliMpDataStreams ()
 
istream & CreateDataStream (const TString &path) const
 
Bool_t IsDataStream (const TString &path) const
 
void SetReadFromFiles ()
 
Bool_t GetReadFromFiles () const
 

Private Member Functions

 AliMpDataStreams (const AliMpDataStreams &right)
 Not implemented. More...
 
AliMpDataStreamsoperator= (const AliMpDataStreams &right)
 Not implemented. More...
 
void CutDataPath (string &dataPath) const
 

Private Attributes

AliMpDataMapfMap
 data map More...
 
Bool_t fReadFromFiles
 option for reading data from files More...
 

Detailed Description

Mapping data streams provider.

The class provides input streams for mapping data; the input streams can be represented either by the data files or by string streams filled from string map (AliMpDataMap). The string map is set from outside (AliMpCDB) and is not deleted in this class. The data streams returned by CreateDataStream() function must be deleted by the client code.

The selection between files and string streams is done in the constructor: if data map is provided, reading is performed from streams, otherwise reading is performed from file. User can also use the set function to select reading from files also when the data map is provided:
void SetReadFromFiles();

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 43 of file AliMpDataStreams.h.

Constructor & Destructor Documentation

AliMpDataStreams::AliMpDataStreams ( AliMpDataMap map = 0x0)

Standard and default constructor

Definition at line 48 of file AliMpDataStreams.cxx.

AliMpDataStreams::AliMpDataStreams ( TRootIOCtor *  ioCtor)

Root IO constructor

Definition at line 59 of file AliMpDataStreams.cxx.

AliMpDataStreams::~AliMpDataStreams ( )
virtual

Destructor

Definition at line 69 of file AliMpDataStreams.cxx.

AliMpDataStreams::AliMpDataStreams ( const AliMpDataStreams right)
private

Not implemented.

Member Function Documentation

istream & AliMpDataStreams::CreateDataStream ( const TString &  path) const

Return the string with data in the mapping file spcified with path. Both full path in the file system and a short path (without $LICE_ROOT/mapping/data string) can be used.

Definition at line 99 of file AliMpDataStreams.cxx.

void AliMpDataStreams::CutDataPath ( string &  dataPath) const
private

Cut the path defined in AliMpFiles as Top() + one more directory

Definition at line 83 of file AliMpDataStreams.cxx.

Referenced by CreateDataStream(), and IsDataStream().

Bool_t AliMpDataStreams::GetReadFromFiles ( ) const

Return the info where the data are loaded from

Definition at line 156 of file AliMpDataStreams.cxx.

Referenced by AliMpManuStore::ReadData(), AliMpDEStore::ReadData(), AliMpDDLStore::ReadData(), and AliMpSegmentation::ReadData().

Bool_t AliMpDataStreams::IsDataStream ( const TString &  path) const

Return true, if data with given path exists

Definition at line 130 of file AliMpDataStreams.cxx.

Referenced by AliMpSectorReader::BuildSector().

AliMpDataStreams& AliMpDataStreams::operator= ( const AliMpDataStreams right)
private

Not implemented.

void AliMpDataStreams::SetReadFromFiles ( )

Set option to read data from files

Definition at line 148 of file AliMpDataStreams.cxx.

Member Data Documentation

AliMpDataMap* AliMpDataStreams::fMap
private

data map

Definition at line 68 of file AliMpDataStreams.h.

Referenced by CreateDataStream(), and IsDataStream().

Bool_t AliMpDataStreams::fReadFromFiles
private

option for reading data from files

Definition at line 69 of file AliMpDataStreams.h.

Referenced by CreateDataStream(), GetReadFromFiles(), IsDataStream(), and SetReadFromFiles().


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