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 54 of file SymbolLibrary.h.
◆ SymbolLibrary()
te::qt::widgets::SymbolLibrary::SymbolLibrary |
( |
const std::string & |
name | ) |
|
◆ ~SymbolLibrary()
virtual te::qt::widgets::SymbolLibrary::~SymbolLibrary |
( |
| ) |
|
|
virtual |
◆ addGroup()
void te::qt::widgets::SymbolLibrary::addGroup |
( |
SymbolNode * |
group, |
|
|
const std::string & |
groupParentId = "" |
|
) |
| |
It inserts a new symbol to this library.
- Parameters
-
symbol | The new symbol that will be added to this library. |
◆ addSymbol()
void te::qt::widgets::SymbolLibrary::addSymbol |
( |
Symbol * |
symbol, |
|
|
const std::string & |
groupParentId = "" |
|
) |
| |
It inserts a new symbol to this library.
- Parameters
-
symbol | The new symbol that will be added to this library. |
◆ eraseGroup()
void te::qt::widgets::SymbolLibrary::eraseGroup |
( |
SymbolNode * |
group | ) |
|
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. |
◆ eraseSymbol()
void te::qt::widgets::SymbolLibrary::eraseSymbol |
( |
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. |
◆ findGroupById()
SymbolNode * te::qt::widgets::SymbolLibrary::findGroupById |
( |
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.
◆ findParentBySymbolId()
SymbolNode * te::qt::widgets::SymbolLibrary::findParentBySymbolId |
( |
const std::string & |
id | ) |
|
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.
◆ findSymbolById()
Symbol * te::qt::widgets::SymbolLibrary::findSymbolById |
( |
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.
◆ getName()
const std::string & te::qt::widgets::SymbolLibrary::getName |
( |
| ) |
const |
◆ getRoot()
SymbolNode * te::qt::widgets::SymbolLibrary::getRoot |
( |
| ) |
const |
◆ isEmpty()
bool te::qt::widgets::SymbolLibrary::isEmpty |
( |
| ) |
|
◆ removeGroup()
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. |
◆ removeSymbol()
Symbol * te::qt::widgets::SymbolLibrary::removeSymbol |
( |
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. |
◆ swapGroup()
bool te::qt::widgets::SymbolLibrary::swapGroup |
( |
const std::string & |
id, |
|
|
const std::string & |
toParentId |
|
) |
| |
◆ swapSymbol()
bool te::qt::widgets::SymbolLibrary::swapSymbol |
( |
const std::string & |
id, |
|
|
const std::string & |
toParentId |
|
) |
| |
◆ version()
std::string te::qt::widgets::SymbolLibrary::version |
( |
| ) |
|
◆ m_name
std::string te::qt::widgets::SymbolLibrary::m_name |
|
private |
◆ m_root
std::unique_ptr<SymbolNode> te::qt::widgets::SymbolLibrary::m_root |
|
private |
◆ m_version
std::string te::qt::widgets::SymbolLibrary::m_version |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/qt/widgets/se/SymbolLibrary.h