VCF::Enum Class Reference
The Enum class is used to wrap C++ enum types, allowing the user to iterate forward and backward through the enum type. More...
#include <vcf/FoundationKit/Enum.h>
Inheritance diagram for VCF::Enum:

Public Member Functions | |
| Enum () | |
| virtual | ~Enum () |
| virtual int | next ()=0 |
| moves to the next value. | |
| virtual int | end ()=0 |
| Moves to the last value of the enum. | |
| virtual int | get ()=0 |
| gets the current value of the enum | |
| virtual int | begin ()=0 |
| Moves to the first value of the enum. | |
| virtual void | set (const int &intVal)=0 |
| Sets the current value of the enum. | |
| operator int () | |
| virtual void | setFromString (const String &textVal) |
| sets the enum val from a string. | |
Detailed Description
The Enum class is used to wrap C++ enum types, allowing the user to iterate forward and backward through the enum type.This works best with enums that have members whose value changes in intervals of 1.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
Moves to the first value of the enum.
|
|
|
Moves to the last value of the enum.
|
|
|
gets the current value of the enum
|
|
|
moves to the next value. When the end of the enum is reached it cycles back to the begining
|
|
|
|
|
|
Sets the current value of the enum.
|
|
|
sets the enum val from a string. The default behaviour is to assume the string represents an integer (i.e. "1" or "3") if this is not the case then the enum wil be set to 0 value Reimplemented from VCF::Object. |
The documentation for this class was generated from the following file:
- vcf/FoundationKit/Enum.h
