EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
CmdArgString Class Reference

Implements a string-typed argument. More...

#include <ArgParser.h>

Inheritance diagram for CmdArgString:
CmdArg

Public Member Functions

 CmdArgString (CmdArgParser &args, const char *option, const char *argument_name, const char *description)
 
void set (const stdString &value)
 Set the default.
 
 operator const stdString & () const
 Get the value.
 
const stdString & get () const
 Get the value.
 
bool isSet () const
 Was option provided?
 
virtual size_t parse (const char *arg)
 Parse arguments from current option. More...
 
- Public Member Functions inherited from CmdArg
 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.
 

Detailed Description

Implements a string-typed argument.

Constructor & Destructor Documentation

CmdArgString::CmdArgString ( CmdArgParser args,
const char *  option,
const char *  argument_name,
const char *  description 
)
See Also
CmdArgInt

Member Function Documentation

virtual size_t CmdArgString::parse ( const char *  arg)
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.


The documentation for this class was generated from the following file: