36   const std::size_t size = 
m_modules.size();
 
   38   for(std::size_t i = 0; i < size; ++i)
 
   67   const std::size_t size = 
m_modules.size();
 
   69   for(std::size_t i = 0; i < size; ++i)
 
  104   const std::size_t size = 
m_modules.size();
 
  106   for(std::size_t i = 0; i < size; ++i)
 
  110     if(module.
m_name == moduleName)
 
  135   const std::size_t size = 
m_modules.size();
 
  137   for(std::size_t i = 0; i < size; ++i)
 
  143   return (std::size_t)(-1);
 
An utility class to control the startup and cleanup of the TerraLib Platform and its resources...
 
std::string m_name
The module name: an internal value used to identify the module in the system. Must be a unique value...
 
const std::string & getModuleName(std::size_t i) const 
It return the i-th module name. 
 
CleanupFptr m_cleanupFptr
The module finalization routine. 
 
std::size_t getModuleIdx(const std::string &moduleName) const 
It returns the module index inside the internal data structure. 
 
std::size_t getNumRegModules() const 
It returns the number of registered modules. 
 
void finalize()
It finalizes the TerraLib Platform. 
 
StartupFptr m_startFptr
The module initialization routine. 
 
std::vector< bool > m_initialized
The list of modules to be initialized when initialize is called. 
 
void remove(const std::string &moduleName)
It removes the module entry identified by the given name. 
 
std::vector< Module > m_modules
This static function is invoked automatically when the application finishes its execution. 
 
void add(const Module &m)
It registers the module in the TerraLib Platform. 
 
void initialize()
It initializes the TerraLib Platform. 
 
TerraLib()
The singleton constructor is not callable outside the class. 
 
This internal structure is used to model the basic information about a TerraLib module.