summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/InterfaceByValue.h
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2016-06-08 15:30:30 -0400
committerJoe George <joe@zeroc.com>2016-06-08 15:30:30 -0400
commite5a8741b6af4bff17d3db4a3f37c26c4f21194c4 (patch)
treedfeb2fb83d200b8a411cd65b7de3db928a418ce4 /cpp/include/Ice/InterfaceByValue.h
parentReplaced some ScopeArrays by vector or wstring (diff)
downloadice-e5a8741b6af4bff17d3db4a3f37c26c4f21194c4.tar.bz2
ice-e5a8741b6af4bff17d3db4a3f37c26c4f21194c4.tar.xz
ice-e5a8741b6af4bff17d3db4a3f37c26c4f21194c4.zip
ICE-6982 and ICE-6946
- Refactord C++ class/exception stream generated code - Changed return type of Obejct::ice_id() to std::string for C++11
Diffstat (limited to 'cpp/include/Ice/InterfaceByValue.h')
-rw-r--r--cpp/include/Ice/InterfaceByValue.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/cpp/include/Ice/InterfaceByValue.h b/cpp/include/Ice/InterfaceByValue.h
index 985e022d4dd..c0b3c437463 100644
--- a/cpp/include/Ice/InterfaceByValue.h
+++ b/cpp/include/Ice/InterfaceByValue.h
@@ -23,22 +23,7 @@ template<typename T>
class InterfaceByValue : public Ice::ValueHelper<Ice::InterfaceByValue<T>, Ice::Value>
{
public:
-
- virtual void
- __writeImpl(::Ice::OutputStream* __os) const
- {
- __os->startSlice(T::ice_staticId(), -1, true);
- __os->endSlice();
- }
-
- virtual void
- __readImpl(::Ice::InputStream* __is)
- {
- __is->startSlice();
- __is->endSlice();
- }
-
- virtual const std::string& ice_id() const
+ virtual std::string ice_id() const
{
return T::ice_staticId();
}
@@ -49,7 +34,20 @@ public:
}
};
+template<typename S, typename T>
+struct StreamWriter<Ice::InterfaceByValue<T>, S>
+{
+ static void write(S* __os, const Ice::InterfaceByValue<T>& v) { }
+};
+
+template<typename S, typename T>
+struct StreamReader<Ice::InterfaceByValue<T>, S>
+{
+ static void read(S* __is, Ice::InterfaceByValue<T>& v) { }
+};
+
}
+
#endif
#endif