![]() |
Diana Software
|
Abstract class for global writers. More...
Public Member Functions | |
| QGlobalWriter (const std::string &name) | |
| constructor More... | |
| virtual | ~QGlobalWriter () |
| destructor More... | |
| template<class Q > | |
| QError | Set (const std::string &name, const Q &obj, const std::string &descr="") |
| Set QObject, owned by the caller, - leave it undeclared if you can't implement it. 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) |
Protected Member Functions | |
| virtual QError | SetQObject (const std::string &name, const std::string &className, const Diana::QObject *obj, const std::string &descr)=0 |
| virtual QError | Open (const std::string &filename, const std::string &opt="")=0 |
| Open file, called by QGlobalWriterDispatcher. More... | |
| virtual QError | Close ()=0 |
| Close file, called by QGlobalWriterDispatcher. More... | |
Friends | |
| class | QGlobalWriterDispatcher |
Abstract class for global writers.
Global writers are managed by the QGlobalWriterDispatcher class that
takes care of file opening and closing when it is necessary.
Global writers have to prepend an "L" to their names as they are
loadable plugins. In the implementation file the following macro
not followed by semicolon have to be used in order to generate the
code needed by the QGlobalRWFactory:
REGISTER_GLOBAL_WRITER(clazz, ext)
where clazz is the clazz name without "" and ext is the file extension
that identifies the file types that this writer can manage.
Exemplum for the text file writer LMyGlobalWriter:
REGISTER_GLOBAL_WRITER(LMyGlobalWriter,".txt")
Definition at line 39 of file QGlobalWriter.hh.
|
inline |
constructor
Definition at line 43 of file QGlobalWriter.hh.
|
inlinevirtual |
destructor
Definition at line 46 of file QGlobalWriter.hh.
|
protectedpure virtual |
Close file, called by QGlobalWriterDispatcher.
Implemented in LRootGlobalWriter, LGuiSessionWriter, and LASCIIGlobalWriter.
Referenced by QGlobalWriterDispatcher::Clear().
|
protectedpure virtual |
Open file, called by QGlobalWriterDispatcher.
Implemented in LRootGlobalWriter, LGuiSessionWriter, and LASCIIGlobalWriter.
Referenced by QGlobalWriterDispatcher::GetWriter().
|
inline |
Set QObject, owned by the caller, - leave it undeclared if you can't implement it.
Definition at line 49 of file QGlobalWriter.hh.
References Demangle(), and SetQObject().
Referenced by QRootFileWriterBase::Done(), QRootFileWriterBase::Dump(), and GlobalHandle< Q >::StoreOnFile().
|
protectedpure virtual |
Implemented in LRootGlobalWriter, LGuiSessionWriter, and LASCIIGlobalWriter.
Referenced by Set().
|
friend |
Definition at line 63 of file QGlobalWriter.hh.