Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
extensiongenerator/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 //
40 inline unknown_argument::
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 //
54 inline missing_value::
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 //
68 inline invalid_value::
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 std::string& options::
124file () const
125{
126 return this->file_;
127}
128
129inline const std::string& options::
130directory () const
131{
132 return this->directory_;
133}
134
std::ostream & operator<<(std::ostream &o, Load)
Definition Load.cpp:327
unknown_mode(value v)
Definition actionstatemachine/CommandLineOptions.ixx:14
const bool & version() const
Definition actionstatemachine/CommandLineOptions.ixx:122
std::string file_
Definition actionstatemachine/CommandLineOptions.hxx:265
const bool & help() const
Definition actionstatemachine/CommandLineOptions.ixx:116
bool version_
Definition actionstatemachine/CommandLineOptions.hxx:264
const std::string & file() const
Definition actionstatemachine/CommandLineOptions.ixx:128
const std::string & directory() const
Definition cepgenerator/CommandLineOptions.ixx:132
std::string directory_
Definition cepgenerator/CommandLineOptions.hxx:263
bool help_
Definition actionstatemachine/CommandLineOptions.hxx:263
Definition actionstatemachine/CommandLineOptions.cxx:15