XmlManager::existsContainer

#include <DbXml.hpp>

int XmlManager::existsContainer(const std::string &name);

The XmlManager::existsContainer method examines the named file, and if it is a container, returns a non-zero database format version. If the file does not exist, or is not a container, zero is returned.

The container may be open or closed; no exceptions will be thrown from this method.

Parameters

txn

If the operation is to be transaction-protected, the txn parameter is an XmlTransaction handle returned from XmlManager::createTransaction.

name

The name of the file to be examined.

Class

XmlManager

See Also

XmlManager Methods