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_ */
ply_merger::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_plymerger/Options.hpp:79
ply_merger::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_plymerger/Options.hpp:76
ply_merger::Options::outputFile
string outputFile() const
Definition: src/tools/lvr2_plymerger/Options.hpp:71
ply_merger::Options::inputDir
string inputDir() const
Definition: src/tools/lvr2_plymerger/Options.hpp:69
ply_merger
Definition: src/tools/lvr2_plymerger/Options.cpp:37
ply_merger::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_plymerger/Options.hpp:82
ply_merger::operator<<
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
Definition: src/tools/lvr2_plymerger/Options.hpp:88
argc
int argc
Definition: tests_high_five_parallel.cpp:27
ply_merger::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_plymerger/Options.hpp:67
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
ply_merger::Options
A class to parse the program options for the reconstruction executable.
Definition: src/tools/lvr2_plymerger/Options.hpp:59


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 Wed Mar 2 2022 00:37:24