diff options
author | Michi Henning <michi@zeroc.com> | 2003-09-07 00:01:28 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-09-07 00:01:28 +0000 |
commit | a5b75f2aaca07b9f5d2ea13760059538c702f588 (patch) | |
tree | 02e5ca888951cfbb7f3303ff1412d52924759766 /cpp/src/Slice/Parser.cpp | |
parent | Fixed race condition in flushBatchRequests(): connections that are not yet (diff) | |
download | ice-a5b75f2aaca07b9f5d2ea13760059538c702f588.tar.bz2 ice-a5b75f2aaca07b9f5d2ea13760059538c702f588.tar.xz ice-a5b75f2aaca07b9f5d2ea13760059538c702f588.zip |
Implemented TwowayOnlyException.
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index 312d8ff62c8..5b99481a082 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -3739,6 +3739,29 @@ Slice::Operation::returnsClasses() const return false; } +bool +Slice::Operation::returnsData() const +{ + TypePtr t = returnType(); + if(t) + { + return true; + } + ParamDeclList pdl = parameters(); + for(ParamDeclList::const_iterator i = pdl.begin(); i != pdl.end(); ++i) + { + if((*i)->isOutParam()) + { + return true; + } + } + if(!throws().empty()) + { + return true; + } + return false; +} + string Slice::Operation::kindOf() const { |