src/tools/lvr2_riegl_project_converter/Options.hpp
Go to the documentation of this file.
1 
28 #include <string>
29 
30 #include <boost/program_options.hpp>
31 
32 namespace po = boost::program_options;
33 
34 class Options {
35 
36  private:
37  po::variables_map vm;
38  po::options_description desc;
39  po::positional_options_description pod;
40 
41  public:
42  Options();
43 
44  bool parse(int argc, char **argv);
45 
46  std::string getOutputDir() {
47  return vm["out"].as<std::string>();
48  }
49 
50  std::string getOutputFormat() {
51  return vm["outformat"].as<std::string>();
52  }
53 
54  std::string getInputDir() {
55  return vm["input"].as<std::string>();
56  }
57 
58  std::string getInputFormat() {
59  return vm["inputformat"].as<std::string>();
60  }
61 
62  bool force_overwrite() {
63  return vm.count("force") != 0;
64  }
65 
66  unsigned int getEndscan() {
67  return vm["end"].as<unsigned int>();
68  }
69 
70  unsigned int getStartscan() {
71  return vm["start"].as<unsigned int>();
72  }
73 
74  unsigned int getReductionFactor() {
75  return vm["reduction"].as<unsigned int>();
76  }
77 
78 
79 };
bool parse(int argc, char **argv)
po::positional_options_description pod
char ** argv


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:08