📄 objectstub.cc
字号:
// -*- Mode: C++; -*-// Package : omniORB// objectStub.cc Created on: 04/09/2000// Author : Sai-Lai Lo (sll)//// Copyright (C) 2000 AT&T Research Cambridge//// This file is part of the omniORB library//// The omniORB library is free software; you can redistribute it and/or// modify it under the terms of the GNU Library General Public// License as published by the Free Software Foundation; either// version 2 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Library General Public License for more details.//// You should have received a copy of the GNU Library General Public// License along with this library; if not, write to the Free// Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA// 02111-1307, USA////// Description:///* $Log: objectStub.cc,v $ Revision 1.1.2.5 2003/09/25 13:48:41 dgrisby Use raw strings in is_a. Revision 1.1.2.4 2003/07/25 16:06:22 dgrisby Bug with nil return from _get_interface. Revision 1.1.2.3 2001/04/18 18:18:07 sll Big checkin with the brand new internal APIs. Revision 1.1.2.2 2000/11/03 19:12:07 sll Use new marshalling functions for byte, octet and char. Use get_octet_array instead of get_char_array and put_octet_array instead of put_char_array. Revision 1.1.2.1 2000/09/27 17:30:30 sll *** empty log message ****/#include <omniORB4/CORBA.h>#include <omniORB4/callDescriptor.h>#include <objectStub.h>OMNI_NAMESPACE_BEGIN(omni)////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////voidomni_is_a_CallDesc::marshalArguments(cdrStream& s){ s.marshalRawString(a_1);}voidomni_is_a_CallDesc::unmarshalReturnedValues(cdrStream& s){ result = s.unmarshalBoolean();}voidomni_is_a_CallDesc::unmarshalArguments(cdrStream& s){ a_1 = s.unmarshalRawString();}voidomni_is_a_CallDesc::marshalReturnedValues(cdrStream& s){ s.marshalBoolean(result);}voidomni_is_a_CallDesc::lcfn(omniCallDescriptor* cd, omniServant* servant){ omni_is_a_CallDesc* tcd = (omni_is_a_CallDesc*) cd; tcd->result = servant->_is_a(tcd->a_1);}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////voidomni_non_existent_CallDesc::unmarshalReturnedValues(cdrStream& s){ result = s.unmarshalBoolean();}voidomni_non_existent_CallDesc::marshalReturnedValues(cdrStream& s){ s.marshalBoolean(result);}voidomni_non_existent_CallDesc::lcfn(omniCallDescriptor* cd, omniServant* servant){ ((omni_non_existent_CallDesc*) cd)->result = servant->_non_existent();}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////voidomni_interface_CallDesc::unmarshalReturnedValues(cdrStream& s){ pd_result = CORBA::Object::_unmarshalObjRef(s);}voidomni_interface_CallDesc::marshalReturnedValues(cdrStream& s){ CORBA::Object::_marshalObjRef(pd_result,s);}voidomni_interface_CallDesc::lcfn(omniCallDescriptor* cd, omniServant* servant){ omniObjRef* intf = servant->_do_get_interface(); omni_interface_CallDesc* icd = (omni_interface_CallDesc*)cd; if (intf) { icd->pd_result = (CORBA::Object_ptr) intf->_ptrToObjRef(CORBA::Object::_PD_repoId); } else { icd->pd_result = CORBA::Object::_nil(); }}OMNI_NAMESPACE_END(omni)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -