#include <parameter.h>
Inherits GenericParameter.
Inheritance diagram for EnumParameter:
Public Member Functions | |
EnumParameter (string aName, string aComment, string aDefault, string aValues) | |
the constructor of any parameter allows to define the various parameter attributes. | |
int | get (string aClass, string aInstance) |
returns the parameter value. |
It stores Enumerations; i.e., mutually exclusive options.
example:
Param->addParameter ("fooClass", new EnumParameter("foo", "foo desc.", "Linux", "Linux MacOSX Win" )); int fooVal = get<EnumParameter,int>(Param, "foo", "fooClass", "");
Comments in this case are used. The various options must be separated by spaces. The parameter will return a number corresponding to the selected option. In the above case, 0 will mean Linux, 1 MacOSX and 2 Win.
|
the constructor of any parameter allows to define the various parameter attributes.
|
|
returns the parameter value.
|