Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
config/CommandLineOptions.ixx
Go to the documentation of this file.
1// This code was generated by CLI, a command line interface
2// compiler for C++.
3//
4
5namespace cli
6{
7 // unknown_mode
8 //
9 inline unknown_mode::
10 unknown_mode (value v)
11 : v_ (v)
12 {
13 }
14
15 // exception
16 //
17 inline std::ostream&
18 operator<< (std::ostream& os, const exception& e)
19 {
20 e.print (os);
21 return os;
22 }
23
24 // unknown_option
25 //
26 inline unknown_option::
27 unknown_option (const std::string& option)
28 : option_ (option)
29 {
30 }
31
32 inline const std::string& unknown_option::
33 option () const
34 {
35 return option_;
36 }
37
38 // unknown_argument
39 //
41 unknown_argument (const std::string& argument)
42 : argument_ (argument)
43 {
44 }
45
46 inline const std::string& unknown_argument::
47 argument () const
48 {
49 return argument_;
50 }
51
52 // missing_value
53 //
55 missing_value (const std::string& option)
56 : option_ (option)
57 {
58 }
59
60 inline const std::string& missing_value::
61 option () const
62 {
63 return option_;
64 }
65
66 // invalid_value
67 //
69 invalid_value (const std::string& option,
70 const std::string& value)
71 : option_ (option), value_ (value)
72 {
73 }
74
75 inline const std::string& invalid_value::
76 option () const
77 {
78 return option_;
79 }
80
81 inline const std::string& invalid_value::
82 value () const
83 {
84 return value_;
85 }
86
87 // argv_scanner
88 //
89 inline argv_scanner::
90 argv_scanner (int& argc, char** argv, bool erase)
91 : i_ (1), argc_ (argc), argv_ (argv), erase_ (erase)
92 {
93 }
94
95 inline argv_scanner::
96 argv_scanner (int start, int& argc, char** argv, bool erase)
97 : i_ (start), argc_ (argc), argv_ (argv), erase_ (erase)
98 {
99 }
100
101 inline int argv_scanner::
102 end () const
103 {
104 return i_;
105 }
106}
107
108// options
109//
110
111inline const bool& options::
112help () const
113{
114 return this->help_;
115}
116
117inline const bool& options::
118version () const
119{
120 return this->version_;
121}
122
123inline const bool& options::
124config () const
125{
126 return this->config_;
127}
128
129inline const bool& options::
130config_json () const
131{
132 return this->config_json_;
133}
134
135inline const bool& options::
136print_paths () const
137{
138 return this->print_paths_;
139}
140
141inline const bool& options::
142camitk_dir () const
143{
144 return this->camitk_dir_;
145}
146
147inline const bool& options::
148short_version () const
149{
150 return this->short_version_;
151}
152
153inline const bool& options::
154complete_version () const
155{
156 return this->complete_version_;
157}
158
159inline const bool& options::
160time_stamp () const
161{
162 return this->time_stamp_;
163}
164
165inline const bool& options::
166bug_report_info () const
167{
168 return this->bug_report_info_;
169}
170
171inline const std::string& options::
173{
174 return this->check_hotplug_extension_;
175}
176
std::ostream & operator<<(std::ostream &o, Load)
Definition Load.cpp:327
int end() const
Definition actionstatemachine/CommandLineOptions.ixx:106
argv_scanner(int &argc, char **argv, bool erase=false)
Definition actionstatemachine/CommandLineOptions.ixx:94
invalid_value(std::string option, std::string value)
Definition actionstatemachine/CommandLineOptions.ixx:73
const std::string & value() const
Definition actionstatemachine/CommandLineOptions.ixx:86
const std::string & option() const
Definition actionstatemachine/CommandLineOptions.ixx:80
const std::string & option() const
Definition actionstatemachine/CommandLineOptions.ixx:65
missing_value(std::string option)
Definition actionstatemachine/CommandLineOptions.ixx:59
unknown_argument(std::string argument)
Definition actionstatemachine/CommandLineOptions.ixx:45
const std::string & argument() const
Definition actionstatemachine/CommandLineOptions.ixx:51
unknown_mode(value v)
Definition actionstatemachine/CommandLineOptions.ixx:14
const std::string & option() const
Definition actionstatemachine/CommandLineOptions.ixx:37
bool time_stamp_
Definition config/CommandLineOptions.hxx:289
const bool & version() const
Definition actionstatemachine/CommandLineOptions.ixx:122
const std::string & check_hotplug_extension() const
Definition config/CommandLineOptions.ixx:172
std::string check_hotplug_extension_
Definition config/CommandLineOptions.hxx:291
const bool & complete_version() const
Definition config/CommandLineOptions.ixx:154
bool print_paths_
Definition config/CommandLineOptions.hxx:285
const bool & help() const
Definition actionstatemachine/CommandLineOptions.ixx:116
const bool & time_stamp() const
Definition config/CommandLineOptions.ixx:160
const bool & bug_report_info() const
Definition config/CommandLineOptions.ixx:166
bool short_version_
Definition config/CommandLineOptions.hxx:287
bool version_
Definition actionstatemachine/CommandLineOptions.hxx:264
bool config_
Definition config/CommandLineOptions.hxx:283
const bool & config_json() const
Definition config/CommandLineOptions.ixx:130
bool config_json_
Definition config/CommandLineOptions.hxx:284
const bool & config() const
Definition config/CommandLineOptions.ixx:124
const bool & print_paths() const
Definition config/CommandLineOptions.ixx:136
bool complete_version_
Definition config/CommandLineOptions.hxx:288
bool bug_report_info_
Definition config/CommandLineOptions.hxx:290
bool camitk_dir_
Definition config/CommandLineOptions.hxx:286
bool help_
Definition actionstatemachine/CommandLineOptions.hxx:263
const bool & camitk_dir() const
Definition config/CommandLineOptions.ixx:142
const bool & short_version() const
Definition config/CommandLineOptions.ixx:148
Definition actionstatemachine/CommandLineOptions.cxx:15