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