CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Static Private Attributes

XMLDocument::XercesPlatform Class Reference

List of all members.

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 alignCSCRings::e, Exception, and instances.

{
        if (!instances++) {
                try {
                        XMLPlatformUtils::Initialize();
                } catch(const XMLException &e) {
                        throw cms::Exception("XMLDocument")
                                << "XMLPlatformUtils::Initialize failed "
                                   "because of: "
                                << XMLSimpleStr(e.getMessage()) << std::endl;
                }
        }
}
XMLDocument::XercesPlatform::~XercesPlatform ( )

Definition at line 137 of file XMLDocument.cc.

{
        if (!--instances)
                XMLPlatformUtils::Terminate();
}
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 [static, private]

Definition at line 60 of file XMLDocument.h.

Referenced by XercesPlatform().