src/tools/lvr2_scanproject_parser/Options.hpp
Go to the documentation of this file.
1 
28 /*
29  * Options.h
30  *
31  * Created on: Aug 23 2012
32  * Author: Thomas Wiemann
33  */
34 
35 #ifndef OPTIONS_H_
36 #define OPTIONS_H_
37 
38 #include <boost/program_options.hpp>
39 #include <iostream>
40 #include <string>
41 #include <vector>
42 
43 using std::cout;
44 using std::endl;
45 using std::ostream;
46 using std::string;
47 using std::vector;
48 
49 namespace scanproject_parser
50 {
51 
52 using namespace boost::program_options;
53 
58 class Options
59 {
60  public:
65  Options(int argc, char** argv);
66  virtual ~Options();
67 
68  string getInputDir() const { return m_variables["inputDir"].as<string>(); }
69  string getOutputDir() const { return m_variables["outputDir"].as<string>(); }
70  string getOutputFile() const { return m_variables["outputFile"].as<string>(); }
71 
72  private:
74  variables_map m_variables;
75 
77  options_description m_descr;
78 
80  positional_options_description m_pdescr;
81 };
82 
84 inline ostream& operator<<(ostream& os, const Options& o)
85 {
86  cout << "##### Program options: " << endl;
87  // cout << "##### Data directory \t\t: " << o.getDataDir() << endl;
88 
89  return os;
90 }
91 
92 } // namespace hdf5tool2
93 
94 #endif /* OPTIONS_H_ */
variables_map m_variables
The internally used variable map.
positional_options_description m_pdescr
The internally used positional option desription.
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
options_description m_descr
The internally used option description.
A class to parse the program options for the reconstruction executable.
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