Class to represent a template type enumeration. Ex.: json, etc. More...
#include <EnumTemplateType.h>
Public Member Functions | |
EnumTemplateType () | |
Constructor. More... | |
virtual EnumType * | getEnum (int enumId) const |
Searching for a value of the enumeration by id. More... | |
virtual EnumType * | getEnum (std::string name) const |
Searching for an enumeration value by name. More... | |
virtual EnumType * | getJsonType () const |
Returns value that represents json type belonging to enumeration. More... | |
virtual EnumType * | getNoneType () const |
Returns value that represents none type belonging to enumeration. More... | |
virtual int | maxId () |
Searching for a max value of the id. More... | |
virtual int | minId () |
Searching for a min value of the id. More... | |
virtual EnumType * | searchLabel (std::string label) const |
Searching for an enumeration value by name. More... | |
virtual int | size () |
virtual | ~EnumTemplateType () |
Destructor. More... | |
Protected Member Functions | |
virtual void | init () |
Reimplemented from AbstractEnum. More... | |
Protected Attributes | |
std::vector< EnumType * > | m_enums |
list of enumeration values More... | |
EnumType * | m_jsonType |
value that represents json type belonging to enumeration More... | |
EnumType * | m_noneType |
value that represents none type belonging to enumeration More... | |
Class to represent a template type enumeration. Ex.: json, etc.
Definition at line 48 of file EnumTemplateType.h.
te::layout::EnumTemplateType::EnumTemplateType | ( | ) |
|
virtual |
Destructor.
Definition at line 38 of file EnumTemplateType.cpp.
|
virtualinherited |
Searching for a value of the enumeration by id.
enumId | id |
Definition at line 42 of file AbstractEnum.cpp.
Referenced by te::layout::JSON::retrieve(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridMapModel::updateProperties().
|
virtualinherited |
Searching for an enumeration value by name.
name |
Definition at line 58 of file AbstractEnum.cpp.
|
virtual |
Returns value that represents json type belonging to enumeration.
Definition at line 66 of file EnumTemplateType.cpp.
Referenced by te::layout::TemplateFactory::make(), and te::layout::View::outsideAreaChangeContext().
|
virtual |
Returns value that represents none type belonging to enumeration.
Definition at line 61 of file EnumTemplateType.cpp.
|
protectedvirtual |
Reimplemented from AbstractEnum.
Implements te::layout::AbstractEnum.
Definition at line 52 of file EnumTemplateType.cpp.
Referenced by EnumTemplateType().
|
virtualinherited |
Searching for a max value of the id.
Definition at line 90 of file AbstractEnum.cpp.
|
virtualinherited |
Searching for a min value of the id.
Definition at line 108 of file AbstractEnum.cpp.
|
virtualinherited |
Searching for an enumeration value by name.
name |
Definition at line 74 of file AbstractEnum.cpp.
|
virtualinherited |
Definition at line 128 of file AbstractEnum.cpp.
|
protectedinherited |
list of enumeration values
Definition at line 112 of file AbstractEnum.h.
|
protected |
value that represents json type belonging to enumeration
Definition at line 86 of file EnumTemplateType.h.
|
protected |
value that represents none type belonging to enumeration
Definition at line 85 of file EnumTemplateType.h.