27 #include "../core/logger/Logger.h" 28 #include "../common/TerraLib.h" 29 #include "../core/translator/Translator.h" 30 #include "../xerces/ReaderFactory.h" 31 #include "../xerces/WriterFactory.h" 37 #include <xercesc/util/PlatformUtils.hpp> 38 #include <xercesc/util/XMLString.hpp> 69 catch(
const xercesc::XMLException& e)
71 char* exceptMesg = xercesc::XMLString::transcode(e.getMessage());
73 std::string m =
TE_TR(
"Error during Xerces initialization. Exception messages is: ");
76 xercesc::XMLString::release(&exceptMesg);
101 xercesc::XMLPlatformUtils::Terminate();
103 catch(
const xercesc::XMLException& e)
105 char* exceptMesg = xercesc::XMLString::transcode(e.getMessage());
107 std::string m =
TE_TR(
"Error during Xerces finalization. Exception messages is: ");
110 xercesc::XMLString::release(&exceptMesg);
#define TE_XML_MODULE_NAME
This singleton defines the TerraLib XML module entry.
Base exception class for plugin module.
#define TE_TR(message)
It marks a string in order to get translated.
static void initialize()
This is the initialize function for the TerraLib XML module.
#define TE_LOG_INFO(message)
Use this tag in order to log a message to the TerraLib default logger with the INFO level...
static void initialize()
It initializes the factory: it will be registered in the abstract factory WriterFactory.
const te::xml::Module & sm_module
static void initialize()
It initializes the factory: it will be registered in the abstract factory ReaderFactory.
static bool m_initialized(false)
static Module & getInstance()
It returns a reference to the singleton instance.
Module()
The singleton constructor is not callable outside the class.
static void finalize()
It finalizes the factory: it will be destroyed and will be unregistered from the abstract factory Rea...
An exception class for the XML module.
void remove(const std::string &moduleName)
It removes the module entry identified by the given name.
Configuration flags for the XML API of TerraLib.
void add(const Module &m)
It registers the module in the TerraLib Platform.
static void finalize()
This is the cleanup function for the TerraLib XML module.
This internal structure is used to model the basic information about a TerraLib module.
static void finalize()
It finalizes the factory: it will be destroyed and will be unregistered from the abstract factory Wri...
This singleton defines the TerraLib XML module entry.