te::common::Module Class Reference

This singleton defines an entry in the Platform for the TerraLib Common Runtime module. More...

#include <Module.h>

Inheritance diagram for te::common::Module:
te::common::Singleton< Module >

Static Public Member Functions

static ModulegetInstance ()
 It returns a reference to the singleton instance. More...
 

Protected Member Functions

 Module ()
 The singleton constructor will make some initializations. More...
 
 ~Module ()
 

Static Private Member Functions

static void finalize ()
 This is the cleanup function for the TerraLib Common Runtime module. More...
 
static void initialize ()
 This is the startup function for the TerraLib Common Runtime module. More...
 

Static Private Attributes

static const Modulesm_module
 let's force C++ to make an static initialization. More...
 

Friends

class te::common::Singleton< Module >
 

Detailed Description

This singleton defines an entry in the Platform for the TerraLib Common Runtime module.

This class is responsible for:

  • registering the initialization and cleanup routines for the Common Runtime module if it is required.
  • start the logger configuration if TerraLib is configured to have it initialized automatically.
  • registering the Common Runtime multilingual support.

Definition at line 50 of file src/terralib/common/Module.h.

Constructor & Destructor Documentation

te::common::Module::Module ( )
protected

The singleton constructor will make some initializations.

The initialization includes:

  • registering the Common Runtime module in the list of initializable modules.
  • registering the Common Runtime multilingual support.
  • Singletons initialization
  • Logger initialization when automatic static initialization is enabled.

Definition at line 42 of file src/terralib/common/Module.cpp.

References TerraLib::add(), finalize(), te::common::Singleton< TerraLib >::getInstance(), te::common::Singleton< UnitsOfMeasureManager >::getInstance(), initialize(), and TE_COMMON_MODULE_NAME.

te::common::Module::~Module ( )
protected

Member Function Documentation

void te::common::Module::finalize ( )
staticprivate

This is the cleanup function for the TerraLib Common Runtime module.

Note
This method doesn't perform operations for this module.

Definition at line 78 of file src/terralib/common/Module.cpp.

References te::common::UnitsOfMeasureManager::clear(), te::common::Singleton< UnitsOfMeasureManager >::getInstance(), TE_LOG_TRACE, and TE_TR.

Referenced by Module().

static Module & te::common::Singleton< Module >::getInstance ( )
staticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.
void te::common::Module::initialize ( )
staticprivate

This is the startup function for the TerraLib Common Runtime module.

Note
This method doesn't perform operations for this module.

Definition at line 69 of file src/terralib/common/Module.cpp.

References te::common::Singleton< UnitsOfMeasureManager >::getInstance(), te::common::UnitsOfMeasureManager::init(), TE_LOG_TRACE, and TE_TR.

Referenced by Module().

Friends And Related Function Documentation

friend class te::common::Singleton< Module >
friend

Definition at line 52 of file src/terralib/common/Module.h.

Member Data Documentation

const Module& te::common::Module::sm_module
staticprivate

let's force C++ to make an static initialization.

Definition at line 98 of file src/terralib/common/Module.h.


The documentation for this class was generated from the following files: