Fast map matching
0.1.0
src
config
network_config.hpp
1
9
#ifndef FMM_NETWORK_CONFIG_HPP_
10
#define FMM_NETWORK_CONFIG_HPP_
11
12
#include <string>
13
#include "cxxopts/cxxopts.hpp"
14
#include <boost/property_tree/ptree.hpp>
15
#include <boost/property_tree/xml_parser.hpp>
16
17
namespace
FMM
{
18
19
namespace
CONFIG {
23
struct
NetworkConfig
{
24
std::string
file
;
25
std::string
id
;
26
std::string
source
;
27
std::string
target
;
32
bool
validate
()
const
;
36
void
print
()
const
;
43
static
NetworkConfig
load_from_xml
(
44
const
boost::property_tree::ptree &xml_data);
51
static
NetworkConfig
load_from_arg
(
52
const
cxxopts::ParseResult &arg_data);
53
};
54
55
}
// CONFIG
56
57
}
// FMM
58
59
#endif //FMM_NETWORK_CONFIG_HPP_
FMM::CONFIG::NetworkConfig::file
std::string file
filename
Definition:
network_config.hpp:24
FMM::CONFIG::NetworkConfig::print
void print() const
Print informaiton.
Definition:
network_config.cpp:5
FMM::CONFIG::NetworkConfig::target
std::string target
target field/column name
Definition:
network_config.hpp:27
FMM::CONFIG::NetworkConfig::id
std::string id
id field/column name
Definition:
network_config.hpp:25
FMM
Fast map matching.
Definition:
geom_algorithm.hpp:17
FMM::CONFIG::NetworkConfig
Network configuration class for reading network from a file.
Definition:
network_config.hpp:23
FMM::CONFIG::NetworkConfig::validate
bool validate() const
Validate the GPS configuration for file existence.
Definition:
network_config.cpp:31
FMM::CONFIG::NetworkConfig::load_from_arg
static NetworkConfig load_from_arg(const cxxopts::ParseResult &arg_data)
Load NetworkConfig from argument parsed data.
Definition:
network_config.cpp:22
FMM::CONFIG::NetworkConfig::load_from_xml
static NetworkConfig load_from_xml(const boost::property_tree::ptree &xml_data)
Load NetworkConfig from xml data.
Definition:
network_config.cpp:13
FMM::CONFIG::NetworkConfig::source
std::string source
source field/column name
Definition:
network_config.hpp:26
Generated by
1.8.17