src/tools/lvr2_hdf5_builder/Options.cpp
Go to the documentation of this file.
1 
28  /*
29  * Options.cpp
30  *
31  * Created on: Nov 21, 2010
32  * Author: Thomas Wiemann
33  */
34 
35 #include "Options.hpp"
36 
37 namespace hdf5tool
38 {
39 
40 Options::Options(int argc, char** argv) : m_descr("Supported options")
41 {
42 
43  // Create option descriptions
44 
45  m_descr.add_options()
46  ("help", "Produce help message")
47  ("dataDir", value<string>()->default_value("./"), "Directory with hyperspectral data.")
48  ("nch, n", value<int>()->default_value(150), "Number of spectral PNGs in image folder.")
49  ("hsp_chunk_0", value<size_t>()->default_value(50), "Dim 0 of HSP image chunks.")
50  ("hsp_chunk_1", value<size_t>()->default_value(50), "Dim 1 of HSP image chunks.")
51  ("hsp_chunk_2", value<size_t>()->default_value(50), "Dim 2 of HSP image chunks.")
52  ("addAnnotations", value<int>()->default_value(1), "Add spectral annotation channels");
53 
54 
55  // Parse command line and generate variables map
56  store(command_line_parser(argc, argv).options(m_descr).positional(m_pdescr).run(), m_variables);
57  notify(m_variables);
58 
59  if(m_variables.count("help")) {
60  ::std::cout<< m_descr << ::std::endl;
61  exit(-1);
62  }
63 
64 
65 }
66 
68  // TODO Auto-generated destructor stub
69 }
70 
71 } // namespace reconstruct
Options.hpp
hdf5tool::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition: src/tools/lvr2_hdf5_builder/Options.cpp:40
hdf5tool::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_hdf5_builder/Options.hpp:80
options
const kaboom::Options * options
Definition: src/tools/lvr2_kaboom/Main.cpp:45
hdf5tool::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition: src/tools/lvr2_hdf5_builder/Options.hpp:86
hdf5tool::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_hdf5_builder/Options.hpp:83
hdf5tool::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_hdf5_builder/Options.cpp:67
argc
int argc
Definition: tests_high_five_parallel.cpp:27
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
hdf5tool
Definition: src/tools/lvr2_hdf5_builder/Options.cpp:37


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