Abstract parser interface. More...
#include <Parser.h>
Public Member Functions | |
virtual | ~AbstractParser () |
Destructor. More... | |
virtual bool | parse (const char *input)=0 |
Parser function interface. More... | |
virtual const int8_t & | index () |
Get matched index of after parsing. More... | |
Protected Member Functions | |
AbstractParser () | |
Constructor. More... | |
Protected Attributes | |
int8_t | m_index |
Abstract parser interface.
|
protected |
Constructor.
The method is protected to disable instantiation.
|
virtual |
Destructor.
|
virtual |
Get matched index of after parsing.
!-1 | Matched. (The value is the index selected from the condition given when instantiating the class.) |
-1 | Parsing failed, so there is no matched index. |
|
pure virtual |
Parser function interface.
[in] | input | String you want to parse. |
Implemented in Utility::HexStringParser, Utility::StringGroupParser, Utility::CharGroupParser, and Utility::NilParser.
|
protected |