27 #include "../../../common/Exception.h" 
   28 #include "../../../common/STLUtils.h" 
   29 #include "../../../common/Translator.h" 
   39   assert(!name.empty());
 
   54   m_symbolMap[id] = symbol;
 
   62   std::map<std::string, Symbol*>::iterator it = m_symbolMap.find(
id);
 
   64   if(it == m_symbolMap.end())
 
   67   m_symbolMap.erase(it);
 
   72   std::map<std::string, Symbol*>::const_iterator it = m_symbolMap.find(
id);
 
   74   if(it != m_symbolMap.end())
 
   80 std::pair<std::map<std::string, te::qt::widgets::Symbol*>::const_iterator,
 
   83   return std::pair<std::map<std::string, Symbol*>::const_iterator,
 
   84                    std::map<std::string, Symbol*>::const_iterator>(m_symbolMap.begin(), m_symbolMap.end());
 
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
 
SymbolLibrary(const std::string &name)
Constructor. 
 
std::pair< std::map< std::string, Symbol * >::const_iterator, std::map< std::string, Symbol * >::const_iterator > getIterator() const 
It returns a pair of iterators over the symbols of this library. 
 
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...
 
This class represents a symbol. TODO: More description! 
 
~SymbolLibrary()
Destructor. 
 
Symbol * findById(const std::string &id) const 
It returns the symbol identified by a given id or NULL if none is found. 
 
const SymbolInfo & getInfo() const 
It return the information associated to the symbol. 
 
#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 ...
 
This class represents a symbol. 
 
void clear()
It removes all symbols from this library. 
 
const std::string & getName() const 
 
void insert(Symbol *symbol)
It inserts a new symbol to this library. 
 
This class represents a library of symbols. 
 
void remove(Symbol *symbol)
It removes the symbol from this library.