diff options
author | Marc Laukien <marc@zeroc.com> | 2001-11-28 21:26:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-11-28 21:26:04 +0000 |
commit | a60d11c20942109604735dc617576dbecdc8d23b (patch) | |
tree | 3fd48680cb34d0b335248a207e93f7de227b021f /cpp/src/slice2cpp/Gen.cpp | |
parent | todo (diff) | |
download | ice-a60d11c20942109604735dc617576dbecdc8d23b.tar.bz2 ice-a60d11c20942109604735dc617576dbecdc8d23b.tar.xz ice-a60d11c20942109604735dc617576dbecdc8d23b.zip |
started with context, current
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index e73f836d3a6..54efdc5027f 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1635,8 +1635,8 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) { H << nl << exp2 << "static const char* __mutating[" << allMutatingOpNames.size() << "];"; } - H << nl << exp2 << "virtual ::IceInternal::DispatchStatus __dispatch(::IceInternal::Incoming&, " - << "const ::std::string&, const ::std::string&, const ::std::string&);"; + H << nl << exp2 + << "virtual ::IceInternal::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);"; H << nl << exp2 << "virtual bool __isMutating(const ::std::string&);"; C << sp; C << nl << "const char* " << scoped.substr(2) << "::__all[] ="; @@ -1668,12 +1668,12 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) C << eb << ';'; } C << sp; - C << nl << "::IceInternal::DispatchStatus" << nl << scoped.substr(2) << "::__dispatch(" - << "::IceInternal::Incoming& in, const ::std::string&, const ::std::string&, const ::std::string& s)"; + C << nl << "::IceInternal::DispatchStatus" << nl << scoped.substr(2) + << "::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)"; C << sb; C << nl << "const char** b = __all;"; C << nl << "const char** e = __all + " << allOpNames.size() << ';'; - C << nl << "::std::pair< const char**, const char**> r = ::std::equal_range(b, e, s);"; + C << nl << "::std::pair< const char**, const char**> r = ::std::equal_range(b, e, current.operation);"; C << nl << "if (r.first == r.second)"; C << sb; C << nl << "return ::IceInternal::DispatchOperationNotExist;"; |