textwolf  0.2
Public Types | Public Member Functions | List of all members
textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet > Class Template Reference

Automaton to define XML path expressions and assign types (int values) to them. More...

#include <xmlpathautomatonparse.hpp>

Inheritance diagram for textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >:
textwolf::XMLPathSelectAutomaton< AtmCharSet > textwolf::throws_exception

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
 

Detailed Description

template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
class textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >

Automaton to define XML path expressions and assign types (int values) to them.

Template Parameters
SrcCharSetcharacter set of the automaton definition source
AtmCharSetcharacter set of the token defintions of the automaton

Member Typedef Documentation

template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
typedef ThisAutomaton::PathElement textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::PathElement
template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
typedef TextScanner<CStringIterator,SrcCharSet> textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::SrcScanner
template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
typedef XMLPathSelectAutomatonParser textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::This
template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
typedef XMLPathSelectAutomaton<AtmCharSet> textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::ThisAutomaton

Constructor & Destructor Documentation

template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::XMLPathSelectAutomatonParser ( )
inline

Constructor.

template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
virtual textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::~XMLPathSelectAutomatonParser ( )
inlinevirtual

Member Function Documentation

template<class SrcCharSet = charset::UTF8, class AtmCharSet = charset::UTF8>
int textwolf::XMLPathSelectAutomatonParser< SrcCharSet, AtmCharSet >::addExpression ( int  typeidx,
const char *  esrc,
std::size_t  esrcsize 
)
inline

The documentation for this class was generated from the following file: