Extension class to the oasys Opt hierarchy that validates that the option is a DTN endpoint identifier. More...
#include <EndpointIDOpt.h>
Public Member Functions | |
| EndpointIDOpt (const char *opt, EndpointID *valp, const char *valdesc="", const char *desc="", bool *setp=NULL) | |
| Basic constructor. | |
| EndpointIDOpt (char shortopt, const char *longopt, EndpointID *valp, const char *valdesc="", 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) |
| void | get (oasys::StringBuffer *buf) |
Extension class to the oasys Opt hierarchy that validates that the option is a DTN endpoint identifier.
Definition at line 30 of file EndpointIDOpt.h.
| dtn::EndpointIDOpt::EndpointIDOpt | ( | const char * | opt, | |
| EndpointID * | valp, | |||
| const char * | valdesc = "", |
|||
| const char * | desc = "", |
|||
| bool * | setp = NULL | |||
| ) |
Basic constructor.
| opt | the option string | |
| valp | pointer to the value | |
| valdesc | short description for the value | |
| desc | descriptive string | |
| setp | optional pointer to indicate whether or not the option was set |
Definition at line 25 of file EndpointIDOpt.cc.
| dtn::EndpointIDOpt::EndpointIDOpt | ( | char | shortopt, | |
| const char * | longopt, | |||
| EndpointID * | valp, | |||
| const char * | valdesc = "", |
|||
| 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 | |
| valdesc | short description for the value | |
| desc | descriptive string | |
| setp | optional pointer to indicate whether or not the option was set |
Definition at line 31 of file EndpointIDOpt.cc.
| void dtn::EndpointIDOpt::get | ( | oasys::StringBuffer * | buf | ) | [protected] |
Definition at line 54 of file EndpointIDOpt.cc.
| int dtn::EndpointIDOpt::set | ( | const char * | val, | |
| size_t | len | |||
| ) | [protected] |
Definition at line 39 of file EndpointIDOpt.cc.
1.6.3