CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Static Private Attributes
XMLDocument::XercesPlatform Class Reference

Public Member Functions

 XercesPlatform ()
 
 ~XercesPlatform ()
 

Private Member Functions

XercesPlatformoperator= (const XercesPlatform &orig)
 
 XercesPlatform (const XercesPlatform &orig)
 

Static Private Attributes

static unsigned int instances = 0
 

Detailed Description

Definition at line 50 of file XMLDocument.h.

Constructor & Destructor Documentation

XMLDocument::XercesPlatform::XercesPlatform ( )

Definition at line 123 of file XMLDocument.cc.

References ExpressReco_HICollisions_FallBack::e, edm::hlt::Exception, and instances.

124 {
125  if (!instances++) {
126  try {
127  XMLPlatformUtils::Initialize();
128  } catch(const XMLException &e) {
129  throw cms::Exception("XMLDocument")
130  << "XMLPlatformUtils::Initialize failed "
131  "because of: "
132  << XMLSimpleStr(e.getMessage()) << std::endl;
133  }
134  }
135 }
static unsigned int instances
Definition: XMLDocument.h:60
XMLDocument::XercesPlatform::~XercesPlatform ( )

Definition at line 137 of file XMLDocument.cc.

138 {
139  if (!--instances)
140  XMLPlatformUtils::Terminate();
141 }
static unsigned int instances
Definition: XMLDocument.h:60
XMLDocument::XercesPlatform::XercesPlatform ( const XercesPlatform orig)
private

Member Function Documentation

XercesPlatform& XMLDocument::XercesPlatform::operator= ( const XercesPlatform orig)
private

Member Data Documentation

XERCES_CPP_NAMESPACE_USE unsigned int XMLDocument::XercesPlatform::instances = 0
staticprivate

Definition at line 60 of file XMLDocument.h.

Referenced by XercesPlatform().