Fast map matching  0.1.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
FMM::MM::UBODTGenAppConfig Class Reference

Configuration of ubodt_gen command line program. More...

#include <ubodt_gen_app_config.hpp>

Public Member Functions

 UBODTGenAppConfig (int argc, char **argv)
 Constructor of Configuration of ubodt_gen command line program. More...
 
void load_xml (const std::string &file)
 Load configuration from xml file. More...
 
void load_arg (int argc, char **argv)
 Load configuration from arguments. More...
 
void print () const
 Print information.
 
bool validate () const
 Check the validity of the configuration. More...
 
bool is_binary_output () const
 Check if the output is in binary format. More...
 

Static Public Member Functions

static void print_help ()
 Print help information.
 

Public Attributes

CONFIG::NetworkConfig network_config
 Network configuration.
 
double delta
 Upper-bound of the routing result.
 
std::string result_file
 Result file.
 
int log_level = 2
 Level level. More...
 
bool use_omp = false
 If true, parallel computing performed.
 
bool help_specified
 Help is specified or not.
 

Detailed Description

Configuration of ubodt_gen command line program.

Definition at line 21 of file ubodt_gen_app_config.hpp.

Constructor & Destructor Documentation

◆ UBODTGenAppConfig()

UBODTGenAppConfig::UBODTGenAppConfig ( int  argc,
char **  argv 
)

Constructor of Configuration of ubodt_gen command line program.

Parameters
argcnumber of argument
argvargument data

Definition at line 10 of file ubodt_gen_app_config.cpp.

Member Function Documentation

◆ is_binary_output()

bool UBODTGenAppConfig::is_binary_output ( ) const

Check if the output is in binary format.

Returns
true if binary and otherwise false

Definition at line 129 of file ubodt_gen_app_config.cpp.

◆ load_arg()

void UBODTGenAppConfig::load_arg ( int  argc,
char **  argv 
)

Load configuration from arguments.

Parameters
argcnumber of argument
argvargument data

Definition at line 41 of file ubodt_gen_app_config.cpp.

◆ load_xml()

void UBODTGenAppConfig::load_xml ( const std::string &  file)

Load configuration from xml file.

Parameters
fileinput xml configuration file

Definition at line 27 of file ubodt_gen_app_config.cpp.

◆ validate()

bool UBODTGenAppConfig::validate ( ) const

Check the validity of the configuration.

Returns
true if valid otherwise false

Definition at line 103 of file ubodt_gen_app_config.cpp.

Member Data Documentation

◆ log_level

int FMM::MM::UBODTGenAppConfig::log_level = 2

Level level.

0-trace,1-debug,2-info,3-warn,4-err, 5-critical,6-off

Definition at line 62 of file ubodt_gen_app_config.hpp.


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