Builds a POPT table structure. More...
#include <popttablebuilder.h>
Public Member Functions | |
| void | addEntry (const std::string &name, struct::poptOption *opt) |
| Adds an entry to the last added subtable. | |
| void | addSubtable (const std::string &desc) |
| Adds a subtable (group) containing further POPT tables. | |
| struct::poptOption & | getPoptTable () |
| Builds a reference to a POPT option table to include. | |
Static Public Member Functions | |
| static bool | isTableEntry (const struct::poptOption &opt) |
Checks if a given POPT option is POPT_ARG_INCLUDE_TABLE and its arg is NULL. | |
Builds a POPT table structure.
This class builds a POPT table structure for dynamic inclusion of POPT command line arguments.
| void PoptTableBuilder::addEntry | ( | const std::string & | name, | |
| struct::poptOption * | opt | |||
| ) |
Adds an entry to the last added subtable.
| name | for the POPT option table | |
| opt | POPT option structure array |
| void PoptTableBuilder::addSubtable | ( | const std::string & | desc | ) |
Adds a subtable (group) containing further POPT tables.
| desc | a description for the group |
| struct::poptOption & PoptTableBuilder::getPoptTable | ( | ) |
Builds a reference to a POPT option table to include.
addSubTable and addEntry | bool PoptTableBuilder::isTableEntry | ( | const struct::poptOption & | opt | ) | [static] |
Checks if a given POPT option is POPT_ARG_INCLUDE_TABLE and its arg is NULL.
| opt | a POPT option |
true if the given POPT option is POPT_ARG_INCLUDE_TABLE and its arg is NULL, false otherwise
1.6.1