File Information
Library: XSD/Parser
Package: XSDParser
Header: Poco/XSD/Parser/StateMachine.h
Description
class StateMachine. Defines all possible states.
Member Summary
Nested Classes
struct StateInfo
Types
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 &);
Types Aliases
StateInfos
using StateInfos = std::vector < StateInfo >;
the position of the vector equals the int value of the enum State
StateMap
using StateMap = std::map < std::string, StateMachine::State >;
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
using StateSet = std::set < std::string >;
Enumerations
State
ST_INALL = 0
Constructors
StateMachine
StateMachine();
Creates the StateMachine.
Destructor
~StateMachine
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
const StateMachine::StateInfo & stateInfo(
StateMachine::State aState
) const;