From eb1473089bfe9105b3884a490edafeb561df935e Mon Sep 17 00:00:00 2001 From: Joe George Date: Thu, 3 Dec 2015 09:45:09 -0500 Subject: ICE-6897 - Add delegate metadata The "delegate" metadata tag can be applied to interfaces with one operation. In C++ they are mapped to std::function's, in C# delegates. In Java we still generate a interface with one operation, which is a FunctionalInterface. --- cpp/include/Slice/CPlusPlusUtil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/include/Slice/CPlusPlusUtil.h') diff --git a/cpp/include/Slice/CPlusPlusUtil.h b/cpp/include/Slice/CPlusPlusUtil.h index 9d3bc8ebc94..413a855e2d3 100644 --- a/cpp/include/Slice/CPlusPlusUtil.h +++ b/cpp/include/Slice/CPlusPlusUtil.h @@ -65,6 +65,8 @@ SLICE_API std::string findMetaData(const StringList&, int = 0); SLICE_API bool inWstringModule(const SequencePtr&); SLICE_API std::string getDataMemberRef(const DataMemberPtr&); + +SLICE_API std::string classDefToDelegateString(const ClassDefPtr&, int = 0, bool = false); } #endif -- cgit v1.2.3