![]() |
Diana Software
|
global reader for txt files More...
Public Member Functions | |
| LASCIIGlobalReader () | |
| ~LASCIIGlobalReader () | |
| 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 | |
| const Diana::QObject * | GetQObject (const std::string &name, QError &err) const |
| double | GetDouble (const std::string &name, QError &err) const |
| int | GetInt (const std::string &name, QError &err) const |
| float | GetFloat (const std::string &name, QError &err) const |
| bool | GetBool (const std::string &name, QError &err) const |
| std::string | GetString (const std::string &name, QError &err) const |
Private Attributes | |
| std::string | fFileName |
| std::map< std::string, Diana::QObject * > * | fQObjectCache |
| QASCII * | fFile |
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 |
global reader for txt files
Definition at line 18 of file LASCIIGlobalReader.hh.
| LASCIIGlobalReader::LASCIIGlobalReader | ( | ) |
Definition at line 17 of file LASCIIGlobalReader.cc.
| LASCIIGlobalReader::~LASCIIGlobalReader | ( | ) |
Definition at line 22 of file LASCIIGlobalReader.cc.
References Close(), and fQObjectCache.
|
virtual |
Close file, called by QGlobalReaderDispatcher.
Implements QGlobalReader.
Definition at line 43 of file LASCIIGlobalReader.cc.
References err, fFile, and QERR_SUCCESS.
Referenced by ~LASCIIGlobalReader().
|
private |
Definition at line 315 of file LASCIIGlobalReader.cc.
References err, fFile, QASCII::FindLine(), QNamed::GetName(), Q_BOOL_DEFAULT, QERR_FILE_NOT_FOUND, QERR_SUCCESS, QERR_UNKNOWN_ERR, and QASCII::ReadString().
Referenced by GetQObject().
|
private |
Definition at line 251 of file LASCIIGlobalReader.cc.
References err, fFile, QASCII::FindLine(), QNamed::GetName(), Q_DOUBLE_DEFAULT, QERR_FILE_NOT_FOUND, QERR_SUCCESS, QERR_UNKNOWN_ERR, and QASCII::ReadString().
Referenced by GetQObject().
|
private |
Definition at line 282 of file LASCIIGlobalReader.cc.
References err, fFile, QASCII::FindLine(), QNamed::GetName(), Q_FLOAT_DEFAULT, QERR_FILE_NOT_FOUND, QERR_SUCCESS, QERR_UNKNOWN_ERR, and QASCII::ReadString().
Referenced by GetQObject().
|
private |
Definition at line 219 of file LASCIIGlobalReader.cc.
References err, fFile, QASCII::FindLine(), QNamed::GetName(), Q_INT_DEFAULT, QERR_FILE_NOT_FOUND, QERR_SUCCESS, QERR_UNKNOWN_ERR, and QASCII::ReadString().
Referenced by GetQObject().
|
virtual |
Reimplemented from QGlobalReader.
Definition at line 51 of file LASCIIGlobalReader.cc.
References err, GetBool(), GetDouble(), GetFloat(), GetInt(), and GetString().
|
private |
Definition at line 69 of file LASCIIGlobalReader.cc.
References err, fFile, QASCII::FindLine(), fQObjectCache, QNamed::GetName(), QObject::New(), QERR_FILE_NOT_FOUND, QERR_SUCCESS, QERR_UNKNOWN_ERR, QASCII::ReadQTime(), QASCII::ReadQVector(), QASCII::ReadString(), and QMatrix::SetCol().
|
private |
Definition at line 186 of file LASCIIGlobalReader.cc.
References err, fFile, QASCII::FindLine(), QNamed::GetName(), Q_STRING_DEFAULT, QERR_FILE_NOT_FOUND, QERR_SUCCESS, QERR_UNKNOWN_ERR, and QASCII::ReadString().
Referenced by GetQObject().
|
virtual |
Open file, called by QGlobalReaderDispatcher.
Implements QGlobalReader.
Definition at line 28 of file LASCIIGlobalReader.cc.
References err, QASCII::Exists(), fFile, QNamed::GetName(), QERR_CANNOT_OPEN_FILE, and QERR_SUCCESS.
|
private |
Definition at line 47 of file LASCIIGlobalReader.hh.
Referenced by Close(), GetBool(), GetDouble(), GetFloat(), GetInt(), GetQObject(), GetString(), and Open().
|
private |
Definition at line 45 of file LASCIIGlobalReader.hh.
|
private |
Definition at line 46 of file LASCIIGlobalReader.hh.
Referenced by GetQObject(), and ~LASCIIGlobalReader().