LOST  0.0.1
LOST: Open-source Star Tracker
main.cpp File Reference
#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"
Include dependency graph for main.cpp:

Go to the source code of this file.

Namespaces

 lost
 LOST starting point.
 

Macros

#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)
 

Functions

bool lost::atobool (const char *cstr)
 Convert string to boolean. More...
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ 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.
Definition: main.cpp:122

◆ 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.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 252 of file main.cpp.