50 #ifndef DocumentParser_H
51 #define DocumentParser_H
59 #include <xercesc/dom/DOM.hpp>
60 XERCES_CPP_NAMESPACE_USE
62 #include "util/functions.h"
63 using namespace ::br::pucrio::telemidia::util;
65 #include "XMLParsing.h"
75 string userCurrentPath;
79 DOMDocument *documentTree;
80 map<string, void*>* genericTable;
87 virtual void initialize()=0;
90 void* parse(
string uri,
string iUriD,
string fUriD);
91 void* parse(DOMElement* rootElement,
string uri);
94 virtual void setDependencies();
95 virtual void* parseRootElement(DOMElement *rootElement)=0;
98 void initializeUserCurrentPath();
99 string absoluteFile(
string basePath,
string filename);
100 string getPath(
string filename);
105 string getUserCurrentPath();
106 bool checkUriPrefix(
string uri);
107 bool isAbsolutePath(
string path);
108 bool isXmlStr(
string location);
110 string getAbsolutePath(
string path);
111 string getDocumentUri();
112 string getDocumentPath();
113 void setDocumentPath(
string path);
114 DOMDocument *getDocumentTree();
115 void addObject(
string tableName,
string key,
void* value);
116 void* getObject(
string tableName,
string key);
117 void removeObject(
string tableName,
string key);
118 void addObjectGrouped(
string tableName,
string key,
void* value);
127 #endif //DocumentParser_H
Definition: DocumentParser.h:72