// **********************************************************************
//
// 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_OBTypedEventChannelFactory_skel_h__
#define __OB_OBTypedEventChannelFactory_skel_h__

#include <OB/OBTypedEventChannelFactory.h>

#include <OB/CosTypedEventChannelAdmin_skel.h>
#include <OB/OBEventChannelFactory_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/OBTypedEventChannelFactory:1.0
//
namespace POA_OBTypedEventChannelFactory
{

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

protected:

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/create_channel:1.0
    //
    void _OB_op_create_channel(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/get_channel_by_id:1.0
    //
    void _OB_op_get_channel_by_id(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/get_channels:1.0
    //
    void _OB_op_get_channels(OB::Upcall_ptr);

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/shutdown:1.0
    //
    void _OB_op_shutdown(OB::Upcall_ptr);

public:

    TypedEventChannelFactory() { }

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

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

    OBTypedEventChannelFactory::TypedEventChannelFactory_ptr _this();

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

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/create_channel:1.0
    //
    virtual ::CosTypedEventChannelAdmin::TypedEventChannel_ptr create_channel(const char* id)
        throw(OBEventChannelFactory::ChannelAlreadyExists,
              ::CORBA::SystemException) = 0;

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/get_channel_by_id:1.0
    //
    virtual ::CosTypedEventChannelAdmin::TypedEventChannel_ptr get_channel_by_id(const char* id)
        throw(OBEventChannelFactory::ChannelNotAvailable,
              ::CORBA::SystemException) = 0;

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

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

} // End of namespace POA_OBTypedEventChannelFactory

//
// IDL:ooc.com/OBTypedEventChannelFactory:1.0
//
namespace OBDirectStubImpl_OBTypedEventChannelFactory
{

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

protected:

#ifdef HAVE_VCPLUSPLUS_BUGS

    TypedEventChannelFactory() { }

#endif

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

    friend class POA_OBTypedEventChannelFactory::TypedEventChannelFactory;

public:

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/create_channel:1.0
    //
    virtual ::CosTypedEventChannelAdmin::TypedEventChannel_ptr create_channel(const char* id);

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/get_channel_by_id:1.0
    //
    virtual ::CosTypedEventChannelAdmin::TypedEventChannel_ptr get_channel_by_id(const char* id);

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

    //
    // IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory/shutdown:1.0
    //
    virtual void shutdown();
};

} // End of namespace OBDirectStubImpl_OBTypedEventChannelFactory

#endif
