9 #ifndef FMM_SRC_CONFIG_RESULT_CONFIG_HPP_
10 #define FMM_SRC_CONFIG_RESULT_CONFIG_HPP_
14 #include "cxxopts/cxxopts.hpp"
15 #include <boost/property_tree/ptree.hpp>
16 #include <boost/property_tree/xml_parser.hpp>
75 static std::set<std::string>
string2set(
const std::string &s);
82 const boost::property_tree::ptree &xml_data);
89 const cxxopts::ParseResult &arg_data);
95 #endif //FMM_SRC_CONFIG_RESULT_CONFIG_HPP_
static ResultConfig load_from_xml(const boost::property_tree::ptree &xml_data)
Load result configuration data from xml file.
bool write_tpath
if true, tpath (the path traversed between each two consecutive observations) will be exported
bool write_ep
if true, ep (emission proability of each point) will be exported
bool validate() const
Check the validation of the configuration.
bool write_spdist
if true, spdist (the distance traversed between each two consecutive points) will be exported
bool write_tp
if true, tp (transition probability) will be exported
OutputConfig output_config
Output fields to export.
bool write_length
if true, length (length of each matched edge) will be exported
std::string file
Output file to write the result.
bool write_mgeom
if true, mgeom (the geometry of the matched path) will be exported
static std::set< std::string > string2set(const std::string &s)
Parse a string separated by , into a set of strings.
bool write_cpath
if true, cpath (a list of edge ID representing the matched path) will be exported
bool write_opath
if true, opath (edge id matched for each point) will be exported
Result Configuration class, defining output file and output fields.
bool write_error
if true, gps error (distance from GPS point to the matched point) will be exported
void print() const
Print the configuration information.
Output configuration class defining the fields exported for map matching.
static ResultConfig load_from_arg(const cxxopts::ParseResult &arg_data)
Load result configuration from argument data.
bool write_pgeom
if true, pgeom (a linestring connecting the matched point) will be exported
bool write_offset
if true, offset (distance to the start point of a matched edge) will be exported