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_ */
scanproject_parser::Options::getOutputDir
string getOutputDir() const
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:69
scanproject_parser::Options::getInputDir
string getInputDir() const
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:68
scanproject_parser::operator<<
ostream & operator<<(ostream &os, const Options &o)
Overlaoeded outpur operator.
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:84
scanproject_parser
Definition: src/tools/lvr2_scanproject_parser/Options.cpp:37
scanproject_parser::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:80
scanproject_parser::Options
A class to parse the program options for the reconstruction executable.
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:58
argc
int argc
Definition: tests_high_five_parallel.cpp:27
scanproject_parser::Options::getOutputFile
string getOutputFile() const
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:70
scanproject_parser::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:77
scanproject_parser::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_scanproject_parser/Options.hpp:74
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28


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