te::rp::Module Class Reference

This singleton defines the TerraLib Raster Processing module entry. More...

#include <Module.h>

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

Static Public Member Functions

static ModulegetInstance ()
 It returns a reference to the singleton instance. More...
 
static const std::string getLastLogStr ()
 Returns the last log string generated by this module. More...
 
static void setLastLogStr (const std::string &errorStr)
 Set the last log string generated by this module. More...
 

Protected Member Functions

 Module ()
 The singleton constructor is not callable outside the class. More...
 
 ~Module ()
 

Static Private Member Functions

static void finalize ()
 This is the cleanup function for the TerraLib DataType module. More...
 
static void initialize ()
 This is the startup function for the TerraLib Raster Processing module. More...
 

Static Private Attributes

static std::string m_lastLogString
 The last error string generated by this module. More...
 
static std::mutex m_mutex
 Static mutex. More...
 
static const Modulesm_module
 Just to make a static initialization. More...
 

Friends

class te::common::Singleton< Module >
 

Detailed Description

This singleton defines the TerraLib Raster Processing module entry.

Definition at line 45 of file src/terralib/rp/Module.h.

Constructor & Destructor Documentation

te::rp::Module::Module ( )
protected

The singleton constructor is not callable outside the class.

Definition at line 37 of file src/terralib/rp/Module.cpp.

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

te::rp::Module::~Module ( )
protected

Member Function Documentation

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

This is the cleanup function for the TerraLib DataType module.

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

Definition at line 58 of file src/terralib/rp/Module.cpp.

References 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::rp::Module::initialize ( )
staticprivate

This is the startup function for the TerraLib Raster Processing module.

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

Definition at line 53 of file src/terralib/rp/Module.cpp.

References TE_LOG_TRACE, and TE_TR.

Referenced by Module().

void te::rp::Module::setLastLogStr ( const std::string &  errorStr)
static

Set the last log string generated by this module.

Note
This is a thread-safe method.

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

References m_lastLogString, and m_mutex.

Friends And Related Function Documentation

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

Definition at line 47 of file src/terralib/rp/Module.h.

Member Data Documentation

std::string te::rp::Module::m_lastLogString
staticprivate

The last error string generated by this module.

Definition at line 93 of file src/terralib/rp/Module.h.

Referenced by getLastLogStr(), and setLastLogStr().

std::mutex te::rp::Module::m_mutex
staticprivate

Static mutex.

Definition at line 89 of file src/terralib/rp/Module.h.

Referenced by getLastLogStr(), and setLastLogStr().

const Module& te::rp::Module::sm_module
staticprivate

Just to make a static initialization.

Definition at line 91 of file src/terralib/rp/Module.h.


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