textwolf
0.2
|
Automaton to define XML path expressions and assign types (int values) to them. More...
#include <xmlpathautomatonparse.hpp>
Public Types | |
typedef XMLPathSelectAutomaton < AtmCharSet > | ThisAutomaton |
typedef ThisAutomaton::PathElement | PathElement |
typedef XMLPathSelectAutomatonParser | This |
typedef TextScanner < CStringIterator, SrcCharSet > | SrcScanner |
Public Types inherited from textwolf::XMLPathSelectAutomaton< AtmCharSet > | |
enum | Operation |
Enumeration of operation types in the automaton definition. More... | |
typedef AtmCharSet | CharSet |
typedef int | Hash |
typedef XMLPathSelectAutomaton < CharSet > | ThisXMLPathSelectAutomaton |
Public Types inherited from textwolf::throws_exception | |
enum | Cause { Unknown, DimOutOfRange, StateNumbersNotAscending, InvalidParamState, InvalidParamChar, DuplicateStateTransition, InvalidState, IllegalParam, IllegalAttributeName, OutOfMem, ArrayBoundsReadWrite, NotAllowedOperation, FileReadError, IllegalXmlHeader, InvalidTagOffset, CorruptTagStack, CodePageIndexNotSupported } |
Enumeration of error cases. More... | |
Public Member Functions | |
XMLPathSelectAutomatonParser () | |
Constructor. More... | |
virtual | ~XMLPathSelectAutomatonParser () |
int | addExpression (int typeidx, const char *esrc, std::size_t esrcsize) |
Public Member Functions inherited from textwolf::XMLPathSelectAutomaton< AtmCharSet > | |
XMLPathSelectAutomaton () | |
Constructor. More... | |
virtual | ~XMLPathSelectAutomaton () |
std::string | tostring () const |
Returns the content of the automaton as pretty printed string for debug output. More... | |
void | getEmmitedTokens (unsigned int stateidx, XMLScannerBase::ElementType e, Buffer &buf) const |
Get the emmitted results for a successor state that match to an element of a type. More... | |
PathElement | operator* () |
Get automaton root element to start an XML path definition. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from textwolf::XMLPathSelectAutomaton< AtmCharSet > | |
static const char * | operationName (Operation op) |
Get the name of the operation as string. More... | |
Public Attributes inherited from textwolf::XMLPathSelectAutomaton< AtmCharSet > | |
std::vector< State > | states |
Automaton to define XML path expressions and assign types (int values) to them.
SrcCharSet | character set of the automaton definition source |
AtmCharSet | character set of the token defintions of the automaton |
typedef ThisAutomaton::PathElement textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::PathElement |
typedef TextScanner<CStringIterator,SrcCharSet> textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::SrcScanner |
typedef XMLPathSelectAutomatonParser textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::This |
typedef XMLPathSelectAutomaton<AtmCharSet> textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::ThisAutomaton |
|
inline |
Constructor.
|
inlinevirtual |
|
inline |