39 #ifndef OME_COMMON_XML_ENTITYRESOLVER_H
40 #define OME_COMMON_XML_ENTITYRESOLVER_H
48 #include <xercesc/util/XMLEntityResolver.hpp>
80 xercesc::InputSource *
85 typedef std::pair<boost::filesystem::path, std::string>
entity_cache;
98 xercesc::InputSource *
123 const std::string& data);
132 const boost::filesystem::path& file);
186 std::vector<ome::compat::shared_ptr<AutoRegisterEntity> >
registration;
203 const std::string& data);
212 const boost::filesystem::path& file);
255 #endif // OME_COMMON_XML_ENTITYRESOLVER_H
Memory type substitution.
~AutoRegisterEntity()
Destructor.
Definition: EntityResolver.cpp:166
AutoRegisterCatalog(const boost::filesystem::path &catalog)
Register a catalog file with the entity resolver.
Definition: EntityResolver.cpp:171
Register an entity with the entity resolver.
Definition: EntityResolver.h:193
Automatically register and unregister an XML catalog with the entity resolver.
Definition: EntityResolver.h:156
xercesc::InputSource * resolveEntity(xercesc::XMLResourceIdentifier *resource)
Resolve an entity.
Definition: EntityResolver.cpp:74
std::map< std::string, entity_cache > entity_map_type
Entity mapping type.
Definition: EntityResolver.h:87
ome::compat::shared_ptr< AutoRegisterEntity > registration
Automatic registration.
Definition: EntityResolver.h:219
AutoRegisterEntity(const std::string &id, const std::string &data)
Register in-memory text data with the entity resolver.
Xerces entity resolver.
Definition: EntityResolver.h:64
~RegisterEntity()
Destructor.
Definition: EntityResolver.cpp:266
EntityResolver()
Constructor.
Definition: EntityResolver.cpp:64
xercesc::InputSource * getSource(const std::string &resource)
Get input source from file.
Definition: EntityResolver.cpp:102
static entity_map_type & entities()
Get entity mappings.
Definition: EntityResolver.cpp:153
Boost.Filesystem compatibility.
~RegisterCatalog()
Destructor.
Definition: EntityResolver.cpp:256
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
Register an XML catalog with the entity resolver.
Definition: EntityResolver.h:225
ome::compat::shared_ptr< AutoRegisterCatalog > registration
Automatic registration.
Definition: EntityResolver.h:244
std::vector< ome::compat::shared_ptr< AutoRegisterEntity > > registration
Registered entities from this catalog.
Definition: EntityResolver.h:186
RegisterCatalog(const boost::filesystem::path &catalog)
Register a catalog file with the entity resolver.
Definition: EntityResolver.cpp:251
std::string id
XML system ID.
Definition: EntityResolver.h:150
std::pair< boost::filesystem::path, std::string > entity_cache
Cached entity (path and content).
Definition: EntityResolver.h:85
Automatically register and unregister an entity with the entity resolver.
Definition: EntityResolver.h:113
~AutoRegisterCatalog()
Destructor.
Definition: EntityResolver.cpp:247
AutoRegisterEntity & operator=(const AutoRegisterEntity &)
Assignment operator (deleted).
AutoRegisterCatalog & operator=(const AutoRegisterCatalog &)
Assignment operator (deleted).
~EntityResolver()
Destructor.
Definition: EntityResolver.cpp:69
Xerces-C modern C++ wrapper.
Definition: Base.h:53
RegisterEntity(const std::string &id, const std::string &data)
Register in-memory text data with the entity resolver.