FOUND
|
#include "command-line/parsing/parser.hpp"
#include <getopt.h>
#include <string>
#include <memory>
#include <iostream>
#include "common/logging.hpp"
#include "common/style.hpp"
#include "command-line/parsing/options.hpp"
Namespaces | |
namespace | found |
Macros | |
#define | OPTIONAL_OPTARG() |
Determines whether the current flag allows an optional argument AND if that argument exists To Fully Test this, you must: | |
#define | REQ_ASSIGN(options, prop, value, default) options.prop = (value); |
Assigns a flag with a required value. | |
#define | OPT_ASSIGN(options, prop, value, default) |
Assigns a flag with an optional value. | |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) prop, |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) prop, |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) prop, |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) |
#define | FOUND_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg, ASSIGN, doc) |
Functions | |
CalibrationOptions | found::ParseCalibrationOptions (int argc, char **argv) |
Parses the calibration options from the command line to run the calibration algorithm. | |
DistanceOptions | found::ParseDistanceOptions (int argc, char **argv) |
Parses the distance options from the command line to run the distance determination algorithm. | |
OrbitOptions | found::ParseOrbitOptions (int argc, char **argv) |
Parses the orbit options from the command line to run the orbit determination algorithm. | |
Variables | |
int | optind = 2 |
This defines the global variable optind, used for keeping track of parsing for command-line arguments. | |
const char | found::kNoDefaultArgument = 0 |
For macro processing. | |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) | prop, |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) | prop, |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) | prop, |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) |
#define FOUND_CLI_OPTION | ( | name, | |
type, | |||
prop, | |||
defaultVal, | |||
converter, | |||
defaultArg, | |||
ASSIGN, | |||
doc | |||
) |
#define OPT_ASSIGN | ( | options, | |
prop, | |||
value, | |||
default | |||
) |
Assigns a flag with an optional value.
options | The options object that has the flag |
prop | The name of the prop within options |
value | The value to assign |
default | The default value |
#define OPTIONAL_OPTARG | ( | ) |
Determines whether the current flag allows an optional argument AND if that argument exists To Fully Test this, you must:
#define REQ_ASSIGN | ( | options, | |
prop, | |||
value, | |||
default | |||
) | options.prop = (value); |
Assigns a flag with a required value.
options | The options object that has the flag |
prop | The name of the prop within options |
value | The value to assign |
default | Not used |
int optind = 2 |
This defines the global variable optind, used for keeping track of parsing for command-line arguments.