46 for(std::vector<EnumType*>::const_iterator it = m_enums.begin(); it != m_enums.end(); it++)
48 if((*it)->getId() == enumId)
62 for(std::vector<EnumType*>::const_iterator it = m_enums.begin(); it != m_enums.end(); it++)
64 if((*it)->getName().compare(name) == 0)
78 for(std::vector<EnumType*>::const_iterator it = m_enums.begin(); it != m_enums.end(); it++)
80 if((*it)->getLabel().compare(label) == 0)
97 for(std::vector<EnumType*>::const_iterator it = m_enums.begin(); it != m_enums.end(); it++)
99 if((*it)->getId() > max)
101 max = (*it)->getId();
115 min = m_enums[0]->getId();
117 for(std::vector<EnumType*>::const_iterator it = m_enums.begin(); it != m_enums.end(); it++)
119 if((*it)->getId() < min)
121 min = (*it)->getId();
130 return m_enums.size();
virtual EnumType * getEnum(int enumId) const
Searching for a value of the enumeration by id.
virtual ~AbstractEnum()
Destructor.
virtual int maxId()
Searching for a max value of the id.
virtual int minId()
Searching for a min value of the id.
virtual EnumType * searchLabel(std::string label) const
Searching for an enumeration value by name.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
AbstractEnum()
Constructor.
Abstract class to represent an enumeration.