bioformats  5.1.3
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ome::common::xml::EntityResolver::AutoRegisterCatalog Class Reference

Automatically register and unregister an XML catalog with the entity resolver. More...

+ Collaboration diagram for ome::common::xml::EntityResolver::AutoRegisterCatalog:

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).
 
AutoRegisterCatalogoperator= (const AutoRegisterCatalog &)
 Assignment operator (deleted).
 

Private Attributes

std::vector< ome::compat::shared_ptr< AutoRegisterEntity > > registration
 Registered entities from this catalog.
 

Detailed Description

Automatically register and unregister an XML catalog with the entity resolver.

Constructor & Destructor Documentation

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.

Parameters
catalogthe 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.


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