src
tools
lvr2_ascii_viewer
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
56
Options::~Options
()
57
{
58
// TODO Auto-generated destructor stub
59
}
60
61
}
// namespace ascii_viewer
ascii_viewer::Options::m_pdescr
positional_options_description m_pdescr
The internally used positional option desription.
Definition:
src/tools/lvr2_ascii_viewer/Options.hpp:77
ascii_viewer
Definition:
src/tools/lvr2_ascii_viewer/Options.cpp:30
ascii_viewer::Options::m_descr
options_description m_descr
The internally used option description.
Definition:
src/tools/lvr2_ascii_viewer/Options.hpp:74
ascii_viewer::Options::~Options
virtual ~Options()
Definition:
src/tools/lvr2_ascii_viewer/Options.cpp:56
options
const kaboom::Options * options
Definition:
src/tools/lvr2_kaboom/Main.cpp:45
Options.hpp
argc
int argc
Definition:
tests_high_five_parallel.cpp:27
ascii_viewer::Options::Options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
Definition:
src/tools/lvr2_ascii_viewer/Options.cpp:33
ascii_viewer::Options::m_variables
variables_map m_variables
The internally used variable map.
Definition:
src/tools/lvr2_ascii_viewer/Options.hpp:71
argv
char ** argv
Definition:
tests_high_five_parallel.cpp:28
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