diff options
Diffstat (limited to 'cppe/test/IceE/inheritance/TestI.cpp')
-rw-r--r-- | cppe/test/IceE/inheritance/TestI.cpp | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/cppe/test/IceE/inheritance/TestI.cpp b/cppe/test/IceE/inheritance/TestI.cpp new file mode 100644 index 00000000000..385826015a0 --- /dev/null +++ b/cppe/test/IceE/inheritance/TestI.cpp @@ -0,0 +1,128 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 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 <IceE/IceE.h> +#include <TestI.h> + +using namespace Test; + +MA::CAPrx +CAI_::caop(const MA::CAPrx& p, const IceE::Current&) +{ + return p; +} + +MB::CBPrx +CBI::cbop(const MB::CBPrx& p, const IceE::Current&) +{ + return p; +} + +MA::CCPrx +CCI::ccop(const MA::CCPrx& p, const IceE::Current&) +{ + return p; +} + +MA::CDPrx +CDI::cdop(const MA::CDPrx& p, const IceE::Current&) +{ + return p; +} + +MA::IAPrx +IAI::iaop(const MA::IAPrx& p, const IceE::Current&) +{ + return p; +} + +MB::IB1Prx +IB1I::ib1op(const MB::IB1Prx& p, const IceE::Current&) +{ + return p; +} + +MB::IB2Prx +IB2I::ib2op(const MB::IB2Prx& p, const IceE::Current&) +{ + return p; +} + +MA::ICPrx +ICI::icop(const MA::ICPrx& p, const IceE::Current&) +{ + return p; +} + +InitialI::InitialI(const IceE::ObjectAdapterPtr& adapter) : + _adapter(adapter) +{ + _ca = MA::CAPrx::uncheckedCast(_adapter->addWithUUID(new CAI_)); + _cb = MB::CBPrx::uncheckedCast(_adapter->addWithUUID(new CBI)); + _cc = MA::CCPrx::uncheckedCast(_adapter->addWithUUID(new CCI)); + _cd = MA::CDPrx::uncheckedCast(_adapter->addWithUUID(new CDI)); + _ia = MA::IAPrx::uncheckedCast(_adapter->addWithUUID(new IAI)); + _ib1 = MB::IB1Prx::uncheckedCast(_adapter->addWithUUID(new IB1I)); + _ib2 = MB::IB2Prx::uncheckedCast(_adapter->addWithUUID(new IB2I)); + _ic = MA::ICPrx::uncheckedCast(_adapter->addWithUUID(new ICI)); +} + +void +InitialI::shutdown(const IceE::Current&) +{ + _adapter->getCommunicator()->shutdown(); +} + +MA::CAPrx +InitialI::caop(const IceE::Current&) +{ + return _ca; +} + +MB::CBPrx +InitialI::cbop(const IceE::Current&) +{ + return _cb; +} + +MA::CCPrx +InitialI::ccop(const IceE::Current&) +{ + return _cc; +} + +MA::CDPrx +InitialI::cdop(const IceE::Current&) +{ + return _cd; +} + +MA::IAPrx +InitialI::iaop(const IceE::Current&) +{ + return _ia; +} + +MB::IB1Prx +InitialI::ib1op(const IceE::Current&) +{ + return _ib1; +} + +MB::IB2Prx +InitialI::ib2op(const IceE::Current&) +{ + return _ib2; +} + +MA::ICPrx +InitialI::icop(const IceE::Current&) +{ + return _ic; +} |