// **********************************************************************
//
// 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_h__
#define __OB_OBTypedEventChannelFactory_h__

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


#include <OB/CosTypedEventChannelAdmin.h>
#include <OB/OBEventChannelFactory.h>

#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

namespace OBTypedEventChannelFactory
{

class TypedEventChannelFactory;
typedef TypedEventChannelFactory* TypedEventChannelFactory_ptr;
typedef TypedEventChannelFactory* TypedEventChannelFactoryRef;

OB_EVENT_IMPORT extern OB::TypeCodeConst _tc_TypedEventChannelFactory;

} // End of namespace OBTypedEventChannelFactory

void OBDuplicate(OBTypedEventChannelFactory::TypedEventChannelFactory_ptr);
void OBRelease(OBTypedEventChannelFactory::TypedEventChannelFactory_ptr);

void OBMarshal(OBTypedEventChannelFactory::TypedEventChannelFactory_ptr, OB::OutputStreamImpl*);
void OBUnmarshal(OBTypedEventChannelFactory::TypedEventChannelFactory_ptr&, OB::InputStreamImpl*);

namespace OBTypedEventChannelFactory
{

typedef OB::ObjVar< TypedEventChannelFactory > TypedEventChannelFactory_var;
typedef OB::ObjOut< TypedEventChannelFactory > TypedEventChannelFactory_out;

} // End of namespace OBTypedEventChannelFactory

namespace OBStubImpl_OBTypedEventChannelFactory
{

class TypedEventChannelFactory;
typedef TypedEventChannelFactory* TypedEventChannelFactory_ptr;

} // End of namespace OBStubImpl_OBTypedEventChannelFactory

void OBDuplicate(OBStubImpl_OBTypedEventChannelFactory::TypedEventChannelFactory_ptr);
void OBRelease(OBStubImpl_OBTypedEventChannelFactory::TypedEventChannelFactory_ptr);

namespace OBStubImpl_OBTypedEventChannelFactory
{

typedef OB::ObjVar< TypedEventChannelFactory > TypedEventChannelFactory_var;

} // End of namespace OBStubImpl_OBTypedEventChannelFactory

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

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

protected:

    static OB_EVENT_IMPORT const char* ids_[];

public:

    TypedEventChannelFactory() { }
    virtual ~TypedEventChannelFactory() { }

    typedef TypedEventChannelFactory_ptr _ptr_type;
    typedef TypedEventChannelFactory_var _var_type;

    static inline TypedEventChannelFactory_ptr
    _duplicate(TypedEventChannelFactory_ptr p)
    {
        if(p)
            p -> _add_ref();
        return p;
    }

    static inline TypedEventChannelFactory_ptr
    _nil()
    {
        return 0;
    }

    static TypedEventChannelFactory_ptr _narrow(::CORBA::Object_ptr);
    static TypedEventChannelFactory_ptr _unchecked_narrow(::CORBA::Object_ptr);

    static TypedEventChannelFactory_ptr _narrow(::CORBA::AbstractBase_ptr);
    static TypedEventChannelFactory_ptr _unchecked_narrow(::CORBA::AbstractBase_ptr);

    static const char** _OB_staticIds();

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

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

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

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

} // End of namespace OBTypedEventChannelFactory

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

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

protected:

    virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();

public:

    TypedEventChannelFactory() { }
    virtual ~TypedEventChannelFactory() { }

    virtual const char** _OB_ids() const;

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

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

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

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

} // End of namespace OBProxy_OBTypedEventChannelFactory

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

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

protected:

    TypedEventChannelFactory() { }

public:

    static inline TypedEventChannelFactory_ptr
    _duplicate(TypedEventChannelFactory_ptr p)
    {
        if(p)
            p -> _OB_incRef();
        return p;
    }

    static inline TypedEventChannelFactory_ptr
    _nil()
    {
        return 0;
    }

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

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

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

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

} // End of namespace OBStubImpl_OBTypedEventChannelFactory

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

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

protected:

    TypedEventChannelFactory() { }
    friend class OBProxy_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 OBMarshalStubImpl_OBTypedEventChannelFactory

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

} // End of namespace OBV_OBTypedEventChannelFactory

//
// IDL:ooc.com/OBTypedEventChannelFactory/TypedEventChannelFactory:1.0
//
namespace CORBA
{

inline void
release(::OBTypedEventChannelFactory::TypedEventChannelFactory_ptr p)
{
    if(p)
        p -> _remove_ref();
}

inline Boolean
is_nil(::OBTypedEventChannelFactory::TypedEventChannelFactory_ptr p)
{
    return p == 0;
}

inline void
release(OBStubImpl_OBTypedEventChannelFactory::TypedEventChannelFactory_ptr p)
{
    if(p)
        p -> _OB_decRef();
}

inline Boolean
is_nil(OBStubImpl_OBTypedEventChannelFactory::TypedEventChannelFactory_ptr p)
{
    return p == 0;
}

} // End of namespace CORBA

void operator<<=(::CORBA::Any&, OBTypedEventChannelFactory::TypedEventChannelFactory_ptr*);
void operator<<=(::CORBA::Any&, OBTypedEventChannelFactory::TypedEventChannelFactory_ptr);
CORBA::Boolean operator>>=(const ::CORBA::Any&, OBTypedEventChannelFactory::TypedEventChannelFactory_ptr&);

inline void
operator<<=(::CORBA::Any_var& any, OBTypedEventChannelFactory::TypedEventChannelFactory_ptr* val)
{
    any.inout() <<= val;
}

inline void
operator<<=(::CORBA::Any_var& any, OBTypedEventChannelFactory::TypedEventChannelFactory_ptr val)
{
    any.inout() <<= val;
}

inline CORBA::Boolean
operator>>=(const ::CORBA::Any_var& any, OBTypedEventChannelFactory::TypedEventChannelFactory_ptr& val)
{
    return any.in() >>= val;
}

#endif
