3#ifndef xmlBase_DocMan_h
4#define xmlBase_DocMan_h
6#include "xmlBase/XmlParser.h"
10typedef XERCES_CPP_NAMESPACE_QUALIFIER DOMElement
DomElement;
40 virtual bool parse(
const std::string& filename,
41 const std::string& docType = std::string(
"" ) );
55 ClientList(
const std::string& eltName ) : m_eltName( eltName ) {}
69 const std::string&
getName() {
return m_eltName; }
75 std::string m_eltName;
76 std::vector<DocClient*> m_clients;
77 typedef std::vector<DocClient*>::const_iterator ClientsIt;
84 std::vector<ClientList*> m_lists;
85 typedef std::vector<ClientList*>::const_iterator ListsIt;
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement DomElement
Nested class to keep track of clients for one element type.
void invoke(DomElement *elt)
call back each client in turn
const std::string & getName()
which list are we?
bool add(DocClient *client, bool front=false)
Add a client to list.
bool remove(DocClient *client)
ClientList(const std::string &eltName)
virtual bool regClient(const std::string &eltName, DocClient *client)
static DocMan * getPointer()
Implements singleton.
bool regMeFirst(DocClient *client)
Register privileged client; only available to derived classes.
virtual bool parse(const std::string &filename, const std::string &docType=std::string(""))
ClientList * findList(const std::string &eltName)