BOSS 7.0.7
BESIII Offline Software System
|
DocMan allows different clients to share a single xml document. More...
#include <DocMan.h>
Classes | |
class | ClientList |
Nested class to keep track of clients for one element type. More... | |
Public Member Functions | |
virtual bool | parse (const std::string &filename, const std::string &docType=std::string("")) |
virtual bool | regClient (const std::string &eltName, DocClient *client) |
Static Public Member Functions | |
static DocMan * | getPointer () |
Implements singleton. | |
Protected Member Functions | |
DocMan () | |
virtual | ~DocMan () |
bool | regMeFirst (DocClient *client) |
Register privileged client; only available to derived classes. | |
ClientList * | findList (const std::string &eltName) |
DocMan allows different clients to share a single xml document.
Clients may sign up to handle particular child elements (direct children only of the root element). Then when the DocMan object (there is only one: it's a singleton) is asked to parse a file it
|
protected |
Definition at line 16 of file DocMan.cxx.
Referenced by getPointer().
|
protectedvirtual |
Definition at line 119 of file DocMan.cxx.
|
protected |
Definition at line 75 of file DocMan.cxx.
Referenced by parse(), and regClient().
|
static |
Implements singleton.
Definition at line 22 of file DocMan.cxx.
|
virtual |
parse not only parses and creates DOM; it also calls back registered clients.
Return false if something goes wrong with the parse
Definition at line 29 of file DocMan.cxx.
Definition at line 59 of file DocMan.cxx.
Register privileged client; only available to derived classes.
Definition at line 68 of file DocMan.cxx.