49 #define OPT(_name, _shortcut)   (string(_name).append(",").append(_shortcut)).c_str()    50         using namespace boost::program_options;
    57                 "specifies a config file which will be loaded at program start.  Absolute and relative paths are possible. Additionally we search in " SYSCONFDIR 
".")
    62             (
OPT(
opt::logfile, 
"l"), value<string>()->default_value(
"alacarte_%N.log"),                                     
"specifies the logfile")
    66                 "Specifies weather the parser should not ignore unknown entities.")
    92         shared_ptr<Importer> importer = boost::make_shared<Importer>(
config);
    94         shared_ptr<Geodata> geodata;
    97             geodata = importer->importXML();
   102             LOG_SEV(importer_log, error) << 
"Error:";
   117 int main(
int argc, 
char** argv)
   121     return app.
start(argc, argv);
 boost::program_options::positional_options_description pos_desc
 
static const char * path_to_geodata
Option to get the filename to save geodata (type: string) 
 
static const char * check_xml_entities
Check all xml entities. 
 
#define OPT(_name, _shortcut)
 
static const char * max_lat
maximum node latitude to include into imported data 
 
static const char * min_lat
minimum node latitude to include into imported data 
 
static const char * path_to_osmdata
Option to get the path to osm xml file (type: string) 
 
virtual bool startupDiagnostic(const shared_ptr< Configuration > &config)
 
#define LOG_SEV(log, lvl)
 
bool diagnosticCheckFile(const shared_ptr< Configuration > &config, const string &key)
 
boost::program_options::options_description config_desc
 
static const char * min_lon
minimum node longitude to include into imported data 
 
This file is part of alaCarte. 
 
#define DEFAULT_CONFIG_NAME
 
boost::program_options::options_description cmd_desc
 
static const char * config
Option to get the configuration filename (type: string) 
 
static const char * max_lon
maximum node longitude to include into imported data 
 
static const char * help
Use Configuration::has to check weather the user wanted help. 
 
virtual void onRun(const shared_ptr< Configuration > &config)
Contains the main functionality for the importer. 
 
AlacarteImporterApp()
Inits the Configuration descriptions. 
 
int start(int argc, char **argv)
Starts the aplication with or without Exceptionhandling. 
 
static const char * logfile
Option to get the filename of the log (type: string)