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.
The interface for state IDs.
virtual int operator==(const sStateIDIf_c &other) const =0
Overloaded equality operator, using isEqual.
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 int 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.