#include <mlFields.h>

Public Member Functions | |
| IntField () | |
| Default constructor, do not use it. | |
| IntField (const std::string &name) | |
Constructor, creates a field with a name to manage an integer value. | |
| void | setStringValue (const std::string &value) |
Sets value of the field to value. | |
| void | setIntValue (MLint intValue) |
Sets field value to intValue. | |
| std::string | getStringValue () const |
| Returns the value of the field as a string value. | |
| MLint | getIntValue () const |
| Returns the value of the field as an MLint. | |
Deprecated | |
| void | setIntMaxValue (MLint maxValue) |
| MLint | getIntMaxValue () const |
| void | setIntMinValue (MLint minValue) |
| MLint | getIntMinValue () const |
Deprecated | |
| IntField (const std::string &name, MLintPtr valuePtr) | |
Protected Member Functions | |
| virtual void | setValueFromField (const Field &field) |
| Reimplementation from Field which copies the field value more efficiently. | |
Definition at line 149 of file mlFields.h.
| ml::IntField::IntField | ( | ) |
Default constructor, do not use it.
| ml::IntField::IntField | ( | const std::string & | name | ) |
Constructor, creates a field with a name to manage an integer value.
Default value is 0.
| ml::IntField::IntField | ( | const std::string & | name, | |
| MLintPtr | valuePtr | |||
| ) |
| MLint ml::IntField::getIntMaxValue | ( | ) | const |
| MLint ml::IntField::getIntMinValue | ( | ) | const |
| MLint ml::IntField::getIntValue | ( | ) | const |
Returns the value of the field as an MLint.
Referenced by ml::ListContainerTemplate< T >::updatePropertyFields().
| std::string ml::IntField::getStringValue | ( | ) | const [virtual] |
Returns the value of the field as a string value.
setStringValue must be able to reinterpret this returned string correctly.
Implements ml::Field.
| void ml::IntField::setIntMaxValue | ( | MLint | maxValue | ) |
| void ml::IntField::setIntMinValue | ( | MLint | minValue | ) |
| void ml::IntField::setIntValue | ( | MLint | intValue | ) |
Sets field value to intValue.
Referenced by ml::ListContainerTemplate< T >::modifyItem(), and ml::ListContainerTemplate< T >::updatePropertyFields().
| void ml::IntField::setStringValue | ( | const std::string & | value | ) | [virtual] |
| virtual void ml::IntField::setValueFromField | ( | const Field & | field | ) | [protected, virtual] |
1.5.8