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

Class to represent a grid style type enumeration. Ex.: continuous, cross, etc. More...

#include <EnumGridStyleType.h>

Inheritance diagram for te::layout::EnumGridStyleType:
te::layout::AbstractEnum

Public Member Functions

 EnumGridStyleType ()
 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 EnumTypegetStyleContinuous () const
 Returns value that represents continuous style type belonging to enumeration. More...
 
virtual EnumTypegetStyleCross () const
 Returns value that represents cross style type belonging to enumeration. More...
 
virtual EnumTypegetStyleNone () const
 Returns value that represents none style 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 ~EnumGridStyleType ()
 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_styleContinuous
 value that represents continuous style type belonging to enumeration More...
 
EnumTypem_styleCross
 value that represents cross style type belonging to enumeration More...
 
EnumTypem_styleNone
 value that represents none style type belonging to enumeration More...
 

Detailed Description

Class to represent a grid style type enumeration. Ex.: continuous, cross, etc.

See also
te::layout::AbstractEnum

Definition at line 48 of file EnumGridStyleType.h.

Constructor & Destructor Documentation

te::layout::EnumGridStyleType::EnumGridStyleType ( )

Constructor.

Definition at line 31 of file EnumGridStyleType.cpp.

References init().

te::layout::EnumGridStyleType::~EnumGridStyleType ( )
virtual

Destructor.

Definition at line 39 of file EnumGridStyleType.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::EnumGridStyleType::getStyleContinuous ( ) const
virtual

Returns value that represents continuous style type belonging to enumeration.

Returns
enum value

Definition at line 75 of file EnumGridStyleType.cpp.

te::layout::EnumType * te::layout::EnumGridStyleType::getStyleCross ( ) const
virtual

Returns value that represents cross style type belonging to enumeration.

Returns
enum value

Definition at line 80 of file EnumGridStyleType.cpp.

te::layout::EnumType * te::layout::EnumGridStyleType::getStyleNone ( ) const
virtual

Returns value that represents none style type belonging to enumeration.

Returns
enum value

Definition at line 70 of file EnumGridStyleType.cpp.

Referenced by te::layout::GridMapModel::init().

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

Reimplemented from AbstractEnum.

Implements te::layout::AbstractEnum.

Definition at line 58 of file EnumGridStyleType.cpp.

Referenced by EnumGridStyleType().

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::EnumGridStyleType::m_styleContinuous
protected

value that represents continuous style type belonging to enumeration

Definition at line 93 of file EnumGridStyleType.h.

EnumType* te::layout::EnumGridStyleType::m_styleCross
protected

value that represents cross style type belonging to enumeration

Definition at line 94 of file EnumGridStyleType.h.

EnumType* te::layout::EnumGridStyleType::m_styleNone
protected

value that represents none style type belonging to enumeration

Definition at line 92 of file EnumGridStyleType.h.


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