diff options
Diffstat (limited to 'cpp/test/Ice/custom/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/custom/TestAMDI.cpp | 286 |
1 files changed, 143 insertions, 143 deletions
diff --git a/cpp/test/Ice/custom/TestAMDI.cpp b/cpp/test/Ice/custom/TestAMDI.cpp index f3de9e90647..67f4e56555c 100644 --- a/cpp/test/Ice/custom/TestAMDI.cpp +++ b/cpp/test/Ice/custom/TestAMDI.cpp @@ -18,66 +18,66 @@ TestIntfI::TestIntfI(const Ice::CommunicatorPtr& communicator) #ifdef ICE_CPP11_MAPPING void -TestIntfI::opDoubleArray_async(std::pair<const Ice::Double*, const Ice::Double*> in, - std::function<void (const Test::DoubleSeq&, const Test::DoubleSeq&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opDoubleArrayAsync(std::pair<const Ice::Double*, const Ice::Double*> in, + std::function<void (const Test::DoubleSeq&, const Test::DoubleSeq&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::DoubleSeq out(in.first, in.second); response(out, out); } void -TestIntfI::opBoolArray_async(std::pair<const bool*, const bool*> in, - std::function<void (const Test::BoolSeq&, const Test::BoolSeq&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opBoolArrayAsync(std::pair<const bool*, const bool*> in, + std::function<void (const Test::BoolSeq&, const Test::BoolSeq&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::BoolSeq out(in.first, in.second); response(out, out); } void -TestIntfI::opByteArray_async(std::pair<const Ice::Byte*, const Ice::Byte*> in, - std::function<void (const std::pair<const Ice::Byte*, const Ice::Byte*>&, - const std::pair<const Ice::Byte*, const Ice::Byte*>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opByteArrayAsync(std::pair<const Ice::Byte*, const Ice::Byte*> in, + std::function<void (const std::pair<const Ice::Byte*, const Ice::Byte*>&, + const std::pair<const Ice::Byte*, const Ice::Byte*>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opVariableArray_async(std::pair<const Test::Variable*, const Test::Variable*> in, - std::function<void (const Test::VariableList&, const Test::VariableList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opVariableArrayAsync(std::pair<const Test::Variable*, const Test::Variable*> in, + std::function<void (const Test::VariableList&, const Test::VariableList&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::VariableList out(in.first, in.second); response(out, out); } void -TestIntfI::opBoolRange_async(std::pair<Test::BoolSeq::const_iterator, Test::BoolSeq::const_iterator> in, - std::function<void (const Test::BoolSeq&, const Test::BoolSeq&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opBoolRangeAsync(std::pair<Test::BoolSeq::const_iterator, Test::BoolSeq::const_iterator> in, + std::function<void (const Test::BoolSeq&, const Test::BoolSeq&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::BoolSeq out(in.first, in.second); response(out, out); } void -TestIntfI::opByteRange_async(std::pair<Test::ByteList::const_iterator, Test::ByteList::const_iterator> in, - std::function<void (const std::pair<Test::ByteList::const_iterator, - Test::ByteList::const_iterator>&, - const std::pair<Test::ByteList::const_iterator, - Test::ByteList::const_iterator>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opByteRangeAsync(std::pair<Test::ByteList::const_iterator, Test::ByteList::const_iterator> in, + std::function<void (const std::pair<Test::ByteList::const_iterator, + Test::ByteList::const_iterator>&, + const std::pair<Test::ByteList::const_iterator, + Test::ByteList::const_iterator>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opVariableRange_async(std::pair<Test::VariableList::const_iterator, - Test::VariableList::const_iterator> in, - std::function<void (const Test::VariableList&, const Test::VariableList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opVariableRangeAsync(std::pair<Test::VariableList::const_iterator, + Test::VariableList::const_iterator> in, + std::function<void (const Test::VariableList&, const Test::VariableList&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::VariableList out(in.first, in.second); response(out, out); @@ -85,232 +85,232 @@ TestIntfI::opVariableRange_async(std::pair<Test::VariableList::const_iterator, void -TestIntfI::opByteRangeType_async(std::pair<Test::ByteList::const_iterator, Test::ByteList::const_iterator> in, - std::function<void (const Test::ByteList&, const Test::ByteList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opByteRangeTypeAsync(std::pair<Test::ByteList::const_iterator, Test::ByteList::const_iterator> in, + std::function<void (const Test::ByteList&, const Test::ByteList&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::ByteList out(in.first, in.second); response(out, out); } void -TestIntfI::opVariableRangeType_async(std::pair<std::deque<Test::Variable>::const_iterator, - std::deque<Test::Variable>::const_iterator> in, - std::function<void (const Test::VariableList&, - const Test::VariableList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opVariableRangeTypeAsync(std::pair<std::deque<Test::Variable>::const_iterator, + std::deque<Test::Variable>::const_iterator> in, + std::function<void (const Test::VariableList&, + const Test::VariableList&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::VariableList out(in.first, in.second); response(out, out); } void -TestIntfI::opBoolSeq_async(std::deque<bool> in, - std::function<void (const std::deque<bool>&, const std::deque<bool>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opBoolSeqAsync(std::deque<bool> in, + std::function<void (const std::deque<bool>&, const std::deque<bool>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opBoolList_async(Test::BoolList in, - std::function<void (const Test::BoolList&, const Test::BoolList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opBoolListAsync(Test::BoolList in, + std::function<void (const Test::BoolList&, const Test::BoolList&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opByteSeq_async(std::deque<Ice::Byte> in, - std::function<void (const std::deque<Ice::Byte>&, const std::deque<Ice::Byte>&)> response, +TestIntfI::opByteSeqAsync(std::deque<Ice::Byte> in, + std::function<void (const std::deque<Ice::Byte>&, const std::deque<Ice::Byte>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) +{ + response(in, in); +} + +void +TestIntfI::opByteListAsync(Test::ByteList in, + std::function<void (const Test::ByteList&, const Test::ByteList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opByteList_async(Test::ByteList in, - std::function<void (const Test::ByteList&, const Test::ByteList&)> response, +TestIntfI::opMyByteSeqAsync(MyByteSeq in, + std::function<void (const MyByteSeq&, const MyByteSeq&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opMyByteSeq_async(MyByteSeq in, - std::function<void (const MyByteSeq&, const MyByteSeq&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opStringAsync(Util::string_view in, + std::function<void (const Util::string_view&, const Util::string_view&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opString_async(Util::string_view in, - std::function<void (const Util::string_view&, const Util::string_view&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opStringSeqAsync(std::deque<std::string> in, + std::function<void (const std::deque<std::string>&, const std::deque<std::string>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opStringSeq_async(std::deque<std::string> in, - std::function<void (const std::deque<std::string>&, const std::deque<std::string>&)> response, +TestIntfI::opStringListAsync(Test::StringList in, + std::function<void (const Test::StringList&, const Test::StringList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opStringList_async(Test::StringList in, - std::function<void (const Test::StringList&, const Test::StringList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opFixedSeqAsync(std::deque<Test::Fixed> in, + std::function<void (const std::deque<Test::Fixed>&, + const std::deque<Test::Fixed>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opFixedSeq_async(std::deque<Test::Fixed> in, - std::function<void (const std::deque<Test::Fixed>&, - const std::deque<Test::Fixed>&)> response, +TestIntfI::opFixedListAsync(Test::FixedList in, + std::function<void (const Test::FixedList&, const Test::FixedList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } + void -TestIntfI::opFixedList_async(Test::FixedList in, - std::function<void (const Test::FixedList&, const Test::FixedList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opVariableSeqAsync(std::deque<Test::Variable> in, + std::function<void (const std::deque<Test::Variable>&, + const std::deque<Test::Variable>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } - void -TestIntfI::opVariableSeq_async(std::deque<Test::Variable> in, - std::function<void (const std::deque<Test::Variable>&, - const std::deque<Test::Variable>&)> response, +TestIntfI::opVariableListAsync(Test::VariableList in, + std::function<void (const Test::VariableList&, const Test::VariableList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opVariableList_async(Test::VariableList in, - std::function<void (const Test::VariableList&, const Test::VariableList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opStringStringDictSeqAsync(std::deque<Test::StringStringDict> in, + std::function<void (const std::deque<Test::StringStringDict>&, + const std::deque<Test::StringStringDict>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opStringStringDictSeq_async(std::deque<Test::StringStringDict> in, - std::function<void (const std::deque<Test::StringStringDict>&, - const std::deque<Test::StringStringDict>&)> response, +TestIntfI::opStringStringDictListAsync(Test::StringStringDictList in, + std::function<void (const Test::StringStringDictList&, + const Test::StringStringDictList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opStringStringDictList_async(Test::StringStringDictList in, - std::function<void (const Test::StringStringDictList&, - const Test::StringStringDictList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opESeqAsync(std::deque<Test::E> in, + std::function<void (const std::deque<Test::E>&, const std::deque<Test::E>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opESeq_async(std::deque<Test::E> in, - std::function<void (const std::deque<Test::E>&, const std::deque<Test::E>&)> response, +TestIntfI::opEListAsync(Test::EList in, + std::function<void (const Test::EList&, const Test::EList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opEList_async(Test::EList in, - std::function<void (const Test::EList&, const Test::EList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opCPrxSeqAsync(std::deque<std::shared_ptr<Ice::ObjectPrx>> in, + std::function<void (const std::deque<std::shared_ptr<Ice::ObjectPrx>>&, + const std::deque<std::shared_ptr<Ice::ObjectPrx>>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opCPrxSeq_async(std::deque<std::shared_ptr<Ice::ObjectPrx>> in, - std::function<void (const std::deque<std::shared_ptr<Ice::ObjectPrx>>&, - const std::deque<std::shared_ptr<Ice::ObjectPrx>>&)> response, +TestIntfI::opCPrxListAsync(Test::CPrxList in, + std::function<void (const Test::CPrxList&, const Test::CPrxList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opCPrxList_async(Test::CPrxList in, - std::function<void (const Test::CPrxList&, const Test::CPrxList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opCSeqAsync(std::deque<std::shared_ptr<Test::C>> in, + std::function<void (const std::deque<std::shared_ptr<Test::C>>&, + const std::deque<std::shared_ptr<Test::C>>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opCSeq_async(std::deque<std::shared_ptr<Test::C>> in, - std::function<void (const std::deque<std::shared_ptr<Test::C>>&, - const std::deque<std::shared_ptr<Test::C>>&)> response, +TestIntfI::opCListAsync(Test::CList in, + std::function<void (const Test::CList&, const Test::CList&)> response, std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opCList_async(Test::CList in, - std::function<void (const Test::CList&, const Test::CList&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) -{ - response(in, in); -} - -void -TestIntfI::opClassStruct_async(Test::ClassStruct in1, Test::ClassStructSeq in2, - std::function<void (const Test::ClassStruct&, - const Test::ClassStruct&, const Test::ClassStructSeq&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opClassStructAsync(Test::ClassStruct in1, Test::ClassStructSeq in2, + std::function<void (const Test::ClassStruct&, + const Test::ClassStruct&, const Test::ClassStructSeq&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in1, in1, in2); } void -TestIntfI::opOutArrayByteSeq_async(Test::ByteSeq in, - std::function<void (const std::pair<const Ice::Byte*, const Ice::Byte*>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opOutArrayByteSeqAsync(Test::ByteSeq in, + std::function<void (const std::pair<const Ice::Byte*, const Ice::Byte*>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(std::make_pair(in.data(), in.data() + in.size())); } void -TestIntfI::opOutRangeByteSeq_async(Test::ByteSeq in, - std::function<void (const std::pair<Test::ByteSeq::const_iterator, - Test::ByteSeq::const_iterator>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opOutRangeByteSeqAsync(Test::ByteSeq in, + std::function<void (const std::pair<Test::ByteSeq::const_iterator, + Test::ByteSeq::const_iterator>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(std::make_pair(in.begin(), in.end())); } void -TestIntfI::opIntStringDict_async(Test::IntStringDict in, - std::function<void (const Test::IntStringDict&, const Test::IntStringDict&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opIntStringDictAsync(Test::IntStringDict in, + std::function<void (const Test::IntStringDict&, const Test::IntStringDict&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opVarDict_async(Test::CustomMap<std::string, Ice::Int> in, - std::function<void (const Test::CustomMap<Ice::Long, Ice::Long>&, - const Test::CustomMap<std::string, Ice::Int>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opVarDictAsync(Test::CustomMap<std::string, Ice::Int> in, + std::function<void (const Test::CustomMap<Ice::Long, Ice::Long>&, + const Test::CustomMap<std::string, Ice::Int>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { Test::CustomMap<Ice::Long, Ice::Long> result; for(Ice::Long i = 0; i < 1000; ++i) @@ -321,44 +321,44 @@ TestIntfI::opVarDict_async(Test::CustomMap<std::string, Ice::Int> in, } void -TestIntfI::opCustomIntStringDict_async(std::map<Ice::Int, ::Util::string_view> in, - std::function<void (const std::map<Ice::Int, ::Util::string_view>&, - const std::map<Ice::Int, ::Util::string_view>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opCustomIntStringDictAsync(std::map<Ice::Int, ::Util::string_view> in, + std::function<void (const std::map<Ice::Int, ::Util::string_view>&, + const std::map<Ice::Int, ::Util::string_view>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opShortBuffer_async(Test::ShortBuffer in, - std::function<void (const Test::ShortBuffer&, const Test::ShortBuffer&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opShortBufferAsync(Test::ShortBuffer in, + std::function<void (const Test::ShortBuffer&, const Test::ShortBuffer&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opBoolBuffer_async(Test::CustomBuffer<bool> in, - std::function<void (const Test::CustomBuffer<bool>&, - const Test::CustomBuffer<bool>&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opBoolBufferAsync(Test::CustomBuffer<bool> in, + std::function<void (const Test::CustomBuffer<bool>&, + const Test::CustomBuffer<bool>&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in, in); } void -TestIntfI::opBufferStruct_async(Test::BufferStruct in, - std::function<void (const Test::BufferStruct&)> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::opBufferStructAsync(Test::BufferStruct in, + std::function<void (const Test::BufferStruct&)> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { response(in); } void -TestIntfI::shutdown_async(std::function<void ()> response, - std::function<void (std::exception_ptr)>, const Ice::Current&) +TestIntfI::shutdownAsync(std::function<void ()> response, + std::function<void (std::exception_ptr)>, const Ice::Current&) { _communicator->shutdown(); response(); @@ -421,7 +421,7 @@ TestIntfI::opByteRange_async(const Test::AMD_TestIntf_opByteRangePtr& opByteRang void TestIntfI::opVariableRange_async(const Test::AMD_TestIntf_opVariableRangePtr& opVariableRangeCB, const std::pair<Test::VariableList::const_iterator, - Test::VariableList::const_iterator>& inSeq, + Test::VariableList::const_iterator>& inSeq, const Ice::Current&) { Test::VariableList outSeq(inSeq.first, inSeq.second); @@ -440,7 +440,7 @@ TestIntfI::opByteRangeType_async(const Test::AMD_TestIntf_opByteRangeTypePtr& op void TestIntfI::opVariableRangeType_async(const Test::AMD_TestIntf_opVariableRangeTypePtr& opVariableRangeTypeCB, const std::pair<std::deque<Test::Variable>::const_iterator, - std::deque<Test::Variable>::const_iterator>& inSeq, + std::deque<Test::Variable>::const_iterator>& inSeq, const Ice::Current&) { Test::VariableList outSeq; @@ -498,8 +498,8 @@ TestIntfI::opMyByteSeq_async(const Test::AMD_TestIntf_opMyByteSeqPtr& opMyByteSe void TestIntfI::opString_async(const Test::AMD_TestIntf_opStringPtr& opStringCB, - const Util::string_view& inString, - const Ice::Current&) + const Util::string_view& inString, + const Ice::Current&) { opStringCB->ice_response(inString, inString); } @@ -614,8 +614,8 @@ TestIntfI::opCPrxList_async(const Test::AMD_TestIntf_opCPrxListPtr& opCPrxListCB void TestIntfI::opCSeq_async(const Test::AMD_TestIntf_opCSeqPtr& opCSeqCB, - const std::deque<Test::CPtr>& inSeq, - const Ice::Current&) + const std::deque<Test::CPtr>& inSeq, + const Ice::Current&) { std::deque<Test::CPtr> outSeq(inSeq); opCSeqCB->ice_response(outSeq, outSeq); @@ -623,8 +623,8 @@ TestIntfI::opCSeq_async(const Test::AMD_TestIntf_opCSeqPtr& opCSeqCB, void TestIntfI::opCList_async(const Test::AMD_TestIntf_opCListPtr& opCListCB, - const Test::CList& inSeq, - const Ice::Current&) + const Test::CList& inSeq, + const Ice::Current&) { Test::CList outSeq(inSeq); opCListCB->ice_response(outSeq, outSeq); @@ -646,7 +646,7 @@ TestIntfI::opOutArrayByteSeq_async(const Test::AMD_TestIntf_opOutArrayByteSeqPtr const Ice::Current&) { cb->ice_response(std::pair<const Ice::Byte*, - const Ice::Byte*>(&inS[0], &inS[0] + inS.size())); + const Ice::Byte*>(&inS[0], &inS[0] + inS.size())); } void @@ -655,7 +655,7 @@ TestIntfI::opOutRangeByteSeq_async(const Test::AMD_TestIntf_opOutRangeByteSeqPtr const Ice::Current&) { cb->ice_response(std::pair<Test::ByteSeq::const_iterator, - Test::ByteSeq::const_iterator>(inS.begin(), inS.end())); + Test::ByteSeq::const_iterator>(inS.begin(), inS.end())); } void @@ -668,8 +668,8 @@ TestIntfI::opIntStringDict_async(const Test::AMD_TestIntf_opIntStringDictPtr& cb void TestIntfI::opVarDict_async(const Test::AMD_TestIntf_opVarDictPtr& cb, - const Test::CustomMap<std::string, Ice::Int>& inDict, - const Ice::Current&) + const Test::CustomMap<std::string, Ice::Int>& inDict, + const Ice::Current&) { Test::CustomMap<Ice::Long, Ice::Long> result; for(Ice::Long i = 0; i < 1000; ++i) |