12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

实 例#include "PortableInterceptor_c.hh"#include "IOP_c.hh"#include "SampleClientInterceptor.h"#if !defined( DLL_COMPILE )#include "vinit.h"#include "corba.h"#endif// USE_STD_NS 是 由 <strong>VisiBroker</strong> 建 立 的 使 用 std namespace 的 定 义USE_STD_NSclass SampleClientLoader :public PortableInterceptor::ORBInitializer{private:short int _interceptors_installed;#if defined( DLL_COMPILE )static SampleClientLoader _instance;#endifpublic:SampleClientLoader() {_interceptors_installed = 0;}void pre_init(PortableInterceptor::ORBInitInfo_ptr _info) {if(_interceptors_installed) return;cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!