Public Types | |
| enum | hp_what_t { LIST_PROPERTIES, GET_PROPERTY, SET_PROPERTY } |
| An enumeration of the possible actions to perform on an object. More... | |
Public Member Functions | |
| HeyParser (int argc, const char *argv[]) throw (HeyParserException) | |
| Construct a parser that interprets the given command-line arguments. | |
| virtual | ~HeyParser () |
| Deconstruct a parser object. | |
| const char * | who (void) |
| hp_what_t | what (void) |
| void | popProperty (const char *&name_out, const char *&value_out) throw (HeyParserException) |
| Pop a pair from the property stack. | |
| const char * | to (void) throw (HeyParserException) |
Private Member Functions | |
| const char * | consumeArg (void) throw (HeyParserException) |
| Consume an argument from the argument list. | |
| void | nextProperty (const char *&name_out, const char *&value_out) throw (HeyParserException) |
| Find the next name/value pair in the argument list. | |
Private Attributes | |
| int | hp_ArgCount |
| The arguments count. | |
| const char ** | hp_ArgValue |
| The argument values. | |
| hp_what_t | hp_What |
| The "what" value. | |
| int | hp_ArgIndex |
| The current index in the argument list during processing. | |
| stack< struct Pair > | hp_PropertyStack |
| The stack of property pairs. | |
|
|
An enumeration of the possible actions to perform on an object.
|
|
||||||||||||
|
Construct a parser that interprets the given command-line arguments. Most of the parsing will be done here so there are fewer surprises along the way.
|
|
|
Consume an argument from the argument list. This method is for internal use when initially processing the argument list.
|
|
||||||||||||
|
Find the next name/value pair in the argument list. This method differs from popProperty() in that it translates from the argument list to hp_PropertyStack. Whereas popProperty() interacts only with hp_PropertyStack.
|
|
||||||||||||
|
Pop a pair from the property stack.
|
|
|
|
|
|
|
|
|
|
|
|
The "what" value. This will only be set by the constructor when it is initially parsing the arguments. |
1.3.4