27 #include "../common/Logger.h"
28 #include "../common/Translator.h"
36 #include <xercesc/util/PlatformUtils.hpp>
37 #include <xercesc/util/XMLString.hpp>
42 :
te::plugin::CppPlugin(pInfo)
57 xercesc::XMLPlatformUtils::Initialize();
59 catch(
const xercesc::XMLException& e)
61 char* exceptMesg = xercesc::XMLString::transcode(e.getMessage());
63 std::string m =
TE_TR(
"Error during Xerces initialization. Exception messages is: ");
66 xercesc::XMLString::release(&exceptMesg);
68 throw te::xerces::Exception(m);
91 xercesc::XMLPlatformUtils::Terminate();
93 catch(
const xercesc::XMLException& e)
95 char* exceptMesg = xercesc::XMLString::transcode(e.getMessage());
97 std::string m =
TE_TR(
"Error during Xerces finalization. Exception messages is: ");
100 xercesc::XMLString::release(&exceptMesg);
102 throw te::xerces::Exception(m);
107 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.
static void initialize()
It initializes the factory: it will be registered in the abstract factory WriterFactory.
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.
static void finalize()
It finalizes the factory: it will be destroyed and will be unregistered from the abstract factory Wri...
This is the concrete factory for XML writer built on top of Xerces-C++ parser.