Encapsulates a variable with a name, value, and description.
More...
#include <goption.h>
|
| GVariable (string n, string val, string d) |
| Constructor for initializing a variable with a string value. More...
|
|
| GVariable (string n, double val, string d) |
| Constructor for initializing a variable with a double value. More...
|
|
| GVariable (string n, const char *val, string d) |
| Constructor for initializing a variable with a const char* value. More...
|
|
| GVariable (string n, int val, string d) |
| Constructor for initializing a variable with an integer value. More...
|
|
| GVariable (string n, bool val, string d) |
| Constructor for initializing a variable with a boolean value. More...
|
|
The GVariable struct provides a flexible way to store and manage different types of variables, with overloaded constructors to support strings, integers, doubles, and booleans.
Definition at line 30 of file goption.h.
◆ GVariable() [1/5]
GVariable::GVariable |
( |
string |
n, |
|
|
string |
val, |
|
|
string |
d |
|
) |
| |
|
inline |
- Parameters
-
n | Name of the variable. |
val | Value of the variable. |
d | Description of the variable. |
Definition at line 41 of file goption.h.
◆ GVariable() [2/5]
GVariable::GVariable |
( |
string |
n, |
|
|
double |
val, |
|
|
string |
d |
|
) |
| |
|
inline |
- Parameters
-
n | Name of the variable. |
val | Value of the variable. |
d | Description of the variable. |
Definition at line 50 of file goption.h.
◆ GVariable() [3/5]
GVariable::GVariable |
( |
string |
n, |
|
|
const char * |
val, |
|
|
string |
d |
|
) |
| |
|
inline |
- Parameters
-
n | Name of the variable. |
val | Value of the variable. |
d | Description of the variable. |
Definition at line 59 of file goption.h.
◆ GVariable() [4/5]
GVariable::GVariable |
( |
string |
n, |
|
|
int |
val, |
|
|
string |
d |
|
) |
| |
|
inline |
- Parameters
-
n | Name of the variable. |
val | Value of the variable. |
d | Description of the variable. |
Definition at line 68 of file goption.h.
◆ GVariable() [5/5]
GVariable::GVariable |
( |
string |
n, |
|
|
bool |
val, |
|
|
string |
d |
|
) |
| |
|
inline |
- Parameters
-
n | Name of the variable. |
val | Boolean value of the variable. |
d | Description of the variable. |
Definition at line 77 of file goption.h.
◆ description
string GVariable::description |
◆ name
◆ value
The documentation for this struct was generated from the following file: