summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/CsUtil.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-08-28 16:45:46 -0700
committerMark Spruiell <mes@zeroc.com>2012-08-28 16:45:46 -0700
commitb942ffebc2089adaa90233d69472c3289824a1c4 (patch)
treeae3c9e8c5af49b9c7800ae8f303ec8c723ed0d62 /cpp/include/Slice/CsUtil.h
parentmissing filter properties (diff)
downloadice-b942ffebc2089adaa90233d69472c3289824a1c4.tar.bz2
ice-b942ffebc2089adaa90233d69472c3289824a1c4.tar.xz
ice-b942ffebc2089adaa90233d69472c3289824a1c4.zip
initial support for optional params in C#
Diffstat (limited to 'cpp/include/Slice/CsUtil.h')
-rw-r--r--cpp/include/Slice/CsUtil.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpp/include/Slice/CsUtil.h b/cpp/include/Slice/CsUtil.h
index 39b8ac9bbae..9cc8360cb38 100644
--- a/cpp/include/Slice/CsUtil.h
+++ b/cpp/include/Slice/CsUtil.h
@@ -34,16 +34,22 @@ public:
protected:
static std::string fixId(const std::string&, int = 0, bool = false);
static std::string fixId(const ContainedPtr&, int = 0, bool = false);
- static std::string typeToString(const TypePtr&);
+ static std::string getOptionalType(const TypePtr&);
+ static std::string getStaticId(const TypePtr&);
+ static std::string typeToString(const TypePtr&, bool = false);
static bool isValueType(const TypePtr&);
//
// Generate code to marshal or unmarshal a type
//
void writeMarshalUnmarshalCode(::IceUtilInternal::Output&, const TypePtr&, const std::string&, bool, bool,
- bool, const std::string& = "", bool = false);
+ const std::string& = "");
+ void writeOptionalMarshalUnmarshalCode(::IceUtilInternal::Output&, const TypePtr&, const std::string&, int, bool,
+ bool, const std::string& = "");
void writeSequenceMarshalUnmarshalCode(::IceUtilInternal::Output&, const SequencePtr&, const std::string&,
- bool, bool);
+ bool, bool, bool);
+ void writeOptionalSequenceMarshalUnmarshalCode(::IceUtilInternal::Output&, const SequencePtr&, const std::string&,
+ int, bool, bool);
private: