RXtoRINEX  V2.1
RXtoRINEX provides tools to collect data from GPS / GNSS receivers in mobile devices, convert them to RINEX or RTK formats, and process RINEX files.
Public Member Functions | Friends | List of all members
Option Class Reference

Option class defines an abstract type for storing options in an ArgParser container. More...

#include <ArgParser.h>

Public Member Functions

 Option (void)
 
 Option (int, string, string, bool, bool)
 
 Option (int, char *, char *, char *, char *, char *)
 
 Option (int, char *, char *, char *, char *, bool)
 

Friends

class ArgParser
 

Detailed Description

Option class defines an abstract type for storing options in an ArgParser container.

Constructor & Destructor Documentation

Option::Option ( void  )

Constructs an empty Option object

Option::Option ( int  id,
string  name,
string  value,
bool  isLong,
bool  isString 
)

Constructs an Option object with a given name, value (if applicable) and type.

Parameters
idthe identification of the Option object
namethe option name having the format: -x (when short) or –x{x} (when long)
valuethe option value if string, or empty if boolean
isLongtrue when the option name has long format ( –x{x} ), false when is short ( -x )
isStringtrue when the option is a string, false when is boolean
Option::Option ( int  id,
char *  s,
char *  l,
char *  d,
char *  u,
char *  v 
)

Constructs an Option string type object.

Parameters
idthe identification of the Option object
sshort name for the optin (-x)
llong name for the optin (–xxxxx)
da word describing the option value
ua explanation for usage of this option
vdefault value for the option
Option::Option ( int  id,
char *  s,
char *  l,
char *  d,
char *  u,
bool  v 
)

Constructs an Option boolean type object.

Parameters
idthe identification of the Option object
sshort name for the option (-x)
llong name for the option (–xxxxx)
da word describing the option value
ua explanation for usage of this option
vdefault value for the option

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