The class responsible for grouping parameters (objects of the type Param)
More...
#include <param_group.h>
|
| ParamGroup (const std::string &_name) |
| A constructor of a ParamGroup. More...
|
|
size_t | printGroup (bool printGroupName, bool printRequired, bool hilightMissing, const std::string &filter="", bool isExtended=false) |
| Prints the whole group of parameters (their names and descriptions), optionally with the group name. More...
|
|
The class responsible for grouping parameters (objects of the type Param)
Definition at line 24 of file param_group.h.
◆ ParamGroup()
paramkit::ParamGroup::ParamGroup |
( |
const std::string & |
_name | ) |
|
|
inline |
A constructor of a ParamGroup.
- Parameters
-
_name | : a name of the group that will be used to identify it |
Definition at line 30 of file param_group.h.
◆ addParam()
bool paramkit::ParamGroup::addParam |
( |
Param * |
param | ) |
|
|
inlineprotected |
◆ countParams()
size_t paramkit::ParamGroup::countParams |
( |
bool |
printRequired, |
|
|
bool |
hilightMissing, |
|
|
const std::string & |
filter |
|
) |
| |
|
inlineprotected |
◆ hasParam()
bool paramkit::ParamGroup::hasParam |
( |
Param * |
param | ) |
|
|
inlineprotected |
◆ printGroup()
size_t paramkit::ParamGroup::printGroup |
( |
bool |
printGroupName, |
|
|
bool |
printRequired, |
|
|
bool |
hilightMissing, |
|
|
const std::string & |
filter = "" , |
|
|
bool |
isExtended = false |
|
) |
| |
|
inline |
Prints the whole group of parameters (their names and descriptions), optionally with the group name.
- Parameters
-
printGroupName | : a flag indicating if the group name will be printed |
printRequired | : a flag indicating if the required parameters should be printed. If true, only required are printed. If false, only optional are printed. |
hilightMissing | : a flag indicating if the required parameters that are not filled should be hiligted. |
filter | : a string that will be searched among the parameters. If filled, only the parameters that are similar to the given string are printed. |
isExtended | : print extended info about each parameter |
- Returns
- number of printed parameters
Definition at line 45 of file param_group.h.
◆ removeParam()
bool paramkit::ParamGroup::removeParam |
( |
Param * |
param | ) |
|
|
inlineprotected |
◆ Params
◆ hdrColor
const int paramkit::ParamGroup::hdrColor |
|
protected |
◆ name
std::string paramkit::ParamGroup::name |
|
protected |
◆ paramColor
const int paramkit::ParamGroup::paramColor |
|
protected |
◆ params
◆ separatorColor
const int paramkit::ParamGroup::separatorColor |
|
protected |
The documentation for this class was generated from the following file: