Global readers have to prepend an "L" to their names as they are
REGISTER_GLOBAL_READER(clazz, ext)where clazz is the clazz name without "" and ext is the file extension
REGISTER_GLOBAL_READER(LMyGlobalReader,".txt")
Public Member Functions | |
QGlobalReader (const std::string &name) | |
constructor | |
virtual | ~QGlobalReader () |
destructor | |
virtual const QObject * | GetQObject (const std::string &name) const |
Get QObject, owned by this reader - leave it undeclared if you can't implement it. | |
virtual const TObject * | GetTObject (const std::string &name) const |
Get TObject, owned by this reader - leave it undeclared if you can't implement it. | |
virtual double | GetDouble (const std::string &name) const |
Get double, leave it undeclared if you can't implement it. | |
virtual int | GetInt (const std::string &name) const |
Get int, leave it undeclared if you can't implement it. | |
virtual float | GetFloat (const std::string &name) const |
Get float, leave it undeclared if you can't implement it. | |
virtual bool | GetBool (const std::string &name) const |
Get bool, leave it undeclared if you can't implement it. | |
virtual std::string | GetString (const std::string &name) const |
Get string, leave it undeclared if you can't implement it. | |
Protected Member Functions | |
virtual QError | Open (const std::string &filename, const std::string &opt="")=0 |
Open file, called by QGlobalReaderDispatcher. | |
virtual QError | Close ()=0 |
Close file, called by QGlobalReaderDispatcher. | |
Friends | |
class | QGlobalReaderDispatcher |