?? custom_impl.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 + -