![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "common/option.hpp"
Frontend for handling the Lumiera application commandline arguments.
A preconfigured wrapper around boost::program_options, with the ability to tolerate unknown options. The commandline to be parsed is taken wrapped into a Cmdline instance; after parsing this commandline vector will contain only the remaining unrecognised parts.
Definition at line 68 of file option.hpp.
Public Member Functions | |
| Option (lib::Cmdline &cmdline) | |
| set up an options parser to use the application commandline. | |
| const string | getSessName () |
| const VectS | getScripts () |
| const VectS | getConfigDefs () |
| int | getPort () |
| bool | isOpenSession () |
| should an existing session file be loaded? | |
| bool | isConfigDefs () |
| additional Config defs to fed to config system? | |
| bool | isHeadless () |
| bool | isHelp () |
| syntax help requested? | |
Friends | |
| ostream & | operator<< (ostream &, const Option &) |
| for outputting the help messages. | |
Private Attributes | |
| boost::program_options::options_description | syntax |
| boost::program_options::variables_map | parameters |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
| Option | ( | lib::Cmdline & | cmdline | ) |
set up an options parser to use the application commandline.
Recognises the following options
Definition at line 48 of file option.cpp.
References Option::isConfigDefs(), Option::isHelp(), Option::parameters, and Option::syntax.
Here is the call graph for this function:| const string getSessName | ( | ) |
Definition at line 108 of file option.cpp.
References Option::parameters.
| const VectS getScripts | ( | ) |
Definition at line 117 of file option.cpp.
References Option::parameters.
| const VectS getConfigDefs | ( | ) |
Definition at line 125 of file option.cpp.
References Option::parameters.
| int getPort | ( | ) |
Definition at line 140 of file option.cpp.
References Option::parameters.
Referenced by GuiSubsysDescriptor::shouldStart().
Here is the caller graph for this function:| bool isOpenSession | ( | ) |
should an existing session file be loaded?
Definition at line 100 of file option.cpp.
References Option::parameters.
| bool isConfigDefs | ( | ) |
additional Config defs to fed to config system?
Definition at line 103 of file option.cpp.
References Option::parameters.
Referenced by Option::Option().
Here is the caller graph for this function:| bool isHeadless | ( | ) |
true if –headless switch was given Definition at line 132 of file option.cpp.
References Option::parameters.
Referenced by GuiSubsysDescriptor::shouldStart().
Here is the caller graph for this function:| bool isHelp | ( | ) |
syntax help requested?
Definition at line 97 of file option.cpp.
References Option::parameters.
Referenced by Option::Option().
Here is the caller graph for this function:
|
private |
Definition at line 86 of file option.hpp.
Referenced by Option::Option().
|
private |
Definition at line 87 of file option.hpp.
Referenced by Option::Option(), Option::getConfigDefs(), Option::getPort(), Option::getScripts(), Option::getSessName(), Option::isConfigDefs(), Option::isHeadless(), Option::isHelp(), and Option::isOpenSession().
|
friend |
for outputting the help messages.
Forward accumulated help messages from all contained option definitions
Definition at line 150 of file option.cpp.
Inheritance diagram for Option:
Collaboration diagram for Option: