Public Member Functions | |
XercesPlatform () | |
~XercesPlatform () | |
Private Member Functions | |
XercesPlatform & | operator= (const XercesPlatform &orig) |
XercesPlatform (const XercesPlatform &orig) | |
Static Private Attributes | |
static unsigned int | instances = 0 |
Definition at line 47 of file XMLDocument.h.
XMLDocument::XercesPlatform::XercesPlatform | ( | ) |
Definition at line 37 of file XMLDocument.cc.
References e, lat::endl(), Exception, and instances.
00038 { 00039 if (!instances++) { 00040 try { 00041 XMLPlatformUtils::Initialize(); 00042 } catch(const XMLException &e) { 00043 throw cms::Exception("XMLDocument") 00044 << "XMLPlatformUtils::Initialize failed " 00045 "because of: " 00046 << XMLSimpleStr(e.getMessage()) << std::endl; 00047 } 00048 } 00049 }
XMLDocument::XercesPlatform::~XercesPlatform | ( | ) |
Definition at line 51 of file XMLDocument.cc.
References instances.
00052 { 00053 if (!--instances) 00054 XMLPlatformUtils::Terminate(); 00055 }
XMLDocument::XercesPlatform::XercesPlatform | ( | const XercesPlatform & | orig | ) | [private] |
XercesPlatform& XMLDocument::XercesPlatform::operator= | ( | const XercesPlatform & | orig | ) | [private] |
XERCES_CPP_NAMESPACE_USE unsigned int XMLDocument::XercesPlatform::instances = 0 [static, private] |
Definition at line 57 of file XMLDocument.h.
Referenced by XercesPlatform(), lhef::XMLDocument::XercesPlatform::XercesPlatform(), lhef::XMLDocument::XercesPlatform::~XercesPlatform(), and ~XercesPlatform().