This class represents a library of symbols. More...
#include <SymbolLibrary.h>
Public Member Functions | |
| void | clear () | 
| It removes all symbols from this library.  More... | |
| Symbol * | findById (const std::string &id) const | 
| It returns the symbol identified by a given id or NULL if none is found.  More... | |
| 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.  More... | |
| const std::string & | getName () const | 
| void | insert (Symbol *symbol) | 
| It inserts a new symbol to this library.  More... | |
| void | remove (Symbol *symbol) | 
| It removes the symbol from this library.  More... | |
| SymbolLibrary (const std::string &name) | |
| Constructor.  More... | |
| ~SymbolLibrary () | |
| Destructor.  More... | |
Private Attributes | |
| std::string | m_name | 
| The name of the symbol library.  More... | |
| std::map< std::string, Symbol * > | m_symbolMap | 
| The set of symbols.  More... | |
This class represents a library of symbols.
Definition at line 52 of file SymbolLibrary.h.
| te::qt::widgets::SymbolLibrary::SymbolLibrary | ( | const std::string & | name | ) | 
Constructor.
Definition at line 36 of file SymbolLibrary.cpp.
| te::qt::widgets::SymbolLibrary::~SymbolLibrary | ( | ) | 
Destructor.
Definition at line 42 of file SymbolLibrary.cpp.
| void te::qt::widgets::SymbolLibrary::clear | ( | ) | 
It removes all symbols from this library.
Definition at line 92 of file SymbolLibrary.cpp.
References te::common::FreeContents().
| te::qt::widgets::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.
| name | The id of the symbol we are looking for. | 
Definition at line 70 of file SymbolLibrary.cpp.
| std::pair< std::map< std::string, te::qt::widgets::Symbol * >::const_iterator, std::map< std::string, te::qt::widgets::Symbol * >::const_iterator > te::qt::widgets::SymbolLibrary::getIterator | ( | ) | const | 
It returns a pair of iterators over the symbols of this library.
Definition at line 81 of file SymbolLibrary.cpp.
| const std::string & te::qt::widgets::SymbolLibrary::getName | ( | ) | const | 
Definition at line 87 of file SymbolLibrary.cpp.
Referenced by te::qt::widgets::SymbolLibraryManager::insert(), and te::qt::widgets::SymbolLibraryManager::remove().
| void te::qt::widgets::SymbolLibrary::insert | ( | Symbol * | symbol | ) | 
It inserts a new symbol to this library.
| symbol | The new symbol that will be added to this library. | 
Definition at line 46 of file SymbolLibrary.cpp.
References te::qt::widgets::Symbol::getInfo(), te::qt::widgets::SymbolInfo::m_id, and TE_TR.
| void te::qt::widgets::SymbolLibrary::remove | ( | Symbol * | symbol | ) | 
It removes the symbol from this library.
| symbol | The symbol to be removed. | 
| Exception | If the symbol doesn't exist it will raise an exception. | 
Definition at line 57 of file SymbolLibrary.cpp.
References te::qt::widgets::Symbol::getInfo(), te::qt::widgets::SymbolInfo::m_id, and TE_TR.
      
  | 
  private | 
The name of the symbol library.
Definition at line 103 of file SymbolLibrary.h.
      
  | 
  private | 
The set of symbols.
Definition at line 104 of file SymbolLibrary.h.