#include <IntegerParameter.hpp>


Public Types | |
| enum | Type { Double, Integer, String, Enum } |
Public Member Functions | |
| void | get (IdentifierSet &I) |
| Does not add other identifiers. | |
| void | set (const real_t d) |
| void | set (const int i) |
| void | set (const char *c) |
| void | reset () |
| const std::string | typeName () const |
| operator int & () | |
| operator int () const | |
| IntegerParameter (const int &i, const char *label) | |
| IntegerParameter (const IntegerParameter &ip) | |
| ~IntegerParameter () | |
| void | set (const std::string &s) |
| const Type & | type () const |
| const char * | label () const |
Protected Attributes | |
| Type | __type |
Private Member Functions | |
| std::ostream & | put (std::ostream &os) const |
Private Attributes | |
| const int | __defaultIntValue |
| int | __intValue |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Parameter &P) |
Definition at line 35 of file IntegerParameter.hpp.
enum Parameter::Type [inherited] |
| IntegerParameter::IntegerParameter | ( | const int & | i, | |
| const char * | label | |||
| ) | [inline] |
Definition at line 93 of file IntegerParameter.hpp.
00094 : Parameter(Parameter::Integer, label), 00095 __defaultIntValue(i), 00096 __intValue(i) 00097 { 00098 ; 00099 }
| IntegerParameter::IntegerParameter | ( | const IntegerParameter & | ip | ) | [inline] |
Definition at line 101 of file IntegerParameter.hpp.
00102 : Parameter(ip), 00103 __defaultIntValue(ip.__defaultIntValue), 00104 __intValue(ip.__intValue) 00105 { 00106 ; 00107 }
| IntegerParameter::~IntegerParameter | ( | ) | [inline] |
| std::ostream& IntegerParameter::put | ( | std::ostream & | os | ) | const [inline, private, virtual] |
Implements Parameter.
Definition at line 42 of file IntegerParameter.hpp.
References __intValue.
00043 { 00044 os << __intValue; 00045 return os; 00046 }
| void IntegerParameter::get | ( | IdentifierSet & | I | ) | [inline, virtual] |
Does not add other identifiers.
Implements Parameter.
Definition at line 50 of file IntegerParameter.hpp.
| void IntegerParameter::set | ( | const real_t | d | ) | [inline, virtual] |
Implements Parameter.
Definition at line 55 of file IntegerParameter.hpp.
References __intValue.
00056 { 00057 __intValue = int(d); 00058 }
| void IntegerParameter::set | ( | const int | i | ) | [inline, virtual] |
Implements Parameter.
Definition at line 60 of file IntegerParameter.hpp.
References __intValue.
00061 { 00062 __intValue = i; 00063 }
| void IntegerParameter::set | ( | const char * | c | ) | [inline, virtual] |
Implements Parameter.
Definition at line 65 of file IntegerParameter.hpp.
References ErrorHandler::normal, and stringify().
00066 { 00067 throw ErrorHandler(__FILE__,__LINE__, 00068 "cannot assignate the string '"+stringify(c) 00069 +"' to an integer parameter", 00070 ErrorHandler::normal); 00071 }

| void IntegerParameter::reset | ( | ) | [inline, virtual] |
Implements Parameter.
Definition at line 73 of file IntegerParameter.hpp.
References __defaultIntValue, and __intValue.
00074 { 00075 __intValue = __defaultIntValue; 00076 }
| const std::string IntegerParameter::typeName | ( | ) | const [inline, virtual] |
| IntegerParameter::operator int & | ( | ) | [inline] |
Definition at line 83 of file IntegerParameter.hpp.
References __intValue.
00084 { 00085 return __intValue; 00086 }
| IntegerParameter::operator int | ( | ) | const [inline] |
Definition at line 88 of file IntegerParameter.hpp.
References __intValue.
00089 { 00090 return __intValue; 00091 }
| void Parameter::set | ( | const std::string & | s | ) | [inline, inherited] |
| const Type& Parameter::type | ( | ) | const [inline, inherited] |
Definition at line 74 of file Parameter.hpp.
References Parameter::__type.
00075 { 00076 return __type; 00077 }
| const char * Parameter::label | ( | ) | const [inherited] |
Definition at line 26 of file Parameter.cpp.
References Parameter::__label.
00027 { 00028 return __label; 00029 }
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Parameter & | P | |||
| ) | [friend, inherited] |
const int IntegerParameter::__defaultIntValue [private] |
int IntegerParameter::__intValue [private] |
Definition at line 40 of file IntegerParameter.hpp.
Referenced by operator int(), operator int &(), put(), reset(), and set().
Type Parameter::__type [protected, inherited] |
1.5.6