Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
testactions/CommandLineOptions.ixx
Go to the documentation of this file.
1#include <utility>
2
3// This code was generated by CLI, a command line interface
4// compiler for C++.
5//
6
7namespace cli
8{
9 // unknown_mode
10 //
11 inline unknown_mode::
12 unknown_mode (value v)
13 : v_ (v)
14 {
15 }
16
17 // exception
18 //
19 inline std::ostream&
20 operator<< (std::ostream& os, const exception& e)
21 {
22 e.print (os);
23 return os;
24 }
25
26 // unknown_option
27 //
28 inline unknown_option::
29 unknown_option (std::string option)
30 : option_ (std::move(option))
31 {
32 }
33
34 inline const std::string& unknown_option::
35 option () const
36 {
37 return option_;
38 }
39
40 // unknown_argument
41 //
42 inline unknown_argument::
43 unknown_argument (std::string argument)
44 : argument_ (std::move(argument))
45 {
46 }
47
48 inline const std::string& unknown_argument::
49 argument () const
50 {
51 return argument_;
52 }
53
54 // missing_value
55 //
56 inline missing_value::
57 missing_value (std::string option)
58 : option_ (std::move(option))
59 {
60 }
61
62 inline const std::string& missing_value::
63 option () const
64 {
65 return option_;
66 }
67
68 // invalid_value
69 //
70 inline invalid_value::
71 invalid_value (std::string option,
72 std::string value)
73 : option_ (std::move(option)), value_ (std::move(value))
74 {
75 }
76
77 inline const std::string& invalid_value::
78 option () const
79 {
80 return option_;
81 }
82
83 inline const std::string& invalid_value::
84 value () const
85 {
86 return value_;
87 }
88
89 // argv_scanner
90 //
91 inline argv_scanner::
92 argv_scanner (int& argc, char** argv, bool erase)
93 : i_ (1), argc_ (argc), argv_ (argv), erase_ (erase)
94 {
95 }
96
97 inline argv_scanner::
98 argv_scanner (int start, int& argc, char** argv, bool erase)
99 : i_ (start), argc_ (argc), argv_ (argv), erase_ (erase)
100 {
101 }
102
103 inline int argv_scanner::
104 end () const
105 {
106 return i_;
107 }
108}
109
110// options
111//
112
113inline const bool& options::
114help () const
115{
116 return this->help_;
117}
118
119inline const std::string& options::
120action () const
121{
122 return this->action_;
123}
124
125inline const std::string& options::
126input () const
127{
128 return this->input_;
129}
130
131inline const std::string& options::
132component () const
133{
134 return this->component_;
135}
136
std::ostream & operator<<(std::ostream &o, Load)
Definition Load.cpp:327
unknown_mode(value v)
Definition actionstatemachine/CommandLineOptions.ixx:14
std::string action_
Definition testactions/CommandLineOptions.hxx:261
const std::string & action() const
Definition testactions/CommandLineOptions.ixx:120
const bool & help() const
Definition actionstatemachine/CommandLineOptions.ixx:116
std::string component_
Definition testactions/CommandLineOptions.hxx:263
std::string input_
Definition testactions/CommandLineOptions.hxx:262
const std::string & component() const
Definition testactions/CommandLineOptions.ixx:132
bool help_
Definition actionstatemachine/CommandLineOptions.hxx:263
const std::string & input() const
Definition testactions/CommandLineOptions.ixx:126
Definition actionstatemachine/CommandLineOptions.cxx:15
STL namespace.