BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
xmlBase::EResolver Class Reference

#include <EResolver.h>

+ Inheritance diagram for xmlBase::EResolver:

Public Member Functions

 EResolver ()
 
virtual ~EResolver ()
 
virtual XERCES_CPP_NAMESPACE_QUALIFIER InputSource * resolveEntity (XERCES_CPP_NAMESPACE_QUALIFIER XMLResourceIdentifier *xmlRI)
 
void clean ()
 

Detailed Description

Definition at line 20 of file EResolver.h.

Constructor & Destructor Documentation

◆ EResolver()

XERCES_CPP_NAMESPACE_USE xmlBase::EResolver::EResolver ( )

Definition at line 21 of file EResolver.cxx.

21 : m_nEntity(0) {
22 m_entities.clear();
23 }

◆ ~EResolver()

xmlBase::EResolver::~EResolver ( )
virtual

Definition at line 86 of file EResolver.cxx.

86 {
87 clean();
88 }

Member Function Documentation

◆ clean()

void xmlBase::EResolver::clean ( )

Definition at line 78 of file EResolver.cxx.

78 {
79 for (unsigned i = 0; i < m_entities.size(); i++) {
80 delete m_entities[i];
81 }
82 m_entities.clear();
83 m_nEntity = 0;
84 }

Referenced by xmlBase::XmlParser::parse(), and ~EResolver().

◆ resolveEntity()

InputSource * xmlBase::EResolver::resolveEntity ( XERCES_CPP_NAMESPACE_QUALIFIER XMLResourceIdentifier *  xmlRI)
virtual

Definition at line 38 of file EResolver.cxx.

38 {
39 const XMLCh* publicId = xmlRI->getPublicId();
40 const XMLCh* systemId = xmlRI->getSystemId();
41 const XMLCh* baseURI = xmlRI->getBaseURI();
42 if (publicId != 0) {
43 if (XMLString::stringLen(publicId) > 0) {
44 return translateEnv(publicId, baseURI);
45 }
46 }
47 return translateEnv(systemId, baseURI);
48 }

The documentation for this class was generated from the following files: