DUNE: Uniform Navigational Environment
2016.09.0
|
Implementation of a simple FTP command parser.
This class breaks lines into commands and splits the command into code and parameters.
Public Types | |
enum | Result { RES_NONE, RES_CMD, RES_ERR_SYN } |
Public Member Functions | |
CommandParser (void) | |
void | clear (void) |
const std::string & | getCode (void) const |
const std::string & | getParameters (void) const |
Result | parse (char byte) |
|
inline |
Default constructor, initializes parser to a sane state.
References clear().
|
inline |
Reset the parser's internal state.
Referenced by CommandParser(), and parse().
|
inline |
Retrieve the code of the last parsed command.
|
inline |
Retrieve the parameters of the last parsed command.
|
inline |