diff options
author | Joe George <joe@zeroc.com> | 2015-12-03 09:45:09 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-12-03 09:45:09 -0500 |
commit | eb1473089bfe9105b3884a490edafeb561df935e (patch) | |
tree | 71249e567e5dc11b26b27543083d1ec5c5585037 /cpp/include/Slice/CPlusPlusUtil.h | |
parent | C++11 mapping: update & timeout tests (diff) | |
download | ice-eb1473089bfe9105b3884a490edafeb561df935e.tar.bz2 ice-eb1473089bfe9105b3884a490edafeb561df935e.tar.xz ice-eb1473089bfe9105b3884a490edafeb561df935e.zip |
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.
Diffstat (limited to 'cpp/include/Slice/CPlusPlusUtil.h')
-rw-r--r-- | cpp/include/Slice/CPlusPlusUtil.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |