21 virtual const char *
name()
const = 0;
22 virtual unsigned int number()
const = 0;
The interface for state factories.
virtual void dispose(sStateIf_c *&id)=0
Clears out the pointer to a state.
virtual sStateIf_c * build(sStateIDIf_c const &id)=0
Returns a new state with a given state ID.
The interface for state ID checkers.
virtual bool isNormalID(const sStateIDIf_c &id) const =0
Returns whether a state ID is normal.
A default implementation of a state ID checker.
virtual bool isNormalID(const sStateIDIf_c &) const
Returns whether a state ID is normal.
The interface for state IDs.
virtual bool isEqual(const sStateIDIf_c &other) const =0
Returns whether both states have the same number.
virtual bool isSameName(const char *name) const =0
Returns whether this state ID is called name.
virtual const char * name() const =0
Returns the name of this state ID.
virtual unsigned int number() const =0
Returns the number of this state ID.
virtual bool isNull() const =0
Returns whether this is a null state.
virtual bool operator==(const sStateIDIf_c &other) const =0
Overloaded equality operator, using isEqual.
virtual bool operator!=(const sStateIDIf_c &other) const =0
Overloaded inequality operator, using isEqual.
The interface for a state holder.
virtual const void execute()=0
Executes the state.
virtual const void initialize()=0
Initializes the state.
virtual const void finalize()=0
Prepares the state for termination.
The interface for state managers.
virtual const sStateIDIf_c * getStateID() const =0
Gets the current state ID.
virtual void executeState()=0
Executes the current state.
virtual sStateIf_c * getState() const =0
Gets the state holder.
virtual const sStateIDIf_c * getOldStateID() const =0
Gets the previous state ID.
virtual const sStateIDIf_c * getNewStateID() const =0
Gets the next state ID.
virtual void initializeState()=0
Initializes the current state.
virtual void refreshState()=0
Marks the current state to be executed again.
virtual void finalizeState()=0
Prepares the current state for termination.
virtual void changeState(const sStateIDIf_c &newStateID)=0
Transitions to a new state ID.