src/tools/lvr2_hdf5togeotiff/Options.hpp
Go to the documentation of this file.
1 
2 #ifndef LAS_VEGAS_OPTIONS_HPP
3 #define LAS_VEGAS_OPTIONS_HPP
4 
5 #include <iostream>
6 #include <string>
7 #include <vector>
8 #include <boost/program_options.hpp>
9 
10 using std::ostream;
11 using std::cout;
12 using std::endl;
13 using std::string;
14 using std::vector;
15 
16 namespace hdf5togeotiff
17 {
18 
19  using namespace boost::program_options;
20 
24  class Options {
25  public:
26 
31  Options(int argc, char** argv);
32  virtual ~Options();
33 
34  string getH5File() const { return m_variables["h5"].as<string>(); }
35  string getGTIFFFile() const { return m_variables["gtif"].as<string>(); }
36  size_t getMinChannel() const { return m_variables["min"].as<size_t>(); }
37  size_t getMaxChannel() const { return m_variables["max"].as<size_t>(); }
38  string getPositionCode() const { return m_variables["pos"].as<string>(); }
39 
40  private:
42  variables_map m_variables;
43 
45  options_description m_descr;
46 
48  positional_options_description m_pdescr;
49 
50  };
51 
53  inline ostream& operator<<(ostream& os, const Options &o)
54  {
55  cout << "##### Porgram options: " << endl;
56 
57  return os;
58  }
59 }
60 
61 #endif //LAS_VEGAS_OPTIONS_HPP
variables_map m_variables
The internally used variable map.
positional_options_description m_pdescr
The internally used positional option description.
A class to parse the program options for the extraction of radiometric data from a HDF5 dataset...
ostream & operator<<(ostream &os, const Options &o)
Overloaded output operator.
options_description m_descr
The internally used option description.
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