EPICS ARCHIVER V4
|
Imlpement an integer-typed argument. More...
#include <ArgParser.h>
Public Member Functions | |
CmdArgInt (CmdArgParser &args, const char *option, const char *argument_name, const char *description) | |
Create the argument: More... | |
void | set (int value) |
Set the default. | |
operator int () const | |
Get the value. | |
int | get () const |
Get the value. | |
virtual size_t | parse (const char *arg) |
Parse arguments from current option. More... | |
![]() | |
CmdArg (CmdArgParser &args, const char *option, const char *arguments, const char *description) | |
All arguments follow this schema: More... | |
size_t | findMatches (const char *option) const |
Called with option (minus '-'), determine how many characters match. | |
void | usage_option () const |
Show info on option for command line. | |
size_t | option_size () const |
Get string length of option w/o description. | |
void | usage (size_t tab) const |
Show option description. | |
Imlpement an integer-typed argument.
CmdArgInt::CmdArgInt | ( | CmdArgParser & | args, |
const char * | option, | ||
const char * | argument_name, | ||
const char * | description | ||
) |
Create the argument:
args,: | |
option,: | option test without the leading '-' |
argument_name,: | a description like "<seconds>" |
description,: | guess what |
|
virtual |
Parse arguments from current option.
args: following arg Result: 0: error 1: option ok, no argument needed 2: option ok, argument swallowed
Implements CmdArg.