diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-10-31 18:30:45 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-10-31 18:30:45 +0000 |
commit | 2ac6e741851889c0746837cb3a6225a9fee70c3f (patch) | |
tree | 46486eda7707551668c7c0f0abb51408eed517fa /cpp/src | |
parent | disabling the memory pool by default (diff) | |
download | ice-2ac6e741851889c0746837cb3a6225a9fee70c3f.tar.bz2 ice-2ac6e741851889c0746837cb3a6225a9fee70c3f.tar.xz ice-2ac6e741851889c0746837cb3a6225a9fee70c3f.zip |
bug 1257: deprecate nonmutating
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/RubyUtil.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp index 185aadf23d5..d9b8c6121f7 100644 --- a/cpp/src/Slice/RubyUtil.cpp +++ b/cpp/src/Slice/RubyUtil.cpp @@ -637,6 +637,19 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) _out << "::Ice::OperationMode::Idempotent"; break; } + _out << ", "; + switch((*s)->sendMode()) + { + case Operation::Normal: + _out << "::Ice::OperationMode::Normal"; + break; + case Operation::Nonmutating: + _out << "::Ice::OperationMode::Nonmutating"; + break; + case Operation::Idempotent: + _out << "::Ice::OperationMode::Idempotent"; + break; + } _out << ", " << ((p->hasMetaData("amd") || (*s)->hasMetaData("amd")) ? "true" : "false") << ", ["; for(t = params.begin(), count = 0; t != params.end(); ++t) { |