All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::EnumTemplateType Class Reference

Class to represent a template type enumeration. Ex.: json, etc. More...

#include <EnumTemplateType.h>

Inheritance diagram for te::layout::EnumTemplateType:
te::layout::AbstractEnum

Public Member Functions

 EnumTemplateType ()
 Constructor. More...
 
virtual EnumTypegetEnum (int enumId) const
 Searching for a value of the enumeration by id. More...
 
virtual EnumTypegetEnum (std::string name) const
 Searching for an enumeration value by name. More...
 
virtual EnumTypegetJsonType () const
 Returns value that represents json type belonging to enumeration. More...
 
virtual EnumTypegetNoneType () 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 EnumTypesearchLabel (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...
 
EnumTypem_jsonType
 value that represents json type belonging to enumeration More...
 
EnumTypem_noneType
 value that represents none type belonging to enumeration More...
 

Detailed Description

Class to represent a template type enumeration. Ex.: json, etc.

See also
te::layout::AbstractEnum

Definition at line 48 of file EnumTemplateType.h.

Constructor & Destructor Documentation

te::layout::EnumTemplateType::EnumTemplateType ( )

Constructor.

Definition at line 31 of file EnumTemplateType.cpp.

References init().

te::layout::EnumTemplateType::~EnumTemplateType ( )
virtual

Destructor.

Definition at line 38 of file EnumTemplateType.cpp.

Member Function Documentation

te::layout::EnumType * te::layout::AbstractEnum::getEnum ( int  enumId) const
virtualinherited

Searching for a value of the enumeration by id.

Parameters
enumIdid
Returns
value found in the enumeration or null

Definition at line 42 of file AbstractEnum.cpp.

Referenced by te::layout::JSON::retrieve(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridMapModel::updateProperties().

te::layout::EnumType * te::layout::AbstractEnum::getEnum ( std::string  name) const
virtualinherited

Searching for an enumeration value by name.

Parameters
name
Returns
value found in the enumeration or null

Definition at line 58 of file AbstractEnum.cpp.

te::layout::EnumType * te::layout::EnumTemplateType::getJsonType ( ) const
virtual

Returns value that represents json type belonging to enumeration.

Returns
enum value

Definition at line 66 of file EnumTemplateType.cpp.

Referenced by te::layout::TemplateFactory::make(), and te::layout::View::outsideAreaChangeContext().

te::layout::EnumType * te::layout::EnumTemplateType::getNoneType ( ) const
virtual

Returns value that represents none type belonging to enumeration.

Returns
enum value

Definition at line 61 of file EnumTemplateType.cpp.

void te::layout::EnumTemplateType::init ( )
protectedvirtual

Reimplemented from AbstractEnum.

Implements te::layout::AbstractEnum.

Definition at line 52 of file EnumTemplateType.cpp.

Referenced by EnumTemplateType().

int te::layout::AbstractEnum::maxId ( )
virtualinherited

Searching for a max value of the id.

Returns
-1 if no found, otherwise the id

Definition at line 90 of file AbstractEnum.cpp.

int te::layout::AbstractEnum::minId ( )
virtualinherited

Searching for a min value of the id.

Returns
-1 if no found, otherwise the id

Definition at line 108 of file AbstractEnum.cpp.

te::layout::EnumType * te::layout::AbstractEnum::searchLabel ( std::string  label) const
virtualinherited

Searching for an enumeration value by name.

Parameters
name
Returns
value found in the enumeration or null

Definition at line 74 of file AbstractEnum.cpp.

int te::layout::AbstractEnum::size ( )
virtualinherited

Definition at line 128 of file AbstractEnum.cpp.

Member Data Documentation

std::vector<EnumType*> te::layout::AbstractEnum::m_enums
protectedinherited

list of enumeration values

Definition at line 112 of file AbstractEnum.h.

EnumType* te::layout::EnumTemplateType::m_jsonType
protected

value that represents json type belonging to enumeration

Definition at line 86 of file EnumTemplateType.h.

EnumType* te::layout::EnumTemplateType::m_noneType
protected

value that represents none type belonging to enumeration

Definition at line 85 of file EnumTemplateType.h.


The documentation for this class was generated from the following files: