diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
commit | 2c578015edcb36cdc0acd0227295de1dcca1b995 (patch) | |
tree | e163980b5dabb43a40089a29fdf8ff47a3e07f1c /cpp/src/slice2java/Gen.h | |
parent | no longer generating inspect method for each Ruby exception (diff) | |
download | ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2 ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip |
New AMI mapping
Diffstat (limited to 'cpp/src/slice2java/Gen.h')
-rw-r--r-- | cpp/src/slice2java/Gen.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h index cb02fbeeb7a..617e2c751d3 100644 --- a/cpp/src/slice2java/Gen.h +++ b/cpp/src/slice2java/Gen.h @@ -27,10 +27,13 @@ protected: JavaVisitor(const std::string&); + enum ParamDir { InParam, OutParam }; + // // Compose the parameter lists for an operation. // std::vector<std::string> getParams(const OperationPtr&, const std::string&, bool = false); + std::vector<std::string> getInOutParams(const OperationPtr&, const std::string&, ParamDir); std::vector<std::string> getParamsAsync(const OperationPtr&, const std::string&, bool); std::vector<std::string> getParamsAsyncCB(const OperationPtr&, const std::string&); @@ -38,6 +41,7 @@ protected: // Compose the argument lists for an operation. // std::vector<std::string> getArgs(const OperationPtr&); + std::vector<std::string> getInOutArgs(const OperationPtr&, ParamDir); std::vector<std::string> getArgsAsync(const OperationPtr&); std::vector<std::string> getArgsAsyncCB(const OperationPtr&); @@ -71,10 +75,11 @@ protected: const std::string&, const std::string& = ""); static void writeDocCommentOp(::IceUtilInternal::Output&, const OperationPtr&); - enum ParamDir { InParam, OutParam }; static void writeDocCommentAsync(::IceUtilInternal::Output&, const OperationPtr&, ParamDir, const std::string& = ""); - static void writeDocCommentParam(::IceUtilInternal::Output&, const OperationPtr&, ParamDir); + static void writeDocCommentAMI(::IceUtilInternal::Output&, const OperationPtr&, ParamDir, const std::string& = "", + const std::string& = "", const std::string& = ""); + static void writeDocCommentParam(::IceUtilInternal::Output&, const OperationPtr&, ParamDir, bool = true); }; class Gen : private ::IceUtil::noncopyable @@ -294,6 +299,10 @@ private: AsyncVisitor(const std::string&); virtual void visitOperation(const OperationPtr&); + + private: + + static std::string initValue(const TypePtr&); }; }; |