39 #ifndef OME_COMMON_XML_ENTITYRESOLVER_H 40 #define OME_COMMON_XML_ENTITYRESOLVER_H 46 #include <boost/filesystem/path.hpp> 50 #include <xercesc/util/XMLEntityResolver.hpp> 82 xercesc::InputSource *
93 const boost::filesystem::path& file);
118 xercesc::InputSource *
134 #endif // OME_COMMON_XML_ENTITYRESOLVER_H void registerEntity(const std::string &id, const boost::filesystem::path &file)
Register a file with the entity resolver.
Definition: EntityResolver.cpp:177
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
Message logger.
Definition: log.h:98
entity_data_map_type entity_data_map
Map of system IDs to cached XML data.
Definition: EntityResolver.h:127
std::map< std::string, std::string > entity_data_map_type
Mapping from system ID to XML data.
Definition: EntityResolver.h:107
std::map< std::string, boost::filesystem::path > entity_path_map_type
Mapping from system ID to filesystem path.
Definition: EntityResolver.h:105
xercesc::InputSource * resolveEntity(xercesc::XMLResourceIdentifier *resource)
Resolve an entity.
Definition: EntityResolver.cpp:83
Xerces entity resolver.
Definition: EntityResolver.h:66
EntityResolver()
Constructor.
Definition: EntityResolver.cpp:70
xercesc::InputSource * getSource(const std::string &resource)
Get input source from file.
Definition: EntityResolver.cpp:111
Open Microscopy Environment C++.
Definition: base64.h:48
void registerCatalog(const boost::filesystem::path &file)
Register a catalog with the entity resolver.
Definition: EntityResolver.cpp:200
entity_path_map_type entity_path_map
Map of registered system IDs to filesystem paths.
Definition: EntityResolver.h:125
ome::common::Logger logger
Message logger.
Definition: EntityResolver.h:123
~EntityResolver()
Destructor.
Definition: EntityResolver.cpp:78