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

// Version: 3.2
// License: non-commercial

#include <OB/CORBA.h>
#include <OB/TemplateI.h>
#include <OB/Policy.h>

#ifndef OB_INTEGER_VERSION
#   error No ORBacus version defined!
#endif

#ifndef OB_NO_VERSION_CHECK
#   if (OB_INTEGER_VERSION != 3020000L)
#       error ORBacus version mismatch!
#   endif
#endif

//
// IDL:omg.org/CORBA/Policy:1.0
//
#ifndef HAVE_NO_EXPLICIT_TEMPLATES
template class OBObjVar< CORBA_Policy >;
template class OBObjForSeq< CORBA_Policy >;
#else
#ifdef HAVE_PRAGMA_DEFINE
#pragma define(OBObjVar< CORBA_Policy >)
#pragma define(OBObjForSeq< CORBA_Policy >)
#endif
#endif

void
OBDuplicate(CORBA_Policy_ptr p)
{
    if(p)
        p -> _OB_incRef();
}

void
OBRelease(CORBA_Policy_ptr p)
{
    if(p)
        p -> _OB_decRef();
}

CORBA_Policy_ptr
CORBA_Policy::_narrow(CORBA_Object_ptr p)
{
    if(!CORBA_is_nil(p))
    {
        void* v = p -> _OB_narrowHelp("IDL:omg.org/CORBA/Policy:1.0");

        if(v)
            return _duplicate((CORBA_Policy_ptr)v);
    }

    return _nil();
}

void*
CORBA_Policy::_OB_narrowHelp(const char* _ob_id) const
{
    if(strcmp("IDL:omg.org/CORBA/Policy:1.0", _ob_id) == 0)
        return (void*)this;
    else
        return CORBA_Object::_OB_narrowHelp(_ob_id);
}

const char*
CORBA_Policy::_OB_typeId() const
{
    return "IDL:omg.org/CORBA/Policy:1.0";
}

//
// OBFixSeq< CORBA_ULong >
//
#ifdef OB_use_OBFixSeq_CORBA__ULong_from_Policy_h

#endif

//
// OBObjSeq< CORBA_Policy >
//
#ifdef OB_use_OBObjSeq_CORBA__Policy_from_Policy_h

#ifndef HAVE_NO_EXPLICIT_TEMPLATES
template class OBObjSeq< CORBA_Policy >;
template class OBSeqVar< OBObjSeq< CORBA_Policy > >;
#else
#ifdef HAVE_PRAGMA_DEFINE
#pragma define(OBObjSeq< CORBA_Policy >)
#pragma define(OBSeqVar< OBObjSeq< CORBA_Policy > >)
#endif
#endif

#endif
