#ifndef _H_SM_DIALOG_INVITE_SM
#define _H_SM_DIALOG_INVITE_SM

/*
 * ex: set ro:
 * DO NOT EDIT.
 * generated by smc (http://smc.sourceforge.net/)
 * from file : sm_dialog_invite.sm
 */


#define SMC_USES_IOSTREAMS

#define SMC_NO_EXCEPTIONS

#include <statemap.h>

namespace dgo
{
    // Forward declarations.
    class map_dialog_invite;
    class map_dialog_invite_Initialized;
    class map_dialog_invite_Default;
    class sip_dialog_inviteState;
    class sip_dialog_inviteContext;
    class sip_dialog_invite;

    class sip_dialog_inviteState :
        public statemap::State
    {
    public:

        sip_dialog_inviteState(const char *name, int stateId)
        : statemap::State(name, stateId)
        {};

        virtual void Entry(sip_dialog_inviteContext&) {};
        virtual void Exit(sip_dialog_inviteContext&) {};


    protected:

        virtual void Default(sip_dialog_inviteContext& context);
    };

    class map_dialog_invite
    {
    public:

        static map_dialog_invite_Initialized Initialized;
    };

    class map_dialog_invite_Default :
        public sip_dialog_inviteState
    {
    public:

        map_dialog_invite_Default(const char *name, int stateId)
        : sip_dialog_inviteState(name, stateId)
        {};

    };

    class map_dialog_invite_Initialized :
        public map_dialog_invite_Default
    {
    public:
        map_dialog_invite_Initialized(const char *name, int stateId)
        : map_dialog_invite_Default(name, stateId)
        {};

    };

    class sip_dialog_inviteContext :
        public statemap::FSMContext
    {
    public:

        sip_dialog_inviteContext(sip_dialog_invite& owner)
        : FSMContext(map_dialog_invite::Initialized),
          _owner(owner)
        {};

        sip_dialog_inviteContext(sip_dialog_invite& owner, const statemap::State& state)
        : FSMContext(state),
          _owner(owner)
        {};

        virtual void enterStartState()
        {
            getState().Entry(*this);
            return;
        }

        sip_dialog_invite& getOwner() const
        {
            return (_owner);
        };

        sip_dialog_inviteState& getState() const
        {
            if (_state == NULL)
            {
                assert(1 == 0);
            }

            return (dynamic_cast<sip_dialog_inviteState&>(*_state));
        };

    private:

        sip_dialog_invite& _owner;
    };
}


/*
 * Local variables:
 *  buffer-read-only: t
 * End:
 */

#endif // _H_SM_DIALOG_INVITE_SM
