Go to the documentation of this file.
26 #ifndef __TERRALIB_COLOR_INTERNAL_COLORSCHEMECATALOGMANAGER_H
27 #define __TERRALIB_COLOR_INTERNAL_COLORSCHEMECATALOGMANAGER_H
30 #include "../common/Singleton.h"
134 std::pair<std::vector<ColorSchemeCatalog*>::const_iterator,
135 std::vector<ColorSchemeCatalog*>::const_iterator>
getIterator()
const;
212 #endif // __TERRALIB_COLOR_INTERNAL_COLORSCHEMECATALOGMANAGER_H
void insert(ColorSchemeCatalog *c)
It inserts a new catalog that will be managed by ColorSchemeCatalogManager.
ColorSchemeCatalog * findByName(const std::string &name) const
It returns the catalog identified by a given name or NULL if none is found.
ColorSchemeCatalogManager(const ColorSchemeCatalogManager &rhs)
Copy constructor not allowed.
std::vector< ColorSchemeCatalog * > m_catalogs
This is the list of all system's loaded catalogs.
ColorSchemeCatalogManager()
It initializes the Singleton.
const std::vector< ColorSchemeCatalog * > & getCatalogs() const
It returns the list of catalogs available in the system.
A catalog for color schemes.
The ColorSchemeCatalogManager is a singleton that can be used to manage all loaded color scheme catal...
bool isEmpty() const
It returns true if the manager contains at least one catalog. If no catalog exists,...
~ColorSchemeCatalogManager()
Destructor.
Template support for singleton pattern.
void erase(ColorSchemeCatalog *c)
It removes the catalog from the manager and clears it resources.
#define TECOLOREXPORT
You can use this macro in order to export/import classes and functions from this module.
std::map< std::string, ColorSchemeCatalog * > m_catalogIdxByName
An index from catalog's name to catalog's instance (note: we can not have duplicated names).
ColorSchemeCatalogManager & operator=(const ColorSchemeCatalogManager &rhs)
Assignment operator not allowed.
Proxy configuration file for TerraView (see terraview_config.h).
void clear()
It unloads all catalogs managed by ColorSchemeCatalogManager.
std::pair< std::vector< ColorSchemeCatalog * >::const_iterator, std::vector< ColorSchemeCatalog * >::const_iterator > getIterator() const
It returns a pair of iterators over the catalogs of this manager.
void disconnect(ColorSchemeCatalog *c)
It removes the internal reference to the catalog.