Ask a Question | Search PSRCHIVE: |
![]()
|
CommandLine.h void handle(const std::string &) Handle the argument. Definition CommandLine.h:262 Functor< void() > action The action to be taken. Definition CommandLine.h:252 Action(C *instance, M method) Default constructor. Definition CommandLine.h:258 Help get_help() const Return two columns of help text. Definition CommandLine.C:38 void set_handled(bool f) Set the handled flag. Definition CommandLine.h:132 void handle(const std::string &arg) Handle the argument. Definition CommandLine.h:133 Help get_help() const Return two columns of help text. Definition CommandLine.C:18 int has_arg The has_arg attribute used by getopt_long. Definition CommandLine.h:79 int val Code assigned to this Argument by Menu class. Definition CommandLine.h:82 bool matches(int c) const Return true if key matches. Definition CommandLine.h:108 std::string long_help Detailed description of value. Definition CommandLine.h:76 void set_handled(bool f) Set the handled flag. Definition CommandLine.h:104 std::string short_name Single-character name of value. Definition CommandLine.h:64 A command line corresponding to a class attribute. Definition CommandLine.h:200 Attribute(C *_instance, M _method, P _parse) Default constructor. Definition CommandLine.h:215 M method Pointer to the method (unary member function) Definition CommandLine.h:207 void handle(const std::string &arg) Handle the argument. Definition CommandLine.h:220 virtual void set_handled(bool) Set the handled flag. Definition CommandLine.h:48 Argument * add(C *ptr, void(B::*method)(T), char name, T arg) Add an UnaryAction with only a single letter name. Definition CommandLine.h:438 virtual void parse(int argc, char *const *argv) Parse the command line. Definition CommandLine.C:120 Menu() Construct with two default options: –help and –version. Definition CommandLine.C:54 Argument * add(T &value, char name, const char *type=0) Add a Value with only a single letter name. Definition CommandLine.h:359 std::string get_help_footer() const Get the help footer. Definition CommandLine.h:333 Argument * add(Functor< void(const std::string &) > action, char name, const char *type=0) Add an parse action with only a single letter name. Definition CommandLine.h:372 Argument * add(C *ptr, void(B::*method)(), char name) Add an Action with only a single letter name. Definition CommandLine.h:424 Argument * add(C *ptr, M method, P parse, char name, const char *type) Add an Attribute with only a single letter name. Definition CommandLine.h:407 virtual void add_version() Add the –version command line option. Definition CommandLine.C:70 virtual void add_help() Add the –help command line option. Definition CommandLine.C:59 Argument * add(C *ptr, void(B::*method)(T), const std::string &name, const char *type=0) Add an Attribute with only a long string name. Definition CommandLine.h:397 Argument * find(const std::string &name) Find the named Argument. Definition CommandLine.C:209 virtual void set_help_footer(const std::string &s) Set the help footer. Definition CommandLine.h:330 std::string get_help_header() const Get the help header. Definition CommandLine.h:326 virtual void remove(Item *) Remove an item from the menu. Definition CommandLine.C:103 virtual void set_help_header(const std::string &s) Set the help header (activates -h,–help) Definition CommandLine.h:322 Argument * add_value(T &value, N name, S set, const char *type) Add a Value with only a long string name. Definition CommandLine.h:475 Argument * add(C *ptr, void(B::*method)(T), char name, const char *type=0) Add an Attribute with only a single letter name. Definition CommandLine.h:387 virtual int process_error(int code, char *const *argv) Process any option parsing error and return a new code. Definition CommandLine.C:196 Argument * add(C *ptr, void(B::*method)(T), const std::string &name, T arg) Add an UnaryAction with only a long string name. Definition CommandLine.h:445 Argument * add(C *ptr, M method, P parse, const std::string &name, const char *type) Add an Attribute with only a long string name. Definition CommandLine.h:415 Argument * add(C *ptr, void(B::*method)(), const std::string &name) Add an Action with only a long string name. Definition CommandLine.h:431 Argument * add(Functor< void(const std::string &) > action, const std::string &name, const char *type=0) Add a parse action with only a long string name. Definition CommandLine.h:379 Argument * add(T &value, const std::string &name, const char *type=0) Add a Value with only a long string name. Definition CommandLine.h:366 void help(const std::string &) Print help and exit. Definition CommandLine.C:221 virtual void set_version(const std::string &s) Set the version information string (activates -i,–version) Definition CommandLine.h:339 Functor< void(const std::string &) > action The action to be taken. Definition CommandLine.h:230 Parser(Functor< void(const std::string &) > &_action) Default constructor. Definition CommandLine.h:235 void handle(const std::string &arg) Handle the argument. Definition CommandLine.h:239 UnaryAction(C *instance, M method, T arg) Default constructor. Definition CommandLine.h:281 void handle(const std::string &) Handle the argument. Definition CommandLine.h:285 Functor< void(T) > action The action to be taken. Definition CommandLine.h:272 Value(bool &_value) Default constructor. Definition CommandLine.h:191 void handle(const std::string &) Handle the argument. Definition CommandLine.h:194 bool & value Reference to the value to be set. Definition CommandLine.h:186 void handle(const std::string &arg) Handle the argument. Definition CommandLine.h:172 Value(std::vector< T > &_values) Default constructor. Definition CommandLine.h:168 std::vector< T > & values Reference to the value to be set. Definition CommandLine.h:163 void handle(const std::string &arg) Handle the argument. Definition CommandLine.h:153 STL class. STL namespace. Enable a single template that works for both func(T) and func(const T&) Definition CommandLine.h:25 Generated using doxygen 1.14.0
|