📄 vncsk.cpp
字号:
// This file is generated by omniidl (C++ backend)- omniORB_3_0. Do not edit.#include "vnc.hh"#include <omniORB3/callDescriptor.h>static const char* _0RL_library_version = omniORB_3_0;_init_in_def_( const CORBA::Short vnc::protocolMajorVersion = 3; )_init_in_def_( const CORBA::UShort vnc::FLASHPORT = 5400; )_init_in_def_( const CORBA::UShort vnc::CLIENTPORT = 5500; )_init_in_def_( const CORBA::UShort vnc::SERVERPORT = 5900; )_init_in_def_( const CORBA::UShort vnc::DISPLAY_DEVICE = 1; )_init_in_def_( const CORBA::UShort vnc::KEYBOARD_DEVICE = 2; )_init_in_def_( const CORBA::UShort vnc::POINTER_DEVICE = 4; )_init_in_def_( const CORBA::UShort vnc::ALL_DEVICES = 7; )CORBA::Exception::insertExceptionToAny vnc::connectionFailed::insertToAnyFn = 0;CORBA::Exception::insertExceptionToAnyNCP vnc::connectionFailed::insertToAnyFnNCP = 0;vnc::connectionFailed::connectionFailed(const vnc::connectionFailed& _s) : CORBA::UserException(_s){ }vnc::connectionFailed& vnc::connectionFailed::operator=(const vnc::connectionFailed& _s){ ((CORBA::UserException*) this)->operator=(_s); return *this;}vnc::connectionFailed::~connectionFailed() {}void vnc::connectionFailed::_raise() { throw *this; }vnc::connectionFailed* vnc::connectionFailed::_downcast(CORBA::Exception* _e) { return (connectionFailed*) _NP_is_a(_e, "Exception/UserException/vnc::connectionFailed");}const vnc::connectionFailed* vnc::connectionFailed::_downcast(const CORBA::Exception* _e) { return (const connectionFailed*) _NP_is_a(_e, "Exception/UserException/vnc::connectionFailed");}const char* vnc::connectionFailed::_PD_repoId = "IDL:vnc/connectionFailed:1.0";CORBA::Exception* vnc::connectionFailed::_NP_duplicate() const { return new connectionFailed(*this);}const char* vnc::connectionFailed::_NP_typeId() const { return "Exception/UserException/vnc::connectionFailed";}const char* vnc::connectionFailed::_NP_repoId(int* _size) const { *_size = sizeof("IDL:vnc/connectionFailed:1.0"); return "IDL:vnc/connectionFailed:1.0";}void vnc::connectionFailed::_NP_marshal(NetBufferedStream& _s) const { *this >>= _s;}void vnc::connectionFailed::_NP_marshal(MemBufferedStream& _s) const { *this >>= _s;}size_tvnc::clientInfo::_NP_alignedSize(size_t _initialoffset) const{ CORBA::ULong _msgsize = _initialoffset; _msgsize = omni::align_to(_msgsize, omni::ALIGN_2) + 2; _msgsize = clientAddress._NP_alignedSize(_msgsize); _msgsize = omni::align_to(_msgsize, omni::ALIGN_2) + 2; _msgsize += 1; _msgsize += 1; _msgsize += 1; _msgsize += 1; return _msgsize;}voidvnc::clientInfo::operator>>= (NetBufferedStream &_n) const{ clientId >>= _n; clientAddress >>= _n; capabilities >>= _n; isTeleport >>= _n; pointerEnabled >>= _n; keyboardEnabled >>= _n; closePending >>= _n; }voidvnc::clientInfo::operator<<= (NetBufferedStream &_n){ clientId <<= _n; clientAddress <<= _n; capabilities <<= _n; isTeleport <<= _n; pointerEnabled <<= _n; keyboardEnabled <<= _n; closePending <<= _n; }voidvnc::clientInfo::operator>>= (MemBufferedStream &_n) const{ clientId >>= _n; clientAddress >>= _n; capabilities >>= _n; isTeleport >>= _n; pointerEnabled >>= _n; keyboardEnabled >>= _n; closePending >>= _n; }voidvnc::clientInfo::operator<<= (MemBufferedStream &_n){ clientId <<= _n; clientAddress <<= _n; capabilities <<= _n; isTeleport <<= _n; pointerEnabled <<= _n; keyboardEnabled <<= _n; closePending <<= _n; }vnc::controller_ptr vnc::controller_Helper::_nil() { return vnc::controller::_nil();}CORBA::Boolean vnc::controller_Helper::is_nil(vnc::controller_ptr p) { return CORBA::is_nil(p);}void vnc::controller_Helper::release(vnc::controller_ptr p) { CORBA::release(p);}void vnc::controller_Helper::duplicate(vnc::controller_ptr p) { if( p && !p->_NP_is_nil() ) omni::duplicateObjRef(p);}size_t vnc::controller_Helper::NP_alignedSize(vnc::controller_ptr obj, size_t offset) { return vnc::controller::_alignedSize(obj, offset);}void vnc::controller_Helper::marshalObjRef(vnc::controller_ptr obj, NetBufferedStream& s) { vnc::controller::_marshalObjRef(obj, s);}vnc::controller_ptr vnc::controller_Helper::unmarshalObjRef(NetBufferedStream& s) { return vnc::controller::_unmarshalObjRef(s);}void vnc::controller_Helper::marshalObjRef(vnc::controller_ptr obj, MemBufferedStream& s) { vnc::controller::_marshalObjRef(obj, s);}vnc::controller_ptr vnc::controller_Helper::unmarshalObjRef(MemBufferedStream& s) { return vnc::controller::_unmarshalObjRef(s);}vnc::controller_ptrvnc::controller::_duplicate(vnc::controller_ptr obj){ if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj); return obj;}vnc::controller_ptrvnc::controller::_narrow(CORBA::Object_ptr obj){ if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil(); _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId); return e ? e : _nil();}vnc::controller_ptrvnc::controller::_nil(){ static _objref_controller* _the_nil_ptr = 0; if( !_the_nil_ptr ) { omni::nilRefLock().lock(); if( !_the_nil_ptr ) _the_nil_ptr = new _objref_controller; omni::nilRefLock().unlock(); } return _the_nil_ptr;}const char* vnc::controller::_PD_repoId = "IDL:vnc/controller:1.0";vnc::_objref_controller::~_objref_controller() {}vnc::_objref_controller::_objref_controller(const char* mdri, IOP::TaggedProfileList* p, omniIdentity* id, omniLocalIdentity* lid) : omniObjRef(vnc::controller::_PD_repoId, mdri, p, id, lid){ _PR_setobj(this);}void*vnc::_objref_controller::_ptrToObjRef(const char* id){ if( !strcmp(id, CORBA::Object::_PD_repoId) ) return (CORBA::Object_ptr) this; if( !strcmp(id, vnc::controller::_PD_repoId) ) return (vnc::controller_ptr) this; return 0;}// Proxy call descriptor class. Mangled signature:// void_o_cstring_o_cunsigned_pshortclass _0RL_cd_22cbff1b827fd898_00000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_00000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway, char *& a_0, CORBA::UShort& a_1): omniCallDescriptor(lcfn, op, oplen, oneway), arg_0(a_0), arg_1(a_1) {} virtual void unmarshalReturnedValues(GIOP_C&); char *& arg_0; CORBA::UShort& arg_1; };void _0RL_cd_22cbff1b827fd898_00000000::unmarshalReturnedValues(GIOP_C& giop_client){ char* tmp_0 = 0; { CORBA::String_member _0RL_str_tmp; _0RL_str_tmp <<= giop_client; tmp_0 = _0RL_str_tmp._ptr; _0RL_str_tmp._ptr = 0; } arg_1 <<= giop_client; arg_0 = tmp_0; }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_10000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_00000000* tcd = (_0RL_cd_22cbff1b827fd898_00000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->getServerAddress(tcd->arg_0, tcd->arg_1);}void vnc::_objref_controller::getServerAddress(CORBA::String_out address, CORBA::UShort& port){ _0RL_cd_22cbff1b827fd898_00000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_10000000, "getServerAddress", 17, 0, address, port); _invoke(_call_desc); }// Proxy call descriptor class. Mangled signature:// void_o_cunsigned_pshort_o_cunsigned_pshort_o_cunsigned_pshortclass _0RL_cd_22cbff1b827fd898_20000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_20000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway, CORBA::UShort& a_0, CORBA::UShort& a_1, CORBA::UShort& a_2): omniCallDescriptor(lcfn, op, oplen, oneway), arg_0(a_0), arg_1(a_1), arg_2(a_2) {} virtual void unmarshalReturnedValues(GIOP_C&); CORBA::UShort& arg_0; CORBA::UShort& arg_1; CORBA::UShort& arg_2; };void _0RL_cd_22cbff1b827fd898_20000000::unmarshalReturnedValues(GIOP_C& giop_client){ arg_0 <<= giop_client; arg_1 <<= giop_client; arg_2 <<= giop_client; }// Local call call-back function.static void_0RL_lcfn_22cbff1b827fd898_30000000(omniCallDescriptor* cd, omniServant* svnt){ _0RL_cd_22cbff1b827fd898_20000000* tcd = (_0RL_cd_22cbff1b827fd898_20000000*) cd; vnc::_impl_controller* impl = (vnc::_impl_controller*) svnt->_ptrToInterface(vnc::controller::_PD_repoId); impl->getDesktopSize(tcd->arg_0, tcd->arg_1, tcd->arg_2);}void vnc::_objref_controller::getDesktopSize(CORBA::UShort& width, CORBA::UShort& height, CORBA::UShort& depth){ _0RL_cd_22cbff1b827fd898_20000000 _call_desc(_0RL_lcfn_22cbff1b827fd898_30000000, "getDesktopSize", 15, 0, width, height, depth); _invoke(_call_desc); }// Proxy call descriptor class. Mangled signature:// _cunsigned_pshort_i_cstring_i_cunsigned_pshort_i_cunsigned_pshort_i_cboolean_i_cboolean_e_cvnc_mconnectionFailedclass _0RL_cd_22cbff1b827fd898_40000000 : public omniCallDescriptor{public: inline _0RL_cd_22cbff1b827fd898_40000000(LocalCallFn lcfn, const char* op, size_t oplen, _CORBA_Boolean oneway, const char* a_0, CORBA::UShort a_1, CORBA::UShort a_2, CORBA::Boolean a_3, CORBA::Boolean a_4): omniCallDescriptor(lcfn, op, oplen, oneway), arg_0(a_0), arg_1(a_1), arg_2(a_2), arg_3(a_3), arg_4(a_4) {} virtual CORBA::ULong alignedSize(CORBA::ULong size_in); virtual void marshalArguments(GIOP_C&); virtual void unmarshalReturnedValues(GIOP_C&); virtual void userException(GIOP_C&, const char*); inline CORBA::UShort result() { return pd_result; } const char* arg_0; CORBA::UShort arg_1; CORBA::UShort arg_2; CORBA::Boolean arg_3; CORBA::Boolean arg_4; CORBA::UShort pd_result;};CORBA::ULong _0RL_cd_22cbff1b827fd898_40000000::alignedSize(CORBA::ULong msgsize){ msgsize = omni::align_to(msgsize, omni::ALIGN_4) + 4; msgsize += ((const char*) arg_0) ? strlen((const char*) arg_0) + 1 : 1; msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; msgsize = omni::align_to(msgsize, omni::ALIGN_2) + 2; msgsize += 1; msgsize += 1; return msgsize;}void _0RL_cd_22cbff1b827fd898_40000000::marshalArguments(GIOP_C& giop_client){ { CORBA::ULong _len = (((const char*) arg_0)? strlen((const char*) arg_0) + 1 : 1); _len >>= giop_client; if (_len > 1) giop_client.put_char_array((const CORBA::Char *)((const char*)arg_0),_len); else { if ((const char*) arg_0 == 0 && omniORB::traceLevel > 1) _CORBA_null_string_ptr(0); CORBA::Char('\0') >>= giop_client; } } arg_1 >>= giop_client; arg_2 >>= giop_client; arg_3 >>= giop_client; arg_4 >>= giop_client; }void _0RL_cd_22cbff1b827fd898_40000000::unmarshalReturnedValues(GIOP_C& giop_client){ pd_result <<= giop_client; }void _0RL_cd_22cbff1b827fd898_40000000::userException(GIOP_C& giop_client, const char* repoId){ if( strcmp(repoId, vnc::connectionFailed::_PD_repoId) == 0 ) { vnc::connectionFailed _ex; _ex <<= giop_client; giop_client.RequestCompleted(); throw _ex; } else { giop_client.RequestCompleted(1); throw CORBA::MARSHAL(0, CORBA::COMPLETED_MAYBE);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -