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

namespace OB
{

class EventReceiver;
typedef EventReceiver* EventReceiver_ptr;
typedef EventReceiver* EventReceiverRef;

OB_EVENT_IMPORT extern OB::TypeCodeConst _tc_EventReceiver;

} // End of namespace OB

void OBDuplicate(OB::EventReceiver_ptr);
void OBRelease(OB::EventReceiver_ptr);

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

namespace OB
{

typedef OB::ObjVar< EventReceiver > EventReceiver_var;
typedef OB::ObjOut< EventReceiver > EventReceiver_out;

} // End of namespace OB

namespace OBStubImpl_OB
{

class EventReceiver;
typedef EventReceiver* EventReceiver_ptr;

} // End of namespace OBStubImpl_OB

void OBDuplicate(OBStubImpl_OB::EventReceiver_ptr);
void OBRelease(OBStubImpl_OB::EventReceiver_ptr);

namespace OBStubImpl_OB
{

typedef OB::ObjVar< EventReceiver > EventReceiver_var;

} // End of namespace OBStubImpl_OB

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

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

protected:

    static OB_EVENT_IMPORT const char* ids_[];

public:

    EventReceiver() { }
    virtual ~EventReceiver() { }

    typedef EventReceiver_ptr _ptr_type;
    typedef EventReceiver_var _var_type;

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

    static inline EventReceiver_ptr
    _nil()
    {
        return 0;
    }

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

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

    static const char** _OB_staticIds();

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

} // End of namespace OB

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

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

protected:

    virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();

public:

    EventReceiver() { }
    virtual ~EventReceiver() { }

    virtual const char** _OB_ids() const;

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

} // End of namespace OBProxy_OB

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

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

protected:

    EventReceiver() { }

public:

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

    static inline EventReceiver_ptr
    _nil()
    {
        return 0;
    }

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

} // End of namespace OBStubImpl_OB

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

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

protected:

    EventReceiver() { }
    friend class OBProxy_OB::EventReceiver;

public:

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

} // End of namespace OBMarshalStubImpl_OB

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

} // End of namespace OBV_OB

//
// IDL:ooc.com/OB/EventReceiver:1.0
//
namespace CORBA
{

inline void
release(::OB::EventReceiver_ptr p)
{
    if(p)
        p -> _remove_ref();
}

inline Boolean
is_nil(::OB::EventReceiver_ptr p)
{
    return p == 0;
}

inline void
release(OBStubImpl_OB::EventReceiver_ptr p)
{
    if(p)
        p -> _OB_decRef();
}

inline Boolean
is_nil(OBStubImpl_OB::EventReceiver_ptr p)
{
    return p == 0;
}

} // End of namespace CORBA

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

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

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

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

#endif
