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
hdf5togeotiff::Options::getPositionCode
string getPositionCode() const
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:38
hdf5togeotiff::Options::getH5File
string getH5File() const
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:34
hdf5togeotiff::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:42
hdf5togeotiff::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:45
hdf5togeotiff::Options::getMaxChannel
size_t getMaxChannel() const
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:37
hdf5togeotiff
Definition: src/tools/lvr2_hdf5togeotiff/Options.cpp:35
argc
int argc
Definition: tests_high_five_parallel.cpp:27
hdf5togeotiff::Options
A class to parse the program options for the extraction of radiometric data from a HDF5 dataset.
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:24
hdf5togeotiff::operator<<
ostream & operator<<(ostream &os, const Options &o)
Overloaded output operator.
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:53
hdf5togeotiff::Options::getMinChannel
size_t getMinChannel() const
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:36
hdf5togeotiff::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option description.
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:48
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
hdf5togeotiff::Options::getGTIFFFile
string getGTIFFFile() const
Definition: src/tools/lvr2_hdf5togeotiff/Options.hpp:35


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