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
ascii_viewer::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_ascii_viewer/Options.hpp:77
ascii_viewer
Definition: src/tools/lvr2_ascii_viewer/Options.cpp:30
ascii_viewer::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_ascii_viewer/Options.hpp:74
ascii_viewer::Options
A class to parse the program options for the reconstruction executable.
Definition: src/tools/lvr2_ascii_viewer/Options.hpp:52
ascii_viewer::Options::inputFile
string inputFile() const
Definition: src/tools/lvr2_ascii_viewer/Options.hpp:63
argc
int argc
Definition: tests_high_five_parallel.cpp:27
ascii_viewer::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_ascii_viewer/Options.hpp:71
ascii_viewer::operator<<
ostream & operator<<(ostream &os, const Options &o)
Definition: src/tools/lvr2_ascii_viewer/Options.hpp:81
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