27 #include "../common/Logger.h"
28 #include "../common/Translator.h"
35 #include <xercesc/util/PlatformUtils.hpp>
36 #include <xercesc/util/XMLString.hpp>
41 : te::plugin::CppPlugin(pInfo)
56 xercesc::XMLPlatformUtils::Initialize();
58 catch(
const xercesc::XMLException& e)
60 char* exceptMesg = xercesc::XMLString::transcode(e.getMessage());
62 std::string m =
TE_TR(
"Error during Xerces initialization. Exception messages is: ");
65 xercesc::XMLString::release(&exceptMesg);
67 throw te::xerces::Exception(m);
88 xercesc::XMLPlatformUtils::Terminate();
90 catch(
const xercesc::XMLException& e)
92 char* exceptMesg = xercesc::XMLString::transcode(e.getMessage());
94 std::string m =
TE_TR(
"Error during Xerces finalization. Exception messages is: ");
97 xercesc::XMLString::release(&exceptMesg);
99 throw te::xerces::Exception(m);
104 m_initialized =
true;
#define TE_LOG_TRACE(msg)
Use this tag in order to log a message to a specified logger with the TRACE level.
#define TE_TR(message)
It marks a string in order to get translated.
void startup()
This method will be called by TerraLib to startup some plugin's functionality.
void shutdown()
This method will be called by TerraLib to shutdown plugin's functionality.
#define PLUGIN_CALL_BACK_IMPL(PLUGIN_CLASS_NAME)
This macro should be used by C++ plugins in order to declare the exportable/callable DLL function...
static void initialize()
It initializes the factory: it will be registered in the abstract factory ReaderFactory.
static void finalize()
It finalizes the factory: it will be destroyed and will be unregistered from the abstract factory Rea...
Module(const te::plugin::PluginInfo &pInfo)
Plugin constructor.
static bool m_initialized
An exception class for the xerces module.
The TerraLib Xerces module is a plugin.
The basic information about a plugin.