Library: XSD/Parser
Package: XSDParser
Header: Poco/XSD/Parser/StateMachine.h
class StateMachine. Defines all possible states.
Member Functions: state, stateInfo
typedef std::vector < StateInfo > StateInfos;
the position of the vector equals the int value of the enum State
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.
typedef std::set < std::string > StateSet;
typedef void (XSDContentHandler::* StartMethod)(const std::string &, const std::string &, const std::string &, const CompactAttributes &);
typedef void (XSDContentHandler::* EndMethod)(const std::string &, const std::string &, const std::string &);
ST_INALL = 0
StateMachine();
Creates the StateMachine.
virtual ~StateMachine();
Destroys the StateMachine.
StateMachine::State state(
const std::string & uri,
const std::string & elementName,
StateMachine::State parent
) const;
Returns the state for an xml element name.
const StateMachine::StateInfo & stateInfo(
StateMachine::State aState
) const;