|
dxd - dynax driver framework 3.0.1d223
cross platform open source driver development framework
|
cmd line parser More...
#include <dx_parser.h>
Classes | |
| struct | dispatch |
| one command: what it runs, how it reads in the help, and the commands nested under it. A word of parameter consumes the arguments that follow it before this one's own function runs, which is what makes the CLI hierarchical More... | |
Public Types | |
| typedef std::deque< std::string > | args |
Public Member Functions | |
| virtual void | operator<< (argsargs &argsargs) |
| virtual void | operator<< (const argsargs &argsargs) |
| parser (const char *name, const decltype(dictionary)&dictionary={}) | |
| virtual void | quiet (const args &={}) noexcept |
| virtual | ~parser ()=default |
Protected Member Functions | |
| virtual bool | head () const noexcept |
| virtual void | help (argsargs &argsargs) |
| virtual void | help_head () const noexcept |
| virtual void | indent (argsargs &argsargs) |
| virtual void | no_args (const argsargs &argsargs) |
| auto | select (const std::string &id) |
| virtual void | version (const argsargs &argsargs={}) |
Protected Attributes | |
| std::map< std::deque< std::string >, dispatch > | dictionary |
| const char * | name {} |
| struct dx::parser:: { ... } | parameter |
cmd line parser
| typedef std::deque<std::string> dx::parser::args |
|
inline |
|
virtualdefault |
|
inlineprotectedvirtualnoexcept |
Reimplemented in dx::service::parser, and dx::test::driver< super_device_t, device_t, driver_t >.
|
inlineprotectedvirtual |
|
inlineprotectedvirtualnoexcept |
Reimplemented in dx::select< parsers_t >, and dx::test::driver< super_device_t, device_t, driver_t >.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
Reimplemented in dx::select< parsers_t >, and dx::test::driver< super_device_t, device_t, driver_t >.
|
inlinevirtual |
|
inlinevirtualnoexcept |
|
inlineprotected |
|
inlineprotectedvirtual |
|
protected |
|
protected |
| struct { ... } dx::parser::parameter |
| (c) copyright 2009 dynamic acoustics e.U. | generated on |