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 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.
te::common::Module::~Module ( )
protected

Member Function Documentation

static 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.
static Module & te::common::Singleton< Module >::getInstance ( )
staticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.
static 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.

Friends And Related Function Documentation

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

Definition at line 52 of file 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 Module.h.


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