src/tools/lvr2_ascii_viewer/Options.cpp
Go to the documentation of this file.
1 
28 #include "Options.hpp"
29 
30 namespace ascii_viewer
31 {
32 
33 Options::Options(int argc, char** argv) : m_descr("Supported options")
34 {
35 
36  // Create option descriptions
37 
38  m_descr.add_options()
39  ("help", "Produce help message")
40  ("inputFile", value< vector<string> >(), "Input file name. ")
41  ;
42 
43  m_pdescr.add("inputFile", -1);
44 
45  // Parse command line and generate variables map
46  store(command_line_parser(argc, argv).options(m_descr).positional(m_pdescr).run(), m_variables);
47  notify(m_variables);
48 
49  if(m_variables.count("help"))
50  {
51  ::std::cout << m_descr << ::std::endl;
52  exit(-1);
53  }
54 }
55 
57 {
58  // TODO Auto-generated destructor stub
59 }
60 
61 } // namespace ascii_viewer
const kaboom::Options * options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
options_description m_descr
The internally used option description.
variables_map m_variables
The internally used variable map.
positional_options_description m_pdescr
The internally used positional option desription.
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