22#include <boost/algorithm/string/replace.hpp>
23#include <boost/format.hpp>
24#include <boost/program_options.hpp>
35namespace po = boost::program_options;
45 void HelpText(ostream& out) { out <<
"Helper for parsing XML files"; }
53 "format", po::value<string>(),
"output format [XML TXT]")(
54 "level", po::value<votca::Index>(),
"output from this level ");
76 map<string, PropertyIOManipulator*> mformat_;
77 mformat_[
"XML"] = &
XML;
78 mformat_[
"TXT"] = &
TXT;
79 mformat_[
"HLP"] = &
HLP;
82 if (mformat_.find(format) != mformat_.end()) {
89 cout <<
"format " << format <<
" not supported \n";
92 }
catch (std::exception& error) {
93 cerr <<
"an error occurred:\n" << error.what() << endl;
103int main(
int argc,
char** argv) {
105 return vp.
Exec(argc, argv);
void Run()
Main body of application.
void HelpText(ostream &out)
help text of application without version information
bool EvaluateOptions()
Process command line options.
string ProgramName()
program name
void Initialize()
Initialize application data.
int main(int argc, char **argv)