⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 custom_impl.cc

📁 MICO2.3.13 corba 环境平台
💻 CC
字号:
#include "custom_impl.h"using namespace std;CORBA::LongCustomValue_impl::value (){  return 42;}voidCustomValue_impl::marshal (CORBA::DataOutputStream * os){  cout << "custom marshaller" << endl;  os->write_boolean (TRUE);  os->write_short (42);  os->write_string ("Hello World");}voidCustomValue_impl::unmarshal (CORBA::DataInputStream * is){  cout << "custom unmarshaller" << endl;  CORBA::Boolean b = is->read_boolean ();  CORBA::Short s = is->read_short ();  CORBA::String_var v = is->read_string ();  assert (b == TRUE && s == 42 && strcmp (v.in(), "Hello World") == 0);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -