#include <Options.h>
Inheritance diagram for oasys::BoolOpt:
Definition at line 86 of file Options.h.
Public Member Functions | |
BoolOpt (const char *opt, bool *valp, const char *desc="", bool *setp=NULL) | |
Basic constructor. | |
BoolOpt (char shortopt, const char *longopt, bool *valp, const char *desc="", bool *setp=NULL) | |
Alternative constructor with both short and long options, suitable for getopt calls. | |
Protected Member Functions | |
int | set (const char *val, size_t len) |
Virtual callback to set the option to the given string value. |
oasys::BoolOpt::BoolOpt | ( | const char * | opt, | |
bool * | valp, | |||
const char * | desc = "" , |
|||
bool * | setp = NULL | |||
) |
Basic constructor.
opt | the option string | |
valp | pointer to the value | |
desc | descriptive string | |
setp | optional pointer to indicate whether or not the option was set |
Definition at line 76 of file Options.cc.
oasys::BoolOpt::BoolOpt | ( | char | shortopt, | |
const char * | longopt, | |||
bool * | valp, | |||
const char * | desc = "" , |
|||
bool * | setp = NULL | |||
) |
Alternative constructor with both short and long options, suitable for getopt calls.
shortopt | short option character | |
longopt | long option string | |
valp | pointer to the value | |
desc | descriptive string | |
setp | optional pointer to indicate whether or not the option was set |
Definition at line 83 of file Options.cc.
int oasys::BoolOpt::set | ( | const char * | val, | |
size_t | len | |||
) | [protected, virtual] |
Virtual callback to set the option to the given string value.
Implements oasys::Opt.
Definition at line 91 of file Options.cc.
References oasys::Opt::setp_, and oasys::Opt::valp_.