Poco::XSD::Parser

class StateMachine

Library: XSD/Parser
Package: XSDParser
Header: Poco/XSD/Parser/StateMachine.h

Description

class StateMachine. Defines all possible states.

Member Summary

Member Functions: state, stateInfo

Nested Classes

struct StateInfo

 more...

Types

StateInfos

typedef std::vector < StateInfo > StateInfos;

the position of the vector equals the int value of the enum State

StateMap

typedef std::map < std::string, StateMachine::State > StateMap;

Maps an element name to the assigned State. Due to performance reasons we define the concatenation of namespace URI and localname of the xsd element as the key.

StateSet

typedef std::set < std::string > StateSet;

void

typedef void (XSDContentHandler::* StartMethod)(const std::string &, const std::string &, const std::string &, const CompactAttributes &);

void

typedef void (XSDContentHandler::* EndMethod)(const std::string &, const std::string &, const std::string &);

Enumerations

State

ST_INALL = 0

ST_INANNOTATION

ST_INANY

ST_INANYATTRIBUTE

ST_INAPPINFO

ST_INATTRIBUTE

ST_INATTRIBUTEGROUP

ST_INCHOICE

ST_INCOMPLEXTYPE

ST_INDOCUMENT

ST_INDOCUMENTATION

ST_INELEMENT

ST_INSIMPLEEXTENSION

ST_INCOMPLEXEXTENSION

ST_INFIELD

ST_INGROUP

ST_INIMPORT

ST_ININCLUDE

ST_INKEY

ST_INKEYREF

ST_INLIST

ST_INNOTATION

ST_INREDEFINE

ST_INSIMPLETYPERESTRICTION

ST_INSIMPLECONTENTRESTRICTION

ST_INCOMPLEXRESTRICTION

ST_INSCHEMA

ST_INSELECTOR

ST_INSEQUENCE

ST_INUNION

ST_INUNIQUE

ST_INENUMERATION

ST_INFRACTIONDIGITS

ST_INLENGTH

ST_INMAXEXCLUSIVE

ST_INMAXINCLUSIVE

ST_INMAXLENGTH

ST_INMINEXCLUSIVE

ST_INMININCLUSIVE

ST_INMINLENGTH

ST_INPATTERN

ST_INTOTALDIGITS

ST_INUNINITIALIZED

ST_INWHITESPACE

ST_INMETAANY

ST_INDEFINITIONS

ST_INTYPES

ST_INMESSAGE

ST_INPART

ST_INPORTTYPE

ST_INOPERATION

ST_INWSDLDOCUMENTATION

ST_ININPUT

ST_INOUTPUT

ST_INFAULT

ST_INBINDING

ST_INSOAPBINDING

ST_INSOAPOPERATION

ST_INSOAPHEADER

ST_INSOAPHEADERFAULT

ST_INSOAPBODY

ST_INSOAPFAULT

ST_INSOAP12BINDING

ST_INSOAP12OPERATION

ST_INSOAP12HEADER

ST_INSOAP12HEADERFAULT

ST_INSOAP12BODY

ST_INSOAP12FAULT

ST_INSERVICE

ST_INPORT

ST_INSOAPADDRESS

ST_INCOMPLEXCONTENT

ST_INSIMPLECONTENT

ST_INSIMPLETYPE

Constructors

StateMachine

StateMachine();

Creates the StateMachine.

Destructor

~StateMachine virtual

virtual ~StateMachine();

Destroys the StateMachine.

Member Functions

state

StateMachine::State state(
    const std::string & uri,
    const std::string & elementName,
    StateMachine::State parent
) const;

Returns the state for an xml element name.

stateInfo inline

const StateMachine::StateInfo & stateInfo(
    StateMachine::State aState
) const;