Lumiera
0.pre.03
»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. More... | |
const VectS | getConfigDefs () |
int | getPort () |
const VectS | getScripts () |
const string | getSessName () |
bool | isConfigDefs () |
additional Config defs to fed to config system? | |
bool | isHeadless () |
bool | isHelp () |
syntax help requested? | |
bool | isOpenSession () |
should an existing session file be loaded? | |
Friends | |
ostream & | operator<< (ostream &, const Option &) |
for outputting the help messages. More... | |
Private Attributes | |
boost::program_options::variables_map | parameters |
boost::program_options::options_description | syntax |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
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.
const string getSessName | ( | ) |
Definition at line 108 of file option.cpp.
const VectS getScripts | ( | ) |
Definition at line 117 of file option.cpp.
const VectS getConfigDefs | ( | ) |
Definition at line 125 of file option.cpp.
int getPort | ( | ) |
Definition at line 140 of file option.cpp.
Referenced by GuiSubsysDescriptor::shouldStart().
bool isHeadless | ( | ) |
true
if –headless switch was given Definition at line 132 of file option.cpp.
Referenced by GuiSubsysDescriptor::shouldStart().
|
friend |
for outputting the help messages.
Forward accumulated help messages from all contained option definitions
Definition at line 151 of file option.cpp.