The SymbolLibraryManager is a singleton that can be used to manage all loaded symbol libraries in TerraLib. More...
#include <SymbolLibraryManager.h>
  
 Public Member Functions | |
| ~SymbolLibraryManager () | |
| Destructor.  More... | |
SymbolLibraryManager Accessor Method  | |
Method used to access the data stored on this manager.  | |
| void | insert (SymbolLibrary *library) | 
| It inserts a new symbol library that will be managed by SymbolLibraryManager.  More... | |
| void | remove (SymbolLibrary *library) | 
| It removes the symbol library from the manager.  More... | |
| SymbolLibrary * | findByName (const std::string &name) const | 
| It returns the symbol library identified by a given name or NULL if none is found.  More... | |
| std::pair< std::map < std::string, SymbolLibrary * > ::const_iterator, std::map < std::string, SymbolLibrary * > ::const_iterator >  | getIterator () const | 
| It returns a pair of iterators over the symbol libraries of this manager.  More... | |
| void | clear () | 
| It unloads all symbol libraries managed by SymbolLibraryManager.  More... | |
Static Public Member Functions | |
| static SymbolLibraryManager & | getInstance () | 
| It returns a reference to the singleton instance.  More... | |
Protected Member Functions | |
| SymbolLibraryManager () | |
| It initializes the Singleton.  More... | |
Private Attributes | |
| std::map< std::string,  SymbolLibrary * >  | m_symbolLibraryMap | 
| The set of symbol libraries.  More... | |
Friends | |
| class | te::common::Singleton< SymbolLibraryManager > | 
The SymbolLibraryManager is a singleton that can be used to manage all loaded symbol libraries in TerraLib.
Definition at line 53 of file SymbolLibraryManager.h.
| te::qt::widgets::SymbolLibraryManager::~SymbolLibraryManager | ( | ) | 
Destructor.
Definition at line 85 of file SymbolLibraryManager.cpp.
      
  | 
  protected | 
It initializes the Singleton.
Definition at line 89 of file SymbolLibraryManager.cpp.
| void te::qt::widgets::SymbolLibraryManager::clear | ( | ) | 
It unloads all symbol libraries managed by SymbolLibraryManager.
Definition at line 79 of file SymbolLibraryManager.cpp.
References te::common::FreeContents().
| te::qt::widgets::SymbolLibrary * te::qt::widgets::SymbolLibraryManager::findByName | ( | const std::string & | name | ) | const | 
It returns the symbol library identified by a given name or NULL if none is found.
| name | The name of the symbol library we are looking for. | 
Definition at line 62 of file SymbolLibraryManager.cpp.
Referenced by te::qt::widgets::SymbolSelectorDialog::getSymbolFromItem(), and insert().
      
  | 
  staticinherited | 
It returns a reference to the singleton instance.
Referenced by te::qt::widgets::SymbolSelectorDialog::getSymbolFromItem(), te::qt::widgets::SymbolSelectorDialog::initialize(), and te::serialize::ReadSymbolLibrary().
| std::pair< std::map< std::string, te::qt::widgets::SymbolLibrary * >::const_iterator, std::map< std::string, te::qt::widgets::SymbolLibrary * >::const_iterator > te::qt::widgets::SymbolLibraryManager::getIterator | ( | ) | const | 
It returns a pair of iterators over the symbol libraries of this manager.
Definition at line 73 of file SymbolLibraryManager.cpp.
Referenced by te::qt::widgets::SymbolSelectorDialog::initialize().
| void te::qt::widgets::SymbolLibraryManager::insert | ( | SymbolLibrary * | library | ) | 
It inserts a new symbol library that will be managed by SymbolLibraryManager.
| library | The new symbol library to be managed by this manager. | 
Definition at line 36 of file SymbolLibraryManager.cpp.
References findByName(), te::qt::widgets::SymbolLibrary::getName(), m_symbolLibraryMap, and TR_QT_WIDGETS.
| void te::qt::widgets::SymbolLibraryManager::remove | ( | SymbolLibrary * | library | ) | 
It removes the symbol library from the manager.
| library | The symbol library to be removed. | 
| Exception | If the symbol library doesn't exist it will raise an exception. | 
Definition at line 47 of file SymbolLibraryManager.cpp.
References te::qt::widgets::SymbolLibrary::getName(), and TR_QT_WIDGETS.
      
  | 
  friend | 
Definition at line 55 of file SymbolLibraryManager.h.
      
  | 
  private | 
The set of symbol libraries.
Definition at line 113 of file SymbolLibraryManager.h.
Referenced by insert().