|
feisty meow concerns codebase
2.140
|
#include <command_line.h>


Public Types | |
| enum | parameter_types { VALUE , CHAR_FLAG , STRING_FLAG , BOGUS_ITEM } |
Public Member Functions | |
| command_parameter (parameter_types type=BOGUS_ITEM) | |
| default constructor initializes to mostly blank state. More... | |
| command_parameter (parameter_types type, const basis::astring &text) | |
| constructs a parameter of "type" where the value is "text". More... | |
| command_parameter (const command_parameter &to_copy) | |
| ~command_parameter () | |
| DEFINE_CLASS_NAME ("command_parameter") | |
| command_parameter & | operator= (const command_parameter &to_copy) |
| parameter_types | type () const |
| observes the type of the parameter. More... | |
| void | type (parameter_types new_type) |
| modifies the type of the parameter. More... | |
| const basis::astring & | text () const |
| observes the string contents. More... | |
| void | text (const basis::astring &new_text) |
| modifies the string contents. More... | |
Definition at line 48 of file command_line.h.
| Enumerator | |
|---|---|
| VALUE | |
| CHAR_FLAG | |
| STRING_FLAG | |
| BOGUS_ITEM | |
Definition at line 51 of file command_line.h.
| application::command_parameter::command_parameter | ( | parameter_types | type = BOGUS_ITEM | ) |
default constructor initializes to mostly blank state.
Definition at line 42 of file command_line.cpp.
| application::command_parameter::command_parameter | ( | parameter_types | type, |
| const basis::astring & | text | ||
| ) |
constructs a parameter of "type" where the value is "text".
if the "type" is CHAR_FLAG, then this should be a string of one character. for STRING_FLAG, the length is arbitrary.
Definition at line 45 of file command_line.cpp.
| application::command_parameter::command_parameter | ( | const command_parameter & | to_copy | ) |
Definition at line 48 of file command_line.cpp.
| application::command_parameter::~command_parameter | ( | ) |
Definition at line 52 of file command_line.cpp.
References basis::WHACK().
| application::command_parameter::DEFINE_CLASS_NAME | ( | "command_parameter" | ) |
| command_parameter & application::command_parameter::operator= | ( | const command_parameter & | to_copy | ) |
Definition at line 58 of file command_line.cpp.
| const astring & application::command_parameter::text | ( | ) | const |
observes the string contents.
Definition at line 54 of file command_line.cpp.
Referenced by application::command_line::find(), application::command_line::gather(), application::command_line::get_value(), main(), and application::command_line::text_form().
| void application::command_parameter::text | ( | const basis::astring & | new_text | ) |
modifies the string contents.
Definition at line 56 of file command_line.cpp.
|
inline |
observes the type of the parameter.
Definition at line 69 of file command_line.h.
Referenced by application::command_line::find(), application::command_line::gather(), application::command_line::get_value(), main(), and application::command_line::text_form().
|
inline |
modifies the type of the parameter.
Definition at line 71 of file command_line.h.