Chapter 5.  XmlContainer

#include <DbXml.hpp>

class DbXml::XmlContainer {
public:
	XmlContainer()
	XmlContainer(const XmlContainer &o)
	XmlContainer &operator=(const XmlContainer &o)
	~XmlContainer()
	...
};

The XmlContainer class encapsulates a document container and its related indices and statistics. XmlContainer exposes methods for managing (putting and deleting) XmlDocument objects, managing indices, and retrieving container statistics.

If the container has never before been opened, use XmlManager::createContainer to instantiate an XmlContainer object. If the container already exists, use XmlManager::openContainer instead. XmlContainers are always opened until the last referencing handle is destroyed.

You can delete containers using XmlManager::removeContainer and rename containers using XmlManager::renameContainer.

A copy constructor and assignment operator are provided for this class. The class is implemented using a handle-body idiom. When a handle is copied both handles maintain a reference to the same body. This object is free threaded, and can be safely shared among threads in an application.

XmlContainer Methods