src/tools/lvr2_ascii_viewer/Options.hpp
Go to the documentation of this file.
1 
28 #ifndef OPTIONS_H_
29 #define OPTIONS_H_
30 
31 #include <iostream>
32 #include <string>
33 #include <vector>
34 #include <boost/program_options.hpp>
35 
36 using std::cout;
37 using std::endl;
38 using std::string;
39 using std::vector;
40 using std::ostream;
41 
42 
43 namespace ascii_viewer
44 {
45 
46 using namespace boost::program_options;
47 
52 class Options
53 {
54 public:
55 
60  Options(int argc, char** argv);
61  virtual ~Options();
62 
63  string inputFile() const
64  {
65  return (m_variables["inputFile"].as< vector<string> >())[0];
66  }
67 
68 private:
69 
71  variables_map m_variables;
72 
74  options_description m_descr;
75 
77  positional_options_description m_pdescr;
78 
79 };
80 
81 inline ostream& operator<<(ostream& os, const Options& o)
82 {
83  os << "##### ASCII VIEWER settings #####" << endl;
84  os << "\t mesh: " << o.inputFile() << endl;
85 
86  return os;
87 }
88 
89 } // namespace ascii_viewer
90 
91 #endif
options_description m_descr
The internally used option description.
variables_map m_variables
The internally used variable map.
A class to parse the program options for the reconstruction executable.
positional_options_description m_pdescr
The internally used positional option desription.
ostream & operator<<(ostream &os, const Options &o)
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