diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-05-17 21:36:31 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-05-17 21:36:31 +0000 |
commit | 8ab0e64e8aea8398fcb85381e576b8c440ba6aa2 (patch) | |
tree | 2a97f61f8aade7b3b6e73b33ebfe31b87566a543 /cpp/src/slice2cppe | |
parent | typo (diff) | |
download | ice-8ab0e64e8aea8398fcb85381e576b8c440ba6aa2.tar.bz2 ice-8ab0e64e8aea8398fcb85381e576b8c440ba6aa2.tar.xz ice-8ab0e64e8aea8398fcb85381e576b8c440ba6aa2.zip |
Split DispatchStatus into DispatchStatus and ReplyStatus
Diffstat (limited to 'cpp/src/slice2cppe')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index de6073b63a9..d076c126124 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -1993,7 +1993,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) H << sp; H << nl - << "virtual ::IceInternal::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);"; + << "virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);"; string flatName = p->flattenedScope() + p->name() + "_all"; C << sp; @@ -2010,7 +2010,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) } C << eb << ';'; C << sp; - C << nl << "::IceInternal::DispatchStatus" << nl << scoped.substr(2) + C << nl << "::Ice::DispatchStatus" << nl << scoped.substr(2) << "::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)"; C << sb; @@ -2019,7 +2019,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) << ", current.operation);"; C << nl << "if(r.first == r.second)"; C << sb; - C << nl << "return ::IceInternal::DispatchOperationNotExist;"; + C << nl << "throw Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);"; C << eb; C << sp; C << nl << "switch(r.first - " << flatName << ')'; @@ -2035,7 +2035,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) C << eb; C << sp; C << nl << "assert(false);"; - C << nl << "return ::IceInternal::DispatchOperationNotExist;"; + C << nl << "throw Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);"; C << eb; } @@ -2156,11 +2156,11 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) H << nl << deprecateSymbol << "virtual " << retS << ' ' << fixKwd(name) << params << (isConst ? " const" : "") << " = 0;"; - H << nl << "::IceInternal::DispatchStatus ___" << name + H << nl << "::Ice::DispatchStatus ___" << name << "(::IceInternal::Incoming&, const ::Ice::Current&)" << (isConst ? " const" : "") << ';'; C << sp; - C << nl << "::IceInternal::DispatchStatus" << nl << scope.substr(2) << "___" << name + C << nl << "::Ice::DispatchStatus" << nl << scope.substr(2) << "___" << name << "(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)" << (isConst ? " const" : ""); C << sb; @@ -2216,11 +2216,11 @@ Slice::Gen::ObjectVisitor::visitOperation(const OperationPtr& p) C << nl << "catch(const " << fixKwd((*r)->scoped()) << "& __ex)"; C << sb; C << nl << "__os->write(__ex);"; - C << nl << "return ::IceInternal::DispatchUserException;"; + C << nl << "return ::Ice::DispatchUserException;"; C << eb; } } - C << nl << "return ::IceInternal::DispatchOK;"; + C << nl << "return ::Ice::DispatchOK;"; C << eb; } |