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

📄 testi.cpp

📁 ICE-3.2 一个开源的中间件
💻 CPP
字号:
// **********************************************************************//// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.//// This copy of Ice is licensed to you under the terms described in the// ICE_LICENSE file included in this distribution.//// **********************************************************************#include <TestI.h>#include <Ice/Ice.h>using namespace Test;TestI::TestI(const Ice::ObjectAdapterPtr& adapter) :    _adapter(adapter){}voidTestI::baseAsBase(const ::Ice::Current&){    Base b;    b.b = "Base.b";    throw b;}voidTestI::unknownDerivedAsBase(const ::Ice::Current&){    UnknownDerived d;    d.b = "UnknownDerived.b";    d.ud = "UnknownDerived.ud";    throw d;}voidTestI::knownDerivedAsBase(const ::Ice::Current&){    KnownDerived d;    d.b = "KnownDerived.b";    d.kd = "KnownDerived.kd";    throw d;}voidTestI::knownDerivedAsKnownDerived(const ::Ice::Current&){    KnownDerived d;    d.b = "KnownDerived.b";    d.kd = "KnownDerived.kd";    throw d;}voidTestI::unknownIntermediateAsBase(const ::Ice::Current&){    UnknownIntermediate ui;    ui.b = "UnknownIntermediate.b";    ui.ui = "UnknownIntermediate.ui";    throw ui;}voidTestI::knownIntermediateAsBase(const ::Ice::Current&){    KnownIntermediate ki;    ki.b = "KnownIntermediate.b";    ki.ki = "KnownIntermediate.ki";    throw ki;}voidTestI::knownMostDerivedAsBase(const ::Ice::Current&){    KnownMostDerived kmd;    kmd.b = "KnownMostDerived.b";    kmd.ki = "KnownMostDerived.ki";    kmd.kmd = "KnownMostDerived.kmd";    throw kmd;}voidTestI::knownIntermediateAsKnownIntermediate(const ::Ice::Current&){    KnownIntermediate ki;    ki.b = "KnownIntermediate.b";    ki.ki = "KnownIntermediate.ki";    throw ki;}voidTestI::knownMostDerivedAsKnownIntermediate(const ::Ice::Current&){    KnownMostDerived kmd;    kmd.b = "KnownMostDerived.b";    kmd.ki = "KnownMostDerived.ki";    kmd.kmd = "KnownMostDerived.kmd";    throw kmd;}voidTestI::knownMostDerivedAsKnownMostDerived(const ::Ice::Current&){    KnownMostDerived kmd;    kmd.b = "KnownMostDerived.b";    kmd.ki = "KnownMostDerived.ki";    kmd.kmd = "KnownMostDerived.kmd";    throw kmd;}voidTestI::unknownMostDerived1AsBase(const ::Ice::Current&){    UnknownMostDerived1 umd1;    umd1.b = "UnknownMostDerived1.b";    umd1.ki = "UnknownMostDerived1.ki";    umd1.umd1 = "UnknownMostDerived1.umd1";    throw umd1;}voidTestI::unknownMostDerived1AsKnownIntermediate(const ::Ice::Current&){    UnknownMostDerived1 umd1;    umd1.b = "UnknownMostDerived1.b";    umd1.ki = "UnknownMostDerived1.ki";    umd1.umd1 = "UnknownMostDerived1.umd1";    throw umd1;}voidTestI::unknownMostDerived2AsBase(const ::Ice::Current&){    UnknownMostDerived2 umd2;    umd2.b = "UnknownMostDerived2.b";    umd2.ui = "UnknownMostDerived2.ui";    umd2.umd2 = "UnknownMostDerived2.umd2";    throw umd2;}voidTestI::shutdown(const ::Ice::Current&){    _adapter->getCommunicator()->shutdown();}

⌨️ 快捷键说明

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