#include <parameter.h>
Inherits GenericParameter.
Inheritance diagram for BitmaskParameter:
Public Member Functions | |
BitmaskParameter (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 Bitmasks; i.e., options that are not mutually exclusive.
example:
Param->addParameter ("fooClass", new BitmaskParameter("foo", "foo desc.", "Linux+MacOSX", "Linux MacOSX Win" )); int fooVal = get<BitmaskParameter,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(s). In the above case the return codes will mean:
|
the constructor of any parameter allows to define the various parameter attributes. cippa lippa
|
|
returns the parameter value.
|