#include <Switch.h>
Public Member Functions | |
SwitchOption (SwitchBase &theSwitch, string newName, string newDescription, long newValue) | |
Standard constructor. | |
SwitchOption () | |
Default constructor. | |
const string & | description () const |
The description of this option. | |
long | value () const |
The value of this option. | |
operator long () const | |
The value of this option. | |
Private Attributes | |
string | theDescription |
The description of this option. | |
long | theValue |
The value of this option. |
For each InterfacedBase class exactly one static Switch object should created for each member variable which should be interfaced. This object will automatically register itself with the BaseRepository class. Also for each Switch object exactly one static SwitchOption object should be created for each valid integer option.
Definition at line 36 of file Switch.h.
ThePEG::SwitchOption::SwitchOption | ( | SwitchBase & | theSwitch, | |
string | newName, | |||
string | newDescription, | |||
long | newValue | |||
) |
Standard constructor.
theSwitch | the Switch object for which this option is defined. Note thet the static Switch object must be created before this is created. | |
newName | the name of the option, may only contain letters [a-zA-z0-9_]. | |
newDescription | a brief description of the option. | |
newValue | the integer value corresponding to this option. |