XmlManager::dumpContainer

#include <DbXml.hpp>

void XmlManager::dumpContainer(const std::string name, std::ostream *out)

Dumps the contents of the specified container to the specified output stream. The container can be reconstructed by a call to XmlManager::loadContainer.

The container must be closed; the system throws an exception if the container is open.

The container must be have been opened at least once; the system throws an exception if the underlying files have not yet been created.

Parameters

name

The name of the container to be dumped.

out

The output stream to which the container is to be dumped.

Errors

The XmlManager::dumpContainer method may fail and throw XmlException , encapsulating one of the following non-zero errors:

CONTAINER_OPEN

The container is open.

DATABASE_ERROR

An error occurred in an underlying Berkeley DB database. The XmlException::getDbErrno method will return the error code for the error.

Class

XmlManager

See Also

XmlManager Methods