Extension class to the oasys Opt hierarchy that validates that the option is a DTN endpoint identifier (i.e. More...
#include <APIEndpointIDOpt.h>
Public Member Functions | |
| APIEndpointIDOpt (const char *opt, dtn_endpoint_id_t *valp, const char *valdesc="", const char *desc="", bool *setp=NULL) | |
| Basic constructor. | |
| APIEndpointIDOpt (char shortopt, const char *longopt, dtn_endpoint_id_t *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 (i.e.
a URI).
Definition at line 32 of file APIEndpointIDOpt.h.
| dtn::APIEndpointIDOpt::APIEndpointIDOpt | ( | const char * | opt, | |
| dtn_endpoint_id_t * | 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 26 of file APIEndpointIDOpt.cc.
| dtn::APIEndpointIDOpt::APIEndpointIDOpt | ( | char | shortopt, | |
| const char * | longopt, | |||
| dtn_endpoint_id_t * | 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 33 of file APIEndpointIDOpt.cc.
| void dtn::APIEndpointIDOpt::get | ( | oasys::StringBuffer * | buf | ) | [protected] |
Definition at line 64 of file APIEndpointIDOpt.cc.
| int dtn::APIEndpointIDOpt::set | ( | const char * | val, | |
| size_t | len | |||
| ) | [protected] |
Definition at line 42 of file APIEndpointIDOpt.cc.
References buf, DTN_MAX_ENDPOINT_ID, and dtn_parse_eid_string().
1.6.3