te::se::SymbologyManager Class Reference

The SymbologyManager is a singleton that can be used to manage all loaded symbols in TerraLib. More...

#include <SymbologyManager.h>

Inheritance diagram for te::se::SymbologyManager:
te::common::Singleton< SymbologyManager >

Public Member Functions

ColorManager Accessor Method

Method used to access the data stored on this manager.

void clear ()
 It inserts a new catalog that will be managed by ColorManager. More...
 

Static Public Member Functions

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

Private Attributes

std::map< std::string, Symbolizer * > m_catalogIdxByName
 An index from catalog's name to catalog's instance (note: we can not have duplicated names). More...
 

Friends

class te::common::Singleton< SymbologyManager >
 

Initializer Methods

Methods related to instantiation and destruction.

 ~SymbologyManager ()
 Destructor. More...
 
 SymbologyManager ()
 It initializes the Singleton. More...
 

Detailed Description

The SymbologyManager is a singleton that can be used to manage all loaded symbols in TerraLib.

See also
Singleton

Definition at line 55 of file SymbologyManager.h.

Constructor & Destructor Documentation

te::se::SymbologyManager::~SymbologyManager ( )

Destructor.

te::se::SymbologyManager::SymbologyManager ( )
protected

It initializes the Singleton.

Member Function Documentation

void te::se::SymbologyManager::clear ( )

It inserts a new catalog that will be managed by ColorManager.

Parameters
cThe new catalog to be managed by this manager.
Exceptions
ExceptionIf the catalog already exists it will raise an exception.
Note
Don't free the resources used by the catalog, the manager will take the ownership of it.

It removes the catalog from the system. It will not delete it from disk.

Parameters
cThe catalog to be removed.
Exceptions
ExceptionIf the catalog doesn't exist it will raise an exception.
Note
The memory pointed by c will be deallocated. Don't reference it anymore.

It returns the catalog identified by a given name or NULL if none is found.

Parameters
nameThe name of the catalog we are looking for.
Returns
A pointer to a catalog (don't free the pointer) or NULL if none is found.

It returns a pair of iterators over the catalogs of this manager.

Returns
A pair of iterators over the catalogs of this manager where pair.first will be the beginning and pair.second will be the end iterator.

It unloads all symbols managed by SymbologyManager.

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

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.

Friends And Related Function Documentation

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

Definition at line 57 of file SymbologyManager.h.

Member Data Documentation

std::map<std::string, Symbolizer*> te::se::SymbologyManager::m_catalogIdxByName
private

An index from catalog's name to catalog's instance (note: we can not have duplicated names).

Definition at line 132 of file SymbologyManager.h.


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