Diana Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LHDRGlobalReader Class Reference
Inheritance diagram for LHDRGlobalReader:
QGlobalReader QNamed

Public Member Functions

 LHDRGlobalReader ()
 
 ~LHDRGlobalReader ()
 
QError Open (const std::string &filename, const std::string &opt="")
 Open file, called by QGlobalReaderDispatcher. More...
 
QError Close ()
 Close file, called by QGlobalReaderDispatcher. More...
 
const Diana::QObject * GetQObject (const std::string &name, const std::string &className, QError &err) const
 
- Public Member Functions inherited from QGlobalReader
 QGlobalReader (const std::string &name)
 constructor More...
 
virtual ~QGlobalReader ()
 destructor More...
 
template<class Q >
const Q * Get (const std::string &name, QError &err) const
 Get QObject, owned by this reader. More...
 
template<class Q >
const Q * Get (const Diana::QGlobalLabel &label, QError &err) const
 Get QObject, owned by this reader. More...
 
- Public Member Functions inherited from QNamed
 QNamed ()
 
 QNamed (const std::string &Name)
 
virtual ~QNamed ()
 
const std::string & GetName () const
 
void SetName (const std::string &name)
 

Private Member Functions

void Parse ()
 

Private Attributes

std::map< std::string, Diana::QObject * > * fQObjectCache
 
std::ifstream fFile
 
std::string fName
 

Additional Inherited Members

- Protected Member Functions inherited from QGlobalReader
virtual const Diana::QObject * GetQObject (const Diana::QGlobalLabel &label, const std::string &className, QError &err) const
 

Detailed Description

Definition at line 18 of file LHDRGlobalReader.hh.

Constructor & Destructor Documentation

◆ LHDRGlobalReader()

LHDRGlobalReader::LHDRGlobalReader ( )

Definition at line 16 of file LHDRGlobalReader.cc.

◆ ~LHDRGlobalReader()

LHDRGlobalReader::~LHDRGlobalReader ( )

Definition at line 21 of file LHDRGlobalReader.cc.

References Close(), and fQObjectCache.

Member Function Documentation

◆ Close()

QError LHDRGlobalReader::Close ( )
virtual

Close file, called by QGlobalReaderDispatcher.

Implements QGlobalReader.

Definition at line 45 of file LHDRGlobalReader.cc.

References err, fFile, fName, fQObjectCache, and QERR_SUCCESS.

Referenced by ~LHDRGlobalReader().

◆ GetQObject()

const QObject * LHDRGlobalReader::GetQObject ( const std::string &  name,
const std::string &  className,
QError err 
) const
virtual

Reimplemented from QGlobalReader.

Definition at line 61 of file LHDRGlobalReader.cc.

References err, fQObjectCache, QNamed::GetName(), QERR_SUCCESS, and QERR_UNKNOWN_ERR.

◆ Open()

QError LHDRGlobalReader::Open ( const std::string &  filename,
const std::string &  opt = "" 
)
virtual

Open file, called by QGlobalReaderDispatcher.

Implements QGlobalReader.

Definition at line 28 of file LHDRGlobalReader.cc.

References err, fFile, fName, Parse(), QERR_CANNOT_OPEN_FILE, and QERR_SUCCESS.

◆ Parse()

void LHDRGlobalReader::Parse ( )
private

Member Data Documentation

◆ fFile

std::ifstream LHDRGlobalReader::fFile
private

Definition at line 37 of file LHDRGlobalReader.hh.

Referenced by Close(), Open(), and Parse().

◆ fName

std::string LHDRGlobalReader::fName
private

Definition at line 38 of file LHDRGlobalReader.hh.

Referenced by Close(), Open(), and Parse().

◆ fQObjectCache

std::map<std::string, Diana::QObject*>* LHDRGlobalReader::fQObjectCache
private

Definition at line 35 of file LHDRGlobalReader.hh.

Referenced by Close(), GetQObject(), and ~LHDRGlobalReader().


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