BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/xmlBase/xmlBase-00-00-03/xmlBase/EResolver.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/xmlBase/xmlBase/EResolver.h,v 1.1.1.1 2005/10/17 06:10:27 maqm Exp $
2// Author: J. Bogart
3
4#ifndef xmlBase_EResolver_h
5#define xmlBase_EResolver_h
6
7#include <xercesc/util/XercesDefs.hpp>
8#include <xercesc/util/XMLEntityResolver.hpp>
9#include <xercesc/sax/InputSource.hpp>
10#include <vector>
11#include <string>
12
13XERCES_CPP_NAMESPACE_BEGIN
14class XercesDOMParser;
15class XMLResourceIdenifier;
16XERCES_CPP_NAMESPACE_END
17
18namespace xmlBase {
19
20 class EResolver : public XERCES_CPP_NAMESPACE_QUALIFIER XMLEntityResolver {
21 public:
22 EResolver();
23 virtual ~EResolver();
24
25 virtual XERCES_CPP_NAMESPACE_QUALIFIER InputSource*
26 resolveEntity(XERCES_CPP_NAMESPACE_QUALIFIER XMLResourceIdentifier* xmlRI);
27
28 void clean(); // Return resources used during a parse
29 private:
30 // Might want other stuff here for bookkeeping purposes
31 unsigned m_nEntity;
32 std::vector<std::string*> m_entities;
33
34 XERCES_CPP_NAMESPACE_QUALIFIER InputSource*
35 translateEnv(const XMLCh * id, const XMLCh * baseURI);
36 };
37
38}
39#endif
virtual ~EResolver()
Definition: EResolver.cxx:86
virtual XERCES_CPP_NAMESPACE_QUALIFIER InputSource * resolveEntity(XERCES_CPP_NAMESPACE_QUALIFIER XMLResourceIdentifier *xmlRI)
Definition: EResolver.cxx:38