diff options
author | Brent Eagles <brent@zeroc.com> | 2005-09-02 16:42:58 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-09-02 16:42:58 +0000 |
commit | 9716a470f487e4d400f2d7c320127783187c54da (patch) | |
tree | 1bed72beac14cf0d76909797a52925ecbdfc1137 /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | Fix potential NPE (diff) | |
download | ice-9716a470f487e4d400f2d7c320127783187c54da.tar.bz2 ice-9716a470f487e4d400f2d7c320127783187c54da.tar.xz ice-9716a470f487e4d400f2d7c320127783187c54da.zip |
fixes for bug 422
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index adf24fd7267..cb0da979e08 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -273,6 +273,35 @@ Slice::outputTypeToString(const TypePtr& type) return "???"; } +string +Slice::operationModeToString(Operation::Mode mode) +{ + switch(mode) + { + case Operation::Normal: + { + return "::Ice::Normal"; + } + + case Operation::Nonmutating: + { + return "::Ice::Nonmutating"; + } + + case Operation::Idempotent: + { + return "::Ice::Idempotent"; + } + + default: + { + assert(false); + } + } + + return "???"; +} + // // If the passed name is a keyword, return the name with a "_cxx_" prefix; // otherwise, return the name unchanged. |