-
Notifications
You must be signed in to change notification settings - Fork 4
/
hddsBrowser.hpp
44 lines (37 loc) · 1.18 KB
/
hddsBrowser.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* HDDS Browser Classes
*
* Author: [email protected]
*
* Original version - Richard Jones, June 3, 2008.
*
*/
#ifndef SAW_HDDSBROWSER_DEF
#define SAW_HDDSBROWSER_DEF true
#include <vector>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/XMLStringTokenizer.hpp>
#include <xercesc/sax/SAXParseException.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/sax/ErrorHandler.hpp>
using namespace xercesc;
#include "XString.hpp"
#include "XParsers.hpp"
#include "hddsCommon.hpp"
class hddsBrowser
{
/* The hddsBrowser class is a general utility class for looking up
* geometry information in the hdds geometry tree.
*/
public:
hddsBrowser(const XString xmlFile); // constructor from xml document
std::vector<Refsys>* find(const XString volume, const Refsys *ref = 0,
const DOMElement *contEl = 0);
// look up a volume in the geometry
private:
DOMDocument *fGeomDoc; // the geometry tree document
};
#endif