39 #ifndef OME_COMMON_XML_ENTITYRESOLVER_H 40 #define OME_COMMON_XML_ENTITYRESOLVER_H 45 #include <boost/filesystem/path.hpp> 51 #include <xercesc/util/XMLEntityResolver.hpp> 83 xercesc::InputSource *
94 const boost::filesystem::path& file);
119 xercesc::InputSource *
135 #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:175
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
Message logger.
Definition: log.h:71
entity_data_map_type entity_data_map
Map of system IDs to cached XML data.
Definition: EntityResolver.h:128
std::map< std::string, std::string > entity_data_map_type
Mapping from system ID to XML data.
Definition: EntityResolver.h:108
Memory type substitution.
std::map< std::string, boost::filesystem::path > entity_path_map_type
Mapping from system ID to filesystem path.
Definition: EntityResolver.h:106
xercesc::InputSource * resolveEntity(xercesc::XMLResourceIdentifier *resource)
Resolve an entity.
Definition: EntityResolver.cpp:81
Xerces entity resolver.
Definition: EntityResolver.h:67
EntityResolver()
Constructor.
Definition: EntityResolver.cpp:68
xercesc::InputSource * getSource(const std::string &resource)
Get input source from file.
Definition: EntityResolver.cpp:109
Open Microscopy Environment C++.
Definition: base64.h:49
void registerCatalog(const boost::filesystem::path &file)
Register a catalog with the entity resolver.
Definition: EntityResolver.cpp:198
entity_path_map_type entity_path_map
Map of registered system IDs to filesystem paths.
Definition: EntityResolver.h:126
ome::common::Logger logger
Message logger.
Definition: EntityResolver.h:124
~EntityResolver()
Destructor.
Definition: EntityResolver.cpp:76