// **********************************************************************
//
// Generated by the ORBacus IDL-to-C++ Translator
//
// Copyright (c) 2003
// IONA Technologies, Inc.
// Waltham, MA, USA
//
// All Rights Reserved
//
// **********************************************************************

// Version: 4.1.3

#ifndef __OB_OBEventReceiver_skel_h__
#define __OB_OBEventReceiver_skel_h__

#include <OB/OBEventReceiver.h>

#ifndef OB_EVENT_IMPORT
#   ifdef OB_DLL
#      define OB_EVENT_IMPORT __declspec(dllimport)
#   else
#      define OB_EVENT_IMPORT /**/
#   endif
#endif


#ifndef OB_INTEGER_VERSION
#   error No ORBacus version defined! Is <OB/CORBA.h> included?
#endif

#ifndef OB_NO_VERSION_CHECK
#   if (OB_INTEGER_VERSION != 4010300L)
#       error ORBacus version mismatch!
#   endif
#endif

//
// IDL:ooc.com/OB:1.0
//
namespace POA_OB
{

//
// IDL:ooc.com/OB/EventReceiver:1.0
//
class EventReceiver : virtual public PortableServer::ServantBase
{
    EventReceiver(const EventReceiver&);
    void operator=(const EventReceiver&);

protected:

    //
    // IDL:ooc.com/OB/EventReceiver/receive:1.0
    //
    void _OB_op_receive(OB::Upcall_ptr);

public:

    EventReceiver() { }

    virtual ::CORBA::Boolean _is_a(const char*)
        throw(::CORBA::SystemException);

    virtual ::CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
                                                     PortableServer::POA_ptr);

    OB::EventReceiver_ptr _this();

    virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
                                                            const PortableServer::ObjectId&);
    virtual void _OB_dispatch(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OB/EventReceiver/receive:1.0
    //
    virtual ::CORBA::Boolean receive(const ::CORBA::Any& event)
        throw(::CORBA::SystemException) = 0;
};

} // End of namespace POA_OB

//
// IDL:ooc.com/OB:1.0
//
namespace OBDirectStubImpl_OB
{

//
// IDL:ooc.com/OB/EventReceiver:1.0
//
class EventReceiver : virtual public OBStubImpl_OB::EventReceiver,
                      virtual public OB::DirectStubImpl
{
    EventReceiver(const EventReceiver&);
    void operator=(const EventReceiver&);

protected:

#ifdef HAVE_VCPLUSPLUS_BUGS

    EventReceiver() { }

#endif

    EventReceiver(PortableServer::POA_ptr,
                  const PortableServer::ObjectId&,
                  PortableServer::ServantBase*);

    friend class POA_OB::EventReceiver;

public:

    //
    // IDL:ooc.com/OB/EventReceiver/receive:1.0
    //
    virtual ::CORBA::Boolean receive(const ::CORBA::Any& event);
};

} // End of namespace OBDirectStubImpl_OB

#endif
