// **********************************************************************
//
// 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_OBEventChannelFactory_skel_h__
#define __OB_OBEventChannelFactory_skel_h__

#include <OB/OBEventChannelFactory.h>

#include <OB/CosEventChannelAdmin_skel.h>
#include <OB/OBEventReceiver_skel.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/OBEventChannelFactory:1.0
//
namespace POA_OBEventChannelFactory
{

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

protected:

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/create_channel:1.0
    //
    void _OB_op_create_channel(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/create_channel_with_receiver:1.0
    //
    void _OB_op_create_channel_with_receiver(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/get_channel_by_id:1.0
    //
    void _OB_op_get_channel_by_id(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/get_channels:1.0
    //
    void _OB_op_get_channels(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/shutdown:1.0
    //
    void _OB_op_shutdown(OB::Upcall_ptr);

public:

    EventChannelFactory() { }

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

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

    OBEventChannelFactory::EventChannelFactory_ptr _this();

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

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/create_channel:1.0
    //
    virtual ::CosEventChannelAdmin::EventChannel_ptr create_channel(const char* id)
        throw(OBEventChannelFactory::ChannelAlreadyExists,
              ::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/create_channel_with_receiver:1.0
    //
    virtual ::CosEventChannelAdmin::EventChannel_ptr create_channel_with_receiver(const char* id,
                                                                                  ::OB::EventReceiver_ptr receiver)
        throw(OBEventChannelFactory::ChannelAlreadyExists,
              ::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/get_channel_by_id:1.0
    //
    virtual ::CosEventChannelAdmin::EventChannel_ptr get_channel_by_id(const char* id)
        throw(OBEventChannelFactory::ChannelNotAvailable,
              ::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/get_channels:1.0
    //
    virtual ::OBEventChannelFactory::ChannelIdSeq* get_channels()
        throw(::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/shutdown:1.0
    //
    virtual void shutdown()
        throw(::CORBA::SystemException) = 0;
};

} // End of namespace POA_OBEventChannelFactory

//
// IDL:ooc.com/OBEventChannelFactory:1.0
//
namespace OBDirectStubImpl_OBEventChannelFactory
{

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

protected:

#ifdef HAVE_VCPLUSPLUS_BUGS

    EventChannelFactory() { }

#endif

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

    friend class POA_OBEventChannelFactory::EventChannelFactory;

public:

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/create_channel:1.0
    //
    virtual ::CosEventChannelAdmin::EventChannel_ptr create_channel(const char* id);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/create_channel_with_receiver:1.0
    //
    virtual ::CosEventChannelAdmin::EventChannel_ptr create_channel_with_receiver(const char* id,
                                                                                  ::OB::EventReceiver_ptr receiver);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/get_channel_by_id:1.0
    //
    virtual ::CosEventChannelAdmin::EventChannel_ptr get_channel_by_id(const char* id);

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/get_channels:1.0
    //
    virtual ::OBEventChannelFactory::ChannelIdSeq* get_channels();

    //
    // IDL:ooc.com/OBEventChannelFactory/EventChannelFactory/shutdown:1.0
    //
    virtual void shutdown();
};

} // End of namespace OBDirectStubImpl_OBEventChannelFactory

#endif
