src/tools/lvr2_chunking_server/Options.hpp
Go to the documentation of this file.
1 
35 #ifndef OPTIONS_HPP_
36 #define OPTIONS_HPP_
37 
38 #include <boost/program_options.hpp>
39 #include <string>
40 
41 namespace chunking_server
42 {
43 
44 using boost::program_options::options_description;
45 using boost::program_options::positional_options_description;
46 using boost::program_options::variables_map;
47 using std::string;
48 
52 class Options
53 {
54  public:
59  Options(int argc, char** argv);
60  virtual ~Options();
61 
65  bool printUsage() const;
66 
70  string getScanProjectPath() const;
71 
75  string getHdf5FilePath() const;
76 
80  string getConfigFilePath() const;
81 
82 private:
84  variables_map m_variables;
85 
87  options_description m_descr;
88 
90  positional_options_description m_posDescr;
91 };
92 
93 } // namespace chunking server
94 
95 #endif /* OPTIONS_HPP_ */
chunking_server::Options
A class to parse the program options for the chunking server executable.
Definition: src/tools/lvr2_chunking_server/Options.hpp:52
chunking_server
Definition: src/tools/lvr2_chunking_server/Options.cpp:39
chunking_server::Options::printUsage
bool printUsage() const
Prints a usage message to stdout.
Definition: src/tools/lvr2_chunking_server/Options.cpp:61
chunking_server::Options::getScanProjectPath
string getScanProjectPath() const
Returns the scan project file path.
Definition: src/tools/lvr2_chunking_server/Options.cpp:96
chunking_server::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition: src/tools/lvr2_chunking_server/Options.hpp:84
chunking_server::Options::m_descr
options_description m_descr
The internally used option description.
Definition: src/tools/lvr2_chunking_server/Options.hpp:87
chunking_server::Options::getHdf5FilePath
string getHdf5FilePath() const
Returns the HDF5 file path.
Definition: src/tools/lvr2_chunking_server/Options.cpp:101
chunking_server::Options::getConfigFilePath
string getConfigFilePath() const
Returns the config file path.
Definition: src/tools/lvr2_chunking_server/Options.cpp:106
argc
int argc
Definition: tests_high_five_parallel.cpp:27
chunking_server::Options::~Options
virtual ~Options()
Definition: src/tools/lvr2_chunking_server/Options.cpp:111
chunking_server::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition: src/tools/lvr2_chunking_server/Options.cpp:47
argv
char ** argv
Definition: tests_high_five_parallel.cpp:28
chunking_server::Options::m_posDescr
positional_options_description m_posDescr
The internally used positional option description.
Definition: src/tools/lvr2_chunking_server/Options.hpp:90


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