- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Mers::Utils::Io::Xml::XercesSetup Class Reference

`#include <XercesSetup.h>`

Collaboration diagram for Mers::Utils::Io::Xml::XercesSetup:

[legend]
List of all members.

## Public Member Functions
| XercesSetup ()
| ~XercesSetup ()

## Detailed Description

This class is used to initialize and uninitialize Xerces. One of this object must persist while using any of the Xerces functions. This class initializes Xerces using the XMLPlatformUtils when constructed and terminates Xerces when destroyed.

Note that we must not call any Xerces functions, including destructors, after we've terminated Xerces (in the destructor of this class). This means that all Xerces objects must be destroyed before the XercesSetup object goes out of scope. For objects on the stack, this means that we must scope the variables carefully to ensure this.

See http://xml.apache.org/xerces-c/faq-parse.html for details.

Definition at line 35 of file XercesSetup.h.

## Constructor & Destructor Documentation

XercesSetup::XercesSetup | ( |  | ) |

Sets up Xerces. Throws a Mers RuntimeException if setup fails or if one of these objects already exist.

Definition at line 81 of file XercesSetup.cpp.

XercesSetup::~XercesSetup | ( |  | ) |

Terminates Xerces.

Definition at line 102 of file XercesSetup.cpp.

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

- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/XercesSetup.h
- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/XercesSetup.cpp