27 #include "../../../common/Exception.h"
28 #include "../../../common/STLUtils.h"
29 #include "../../../common/Translator.h"
40 std::string name = library->
getName();
51 std::string name = library->
getName();
52 std::map<std::string, SymbolLibrary*>::iterator it = m_symbolLibraryMap.find(name);
54 if(it == m_symbolLibraryMap.end())
57 m_symbolLibraryMap.erase(it);
64 std::map<std::string, SymbolLibrary*>::const_iterator it = m_symbolLibraryMap.find(name);
66 if(it != m_symbolLibraryMap.end())
72 std::pair<std::map<std::string, te::qt::widgets::SymbolLibrary*>::const_iterator,
75 return std::pair<std::map<std::string, SymbolLibrary*>::const_iterator,
76 std::map<std::string, SymbolLibrary*>::const_iterator>(m_symbolLibraryMap.begin(), m_symbolLibraryMap.end());
82 m_symbolLibraryMap.clear();
void insert(SymbolLibrary *library)
It inserts a new symbol library that will be managed by SymbolLibraryManager.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
SymbolLibraryManager()
It initializes the Singleton.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
~SymbolLibraryManager()
Destructor.
The SymbolLibraryManager is a singleton that can be used to manage all loaded symbol libraries in Ter...
void remove(SymbolLibrary *library)
It removes the symbol library from the manager.
void clear()
It unloads all symbol libraries managed by SymbolLibraryManager.
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.
This class represents a library of symbols.
#define TR_QT_WIDGETS(message)
It marks a string in order to get translated. This is a special mark used in the TerraLib Qt Widgets ...
std::map< std::string, SymbolLibrary * > m_symbolLibraryMap
The set of symbol libraries.
const std::string & getName() const
SymbolLibrary * findByName(const std::string &name) const
It returns the symbol library identified by a given name or NULL if none is found.
This class represents a library of symbols.