|
textwolf
0.2
|
Automaton to define XML path expressions and assign types (int values) to them. More...
#include <xmlpathautomaton.hpp>
Classes | |
| class | Core |
| Core of an automaton state definition that is used during XML processing. More... | |
| class | Mask |
| Mask to query for element types, if they match or not. More... | |
| class | PathElement |
| Defines one node in the XML Path element tree in the construction phase. More... | |
| class | Scope |
| Tag scope definition. More... | |
| class | State |
| State of an automaton in its definition. More... | |
| class | Token |
| Active or passive but still valid token of the XML processing (this is a trigger waiting to match) More... | |
Public Types | |
| enum | Operation { Content, OpenTag, CloseTag, Attribute, ThisAttributeValue, AttributeValue, ContentStart } |
| Enumeration of operation types in the automaton definition. More... | |
| typedef CharSet_ | 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 | |
| XMLPathSelectAutomaton () | |
| Constructor. More... | |
| virtual | ~XMLPathSelectAutomaton () |
| std::string | tostring () const |
| Returns the content of the automaton as pretty printed string for debug output. More... | |
| template<class Buffer > | |
| 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... | |
Static Public Member Functions | |
| static const char * | operationName (Operation op) |
| Get the name of the operation as string. More... | |
Public Attributes | |
| std::vector< State > | states |
Automaton to define XML path expressions and assign types (int values) to them.
| CharSet_ | character set of the token defintions of the automaton |
| typedef CharSet_ textwolf::XMLPathSelectAutomaton< CharSet_ >::CharSet |
| typedef int textwolf::XMLPathSelectAutomaton< CharSet_ >::Hash |
| typedef XMLPathSelectAutomaton<CharSet> textwolf::XMLPathSelectAutomaton< CharSet_ >::ThisXMLPathSelectAutomaton |
| enum textwolf::XMLPathSelectAutomaton::Operation |
|
inline |
Constructor.
|
inlinevirtual |
|
inline |
Get the emmitted results for a successor state that match to an element of a type.
| Buffer | buffer type for the result (back insertion sequence) |
| [in] | stateidx | state to check |
| [in] | e | follow element type to check |
| [out] | buf | where to append the result to |
|
inlinestatic |
Get the name of the operation as string.
|
inline |
Get automaton root element to start an XML path definition.
|
inline |
Returns the content of the automaton as pretty printed string for debug output.
| std::vector<State> textwolf::XMLPathSelectAutomaton< CharSet_ >::states |
1.8.6