// **********************************************************************
//
// Generated by the ORBacus IDL-to-C++ Translator
//
// Copyright (c) 1998
// Object-Oriented Concepts, Inc.
// Billerica, MA, USA
//
// Copyright (c) 1998
// Object-Oriented Concepts GmbH
// Ettlingen, Germany
//
// All Rights Reserved
//
// **********************************************************************

// Version: 3.0.1
// License: non-commercial

#ifndef __ORBacustest_h__
#define __ORBacustest_h__

//
// IDL:ORBacustest:1.0
//
class ORBacustest;
typedef ORBacustest* ORBacustest_ptr;
typedef ORBacustest* ORBacustestRef;
void OBDuplicate(ORBacustest_ptr);
void OBRelease(ORBacustest_ptr);
typedef OBObjVar< ORBacustest > ORBacustest_var;

//
// IDL:ORBacustest:1.0
//
class ORBacustest : virtual public CORBA_Object
{
    ORBacustest(const ORBacustest&);
    void operator=(const ORBacustest&);

protected:

    ORBacustest() { }

public:

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

    static inline ORBacustest_ptr
    _nil()
    {
        return 0;
    }

    static ORBacustest_ptr _narrow(CORBA_Object_ptr);
    virtual void* _OB_narrowHelp(const char*) const;
    virtual const char* _OB_typeId() const;

    friend void OBUnmarshal(ORBacustest_ptr&, const CORBA_Octet*&, bool);

    friend CORBA_Boolean operator>>=(const CORBA_Any&, ORBacustest_ptr&);

    //
    // IDL:ORBacustest/test:1.0
    //
    virtual void test();
};

extern OBTypeCodeConst _tc_ORBacustest;

//
// IDL:ORBacustest:1.0
//
inline void
CORBA_release(ORBacustest_ptr p)
{
    if(p)
        p -> _OB_decRef();
}

inline CORBA_Boolean
CORBA_is_nil(ORBacustest_ptr p)
{
    return p == 0;
}

inline void
OBMarshal(ORBacustest_ptr p, CORBA_Octet*& oct)
{
    OBMarshal((CORBA_Object_ptr)p, oct);
}

inline void
OBMarshalCount(ORBacustest_ptr p, CORBA_ULong& count)
{
    OBMarshalCount((CORBA_Object_ptr)p, count);
}

void OBUnmarshal(ORBacustest_ptr&, const CORBA_Octet*&, bool);

void operator<<=(CORBA_Any&, ORBacustest_ptr);
void operator<<=(CORBA_Any&, ORBacustest_ptr*);
CORBA_Boolean operator>>=(const CORBA_Any&, ORBacustest_ptr&);

inline void
operator<<=(CORBA_Any_var& any, ORBacustest_ptr val)
{
    any.inout() <<= val;
}

inline void
operator<<=(CORBA_Any_var& any, ORBacustest_ptr* val)
{
    any.inout() <<= val;
}

inline CORBA_Boolean
operator>>=(const CORBA_Any_var& any, ORBacustest_ptr& val)
{
    return any.in() >>= val;
}

#endif
