#include <OptionEntry.h>

Public Member Functions | |
| OptionEntryFloat (std::list< OptionEntry * > &group, const char *name, const char *description, unsigned int data, float defaultValue, bool truncate=false) | |
| virtual | ~OptionEntryFloat () |
| virtual EntryType | getEntryType () |
| virtual const char * | getValueAsString () |
| virtual const char * | getDefaultValueAsString () |
| virtual bool | setValueFromString (const std::string &string) |
| virtual float | getValue () |
| virtual bool | setValue (float value) |
| virtual bool | addToArgParser (ARGParser &parser) |
| virtual bool | isDefaultValue () |
| operator float () | |
Protected Attributes | |
| bool | truncate_ |
| float | defaultValue_ |
| float | value_ |
Definition at line 294 of file OptionEntry.h.
| OptionEntryFloat::OptionEntryFloat | ( | std::list< OptionEntry * > & | group, | |
| const char * | name, | |||
| const char * | description, | |||
| unsigned int | data, | |||
| float | defaultValue, | |||
| bool | truncate = false | |||
| ) |
Definition at line 635 of file OptionEntry.cpp.
| OptionEntryFloat::~OptionEntryFloat | ( | ) | [virtual] |
Definition at line 647 of file OptionEntry.cpp.
| virtual EntryType OptionEntryFloat::getEntryType | ( | ) | [inline, virtual] |
Implements OptionEntry.
Definition at line 305 of file OptionEntry.h.
References OptionEntry::OptionEntryFloatType.
| const char * OptionEntryFloat::getValueAsString | ( | ) | [virtual] |
| const char * OptionEntryFloat::getDefaultValueAsString | ( | ) | [virtual] |
Implements OptionEntry.
Definition at line 660 of file OptionEntry.cpp.
References defaultValue_, snprintf, and truncate_.
| bool OptionEntryFloat::setValueFromString | ( | const std::string & | string | ) | [virtual] |
| float OptionEntryFloat::getValue | ( | ) | [virtual] |
| bool OptionEntryFloat::setValue | ( | float | value | ) | [virtual] |
Definition at line 680 of file OptionEntry.cpp.
References OptionEntry::changedValue_, and value_.
Referenced by setValueFromString().
| bool OptionEntryFloat::addToArgParser | ( | ARGParser & | parser | ) | [virtual] |
| virtual bool OptionEntryFloat::isDefaultValue | ( | ) | [inline, virtual] |
Implements OptionEntry.
Definition at line 314 of file OptionEntry.h.
References defaultValue_, and value_.
| OptionEntryFloat::operator float | ( | ) | [inline] |
bool OptionEntryFloat::truncate_ [protected] |
Definition at line 319 of file OptionEntry.h.
Referenced by getDefaultValueAsString(), and getValueAsString().
float OptionEntryFloat::defaultValue_ [protected] |
Definition at line 320 of file OptionEntry.h.
Referenced by getDefaultValueAsString(), and isDefaultValue().
float OptionEntryFloat::value_ [protected] |
Definition at line 321 of file OptionEntry.h.
Referenced by getValue(), getValueAsString(), isDefaultValue(), operator float(), and setValue().
1.5.3