#include <assert.h>
#include <sys/types.h>
#include <unistd.h>
#include <getopt.h>
#include <bitset>
#include <string>
#include <iostream>
#include <fstream>
#include <chrono>
#include <cstring>
#include <map>
#include "databases.hpp"
#include "centroiders.hpp"
#include "decimal.hpp"
#include "io.hpp"
#include "man-database.h"
#include "man-pipeline.h"
#include "database-options.hpp"
#include "pipeline-options.hpp"
Go to the source code of this file.
|
| lost |
| LOST starting point.
|
|
|
#define | LOST_OPTIONAL_OPTARG() |
| Handle optional CLI arguments https://stackoverflow.com/a/69177115. More...
|
|
#define | LOST_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg) prop, |
|
#define | LOST_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg) |
|
#define | LOST_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg) |
|
#define | LOST_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg) prop, |
|
#define | LOST_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg) |
|
#define | LOST_CLI_OPTION(name, type, prop, defaultVal, converter, defaultArg) |
|
◆ LOST_CLI_OPTION [1/6]
#define LOST_CLI_OPTION |
( |
|
name, |
|
|
|
type, |
|
|
|
prop, |
|
|
|
defaultVal, |
|
|
|
converter, |
|
|
|
defaultArg |
|
) |
| prop, |
◆ LOST_CLI_OPTION [2/6]
#define LOST_CLI_OPTION |
( |
|
name, |
|
|
|
type, |
|
|
|
prop, |
|
|
|
defaultVal, |
|
|
|
converter, |
|
|
|
defaultArg |
|
) |
| |
Value: {name, \
defaultArg == 0 ? required_argument : optional_argument, \
0, \
(int)DatabaseCliOption::prop},
◆ LOST_CLI_OPTION [3/6]
#define LOST_CLI_OPTION |
( |
|
name, |
|
|
|
type, |
|
|
|
prop, |
|
|
|
defaultVal, |
|
|
|
converter, |
|
|
|
defaultArg |
|
) |
| |
Value: case (int)DatabaseCliOption::prop : \
if (defaultArg == 0) { \
databaseOptions.prop = converter; \
} else { \
databaseOptions.prop = converter; \
} else { \
databaseOptions.prop = defaultArg; \
} \
} \
break;
#define LOST_OPTIONAL_OPTARG()
Handle optional CLI arguments https://stackoverflow.com/a/69177115.
◆ LOST_CLI_OPTION [4/6]
#define LOST_CLI_OPTION |
( |
|
name, |
|
|
|
type, |
|
|
|
prop, |
|
|
|
defaultVal, |
|
|
|
converter, |
|
|
|
defaultArg |
|
) |
| prop, |
◆ LOST_CLI_OPTION [5/6]
#define LOST_CLI_OPTION |
( |
|
name, |
|
|
|
type, |
|
|
|
prop, |
|
|
|
defaultVal, |
|
|
|
converter, |
|
|
|
defaultArg |
|
) |
| |
Value: {name, \
defaultArg == 0 ? required_argument : optional_argument, \
0, \
(int)PipelineCliOption::prop},
◆ LOST_CLI_OPTION [6/6]
#define LOST_CLI_OPTION |
( |
|
name, |
|
|
|
type, |
|
|
|
prop, |
|
|
|
defaultVal, |
|
|
|
converter, |
|
|
|
defaultArg |
|
) |
| |
Value: case (int)PipelineCliOption::prop : \
if (defaultArg == 0) { \
pipelineOptions.prop = converter; \
} else { \
pipelineOptions.prop = converter; \
} else { \
pipelineOptions.prop = defaultArg; \
} \
} \
break;
◆ LOST_OPTIONAL_OPTARG
#define LOST_OPTIONAL_OPTARG |
( |
| ) |
|
Value: ((optarg == NULL && optind < argc && argv[optind][0] != '-') \
? (bool) (optarg = argv[optind++]) \
: (optarg != NULL))
Handle optional CLI arguments https://stackoverflow.com/a/69177115.
Definition at line 122 of file main.cpp.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |