diff options
Diffstat (limited to 'TAO/tao/PolicyC.cpp')
-rw-r--r-- | TAO/tao/PolicyC.cpp | 224 |
1 files changed, 0 insertions, 224 deletions
diff --git a/TAO/tao/PolicyC.cpp b/TAO/tao/PolicyC.cpp deleted file mode 100644 index 8b8e2e98392..00000000000 --- a/TAO/tao/PolicyC.cpp +++ /dev/null @@ -1,224 +0,0 @@ -// $Id$ - -/* -*- C++ -*- */ - -// ****** Code generated by the The ACE ORB (TAO) IDL Compiler ******* -// TAO ORB and the TAO IDL Compiler have been developed by Washington -// University Computer Science's Distributed Object Computing Group. -// -// Information on TAO is available at -// http://www.cs.wustl.edu/~schmidt/TAO.html - -#include "tao/corba.h" - -#if !defined (__ACE_INLINE__) -#include "PolicyC.i" -#endif /* !defined INLINE */ - -static const CORBA::Long _oc_CORBA_PolicyType[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 25, 0x49444c3a, 0x434f5242, 0x412f506f, 0x6c696379, 0x54797065, 0x3a312e30, 0x0, // repository ID = IDL:CORBA/PolicyType:1.0 - 11, 0x506f6c69, 0x63795479, 0x70650000, // name = PolicyType - CORBA::tk_ulong, - -}; -static CORBA::TypeCode _tc__tc_CORBA_PolicyType (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyType), (char *) &_oc_CORBA_PolicyType, CORBA::B_FALSE); -CORBA::TypeCode_ptr CORBA::_tc_PolicyType = &_tc__tc_CORBA_PolicyType; - -CORBA_Policy_ptr CORBA_Policy::_duplicate (CORBA_Policy_ptr obj) -{ - if (!CORBA::is_nil (obj)) - obj->AddRef (); - - return obj; -} // end of _duplicate - -CORBA_Policy_ptr CORBA_Policy::_narrow ( - CORBA::Object_ptr obj, - CORBA::Environment &env - ) -{ - if (CORBA::is_nil (obj)) - return CORBA_Policy::_nil (); - if (!obj->_is_a ("IDL:CORBA/Policy:1.0", env)) - return CORBA_Policy::_nil (); - if (!obj->_is_collocated () - || !obj->_servant() - || obj->_servant()->_downcast ("IDL:CORBA/Policy:1.0") == 0 - ) - { - CORBA_Policy_ptr new_obj = new CORBA_Policy(obj->_get_parent ()); - return new_obj; - } // end of if - STUB_Object *stub = obj->_servant ()->_create_stub (env); - if (env.exception () != 0) - return CORBA_Policy::_nil (); - void* servant = obj->_servant ()->_downcast ("IDL:CORBA/Policy:1.0"); - return new POA_CORBA::_tao_collocated_Policy( - ACE_reinterpret_cast(POA_CORBA::Policy_ptr, servant), - stub - ); -} - -CORBA_Policy_ptr CORBA_Policy::_nil (void) -{ - return (CORBA_Policy_ptr)NULL; -} // end of _nil - -CORBA::PolicyType CORBA_Policy::policy_type ( - CORBA::Environment &_tao_environment - ) -{ - static const TAO_Param_Data _get_CORBA_Policy_policy_type_paramdata [] = - { - {CORBA::_tc_PolicyType, PARAM_RETURN, 0} - }; // CORBA_Policy_policy_type_paramdata - - static const TAO_Call_Data _get_CORBA_Policy_policy_type_calldata = - {"_get_policy_type", 1, 1, _get_CORBA_Policy_policy_type_paramdata, 0, 0}; - - CORBA::PolicyType _tao_retval = 0; - STUB_Object *istub = this->stubobj (_tao_environment); - if (istub) - { - istub->do_static_call ( - _tao_environment, - &_get_CORBA_Policy_policy_type_calldata, - &_tao_retval - ); - } // end of if (istub) - return _tao_retval; -} - -CORBA_Policy_ptr CORBA_Policy::copy ( - CORBA::Environment &_tao_environment - ) -{ - static const TAO_Param_Data CORBA_Policy_copy_paramdata [] = - { - {CORBA::_tc_Policy, PARAM_RETURN, 0} - }; // CORBA_Policy_copy_paramdata - - static const TAO_Call_Data CORBA_Policy_copy_calldata = - {"copy", 1, 1, CORBA_Policy_copy_paramdata, 0, 0}; - - CORBA_Policy_ptr _tao_retval = CORBA_Policy::_nil (); - STUB_Object *istub = this->stubobj (_tao_environment); - if (istub) - { - CORBA::Object_ptr _tao_base_retval = CORBA::Object::_nil (); - istub->do_static_call ( - _tao_environment, - &CORBA_Policy_copy_calldata, - &_tao_base_retval - ); - _tao_retval = CORBA_Policy::_narrow (_tao_base_retval, _tao_environment); - CORBA::release (_tao_base_retval); - } // end of if (istub) - return _tao_retval; -} - -void CORBA_Policy::destroy ( - CORBA::Environment &_tao_environment - ) -{ - static const TAO_Param_Data CORBA_Policy_destroy_paramdata [] = - { - {CORBA::_tc_void, PARAM_RETURN, 0} - }; // CORBA_Policy_destroy_paramdata - - static const TAO_Call_Data CORBA_Policy_destroy_calldata = - {"destroy", 1, 1, CORBA_Policy_destroy_paramdata, 0, 0}; - - STUB_Object *istub = this->stubobj (_tao_environment); - if (istub) - { - istub->do_static_call ( - _tao_environment, - &CORBA_Policy_destroy_calldata, - 0 - ); - } // end of if (istub) - return; -} - -CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment &env) -{ - if ( - (!ACE_OS::strcmp ((char *)value, "IDL:CORBA/Policy:1.0")) || - (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env)))) - return 1; // success using local knowledge - else - return this->CORBA_Object::_is_a (value, env); // remote call -} - -const char* CORBA_Policy::_interface_repository_id (void) const -{ - return "IDL:CORBA/Policy:1.0"; -} - -static const CORBA::Long _oc_CORBA_Policy[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 21, 0x49444c3a, 0x434f5242, 0x412f506f, 0x6c696379, 0x3a312e30, 0x0, // repository ID = IDL:CORBA/Policy:1.0 - 7, 0x506f6c69, 0x63790000, // name = Policy, -}; -static CORBA::TypeCode _tc__tc_CORBA_Policy (CORBA::tk_objref, sizeof (_oc_CORBA_Policy), (char *) &_oc_CORBA_Policy, CORBA::B_FALSE); -CORBA::TypeCode_ptr CORBA::_tc_Policy = &_tc__tc_CORBA_Policy; - - -#if !defined (_CORBA_POLICYLIST_CS_) -#define _CORBA_POLICYLIST_CS_ - -// ************************************************************* -// CORBA_PolicyList -// ************************************************************* - -CORBA_PolicyList::CORBA_PolicyList (void) -{} -CORBA_PolicyList::CORBA_PolicyList (CORBA::ULong max) // uses max size - : TAO_Unbounded_Object_Sequence<CORBA_Policy> (max) -{} -CORBA_PolicyList::CORBA_PolicyList (CORBA::ULong max, CORBA::ULong length, CORBA_Policy_ptr *buffer, CORBA::Boolean release) - : TAO_Unbounded_Object_Sequence<CORBA_Policy> (max, length, buffer, release) -{} -CORBA_PolicyList::CORBA_PolicyList (const CORBA::PolicyList &seq) // copy ctor - : TAO_Unbounded_Object_Sequence<CORBA_Policy> (seq) -{} -CORBA_PolicyList::~CORBA_PolicyList (void) // dtor -{} - -static const CORBA::Long _oc_CORBA_PolicyList_seq[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_objref, // typecode kind - 52, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - 21, 0x49444c3a, 0x434f5242, 0x412f506f, 0x6c696379, 0x3a312e30, 0x0, // repository ID = IDL:CORBA/Policy:1.0 - 7, 0x506f6c69, 0x63790000, // name = Policy, - 0, -}; -static CORBA::TypeCode _tc__tc_CORBA_PolicyList_seq (CORBA::tk_sequence, sizeof (_oc_CORBA_PolicyList_seq), (char *) &_oc_CORBA_PolicyList_seq, CORBA::B_FALSE); -CORBA::TypeCode_ptr _tc_CORBA_PolicyList_seq = &_tc__tc_CORBA_PolicyList_seq; - - -#endif /* end #if !defined */ - -static const CORBA::Long _oc_CORBA_PolicyList[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 25, 0x49444c3a, 0x434f5242, 0x412f506f, 0x6c696379, 0x4c697374, 0x3a312e30, 0x0, // repository ID = IDL:CORBA/PolicyList:1.0 - 11, 0x506f6c69, 0x63794c69, 0x73740000, // name = PolicyList - CORBA::tk_sequence, // typecode kind - 60, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - CORBA::tk_objref, // typecode kind - 52, // encapsulation length - TAO_ENCAP_BYTE_ORDER, // byte order - 21, 0x49444c3a, 0x434f5242, 0x412f506f, 0x6c696379, 0x3a312e30, 0x0, // repository ID = IDL:CORBA/Policy:1.0 - 7, 0x506f6c69, 0x63790000, // name = Policy, - 0, -}; -static CORBA::TypeCode _tc__tc_CORBA_PolicyList (CORBA::tk_alias, sizeof (_oc_CORBA_PolicyList), (char *) &_oc_CORBA_PolicyList, CORBA::B_FALSE); -CORBA::TypeCode_ptr CORBA::_tc_PolicyList = &_tc__tc_CORBA_PolicyList; |