This class represents a library of symbols.
More...
#include <SymbolLibrary.h>
This class represents a library of symbols.
- See also
- Symbol, SymbolLibaryManager
Definition at line 52 of file SymbolLibrary.h.
te::qt::widgets::SymbolLibrary::SymbolLibrary |
( |
const std::string & |
name | ) |
|
te::qt::widgets::SymbolLibrary::~SymbolLibrary |
( |
| ) |
|
void te::qt::widgets::SymbolLibrary::clear |
( |
| ) |
|
It removes all symbols from this library.
Symbol* te::qt::widgets::SymbolLibrary::findById |
( |
const std::string & |
id | ) |
const |
It returns the symbol identified by a given id or NULL if none is found.
- Parameters
-
name | The id of the symbol we are looking for. |
- Returns
- A pointer to a symbol or NULL if none is found.
std::pair<std::map<std::string, Symbol*>::const_iterator, std::map<std::string, Symbol*>::const_iterator> te::qt::widgets::SymbolLibrary::getIterator |
( |
| ) |
const |
It returns a pair of iterators over the symbols of this library.
- Returns
- A pair of iterators over the symbols of this library where pair.first will be the beginning and pair.second will be the end iterator.
const std::string& te::qt::widgets::SymbolLibrary::getName |
( |
| ) |
const |
void te::qt::widgets::SymbolLibrary::insert |
( |
Symbol * |
symbol | ) |
|
It inserts a new symbol to this library.
- Parameters
-
symbol | The new symbol that will be added to this library. |
void te::qt::widgets::SymbolLibrary::remove |
( |
Symbol * |
symbol | ) |
|
It removes the symbol from this library.
- Parameters
-
symbol | The symbol to be removed. |
- Exceptions
-
Exception | If the symbol doesn't exist it will raise an exception. |
std::string te::qt::widgets::SymbolLibrary::m_name |
|
private |
std::map<std::string, Symbol*> te::qt::widgets::SymbolLibrary::m_symbolMap |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/widgets/se/SymbolLibrary.h