bioformats
5.1.3
|
Automatically register and unregister an XML catalog with the entity resolver. More...
Public Member Functions | |
AutoRegisterCatalog (const boost::filesystem::path &catalog) | |
Register a catalog file with the entity resolver. More... | |
~AutoRegisterCatalog () | |
Destructor. More... | |
Private Member Functions | |
AutoRegisterCatalog (const AutoRegisterCatalog &) | |
Copy constructor (deleted). | |
AutoRegisterCatalog & | operator= (const AutoRegisterCatalog &) |
Assignment operator (deleted). | |
Private Attributes | |
std::vector< ome::compat::shared_ptr< AutoRegisterEntity > > | registration |
Registered entities from this catalog. | |
Automatically register and unregister an XML catalog with the entity resolver.
ome::common::xml::EntityResolver::AutoRegisterCatalog::AutoRegisterCatalog | ( | const boost::filesystem::path & | catalog | ) |
Register a catalog file with the entity resolver.
The catalog will be read, and any entities in it will be registered. This will be done recursively for all referenced catalogs.
catalog | the filename of the catalog. |
References ome::common::canonical(), ome::common::xml::dom::createDocument(), ome::common::xml::dom::Document::getDocumentElement(), and registration.
ome::common::xml::EntityResolver::AutoRegisterCatalog::~AutoRegisterCatalog | ( | ) |
Destructor.
The entity will be unregistered with the entity resolver.