From 23359ca76063f3a5ddff1771edd4de3c05fede8c Mon Sep 17 00:00:00 2001 From: Philip Rauwolf Date: Wed, 16 Jan 2013 15:02:13 +0100 Subject: [PATCH] Finished integration of SerializableVeriant into InputStream --- src/CommonAPI/DBus/DBusInputStream.cpp | 6 ++++++ src/CommonAPI/DBus/DBusInputStream.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/CommonAPI/DBus/DBusInputStream.cpp b/src/CommonAPI/DBus/DBusInputStream.cpp index afed173..2f39891 100644 --- a/src/CommonAPI/DBus/DBusInputStream.cpp +++ b/src/CommonAPI/DBus/DBusInputStream.cpp @@ -203,6 +203,12 @@ void DBusInputStream::beginReadVectorOfSerializableStructs() { savedStreamPositions_.push(currentDataPosition_); } +void DBusInputStream::beginReadVectorOfSerializableVariants() { + beginReadGenericVector(); + alignToBoundary(8); + savedStreamPositions_.push(currentDataPosition_); +} + void DBusInputStream::beginReadVectorOfVectors() { beginReadGenericVector(); savedStreamPositions_.push(currentDataPosition_); diff --git a/src/CommonAPI/DBus/DBusInputStream.h b/src/CommonAPI/DBus/DBusInputStream.h index 1c54aca..cdb22ff 100644 --- a/src/CommonAPI/DBus/DBusInputStream.h +++ b/src/CommonAPI/DBus/DBusInputStream.h @@ -85,6 +85,7 @@ class DBusInputStream: public InputStream { virtual void beginReadByteBufferVector(); virtual void beginReadVersionVector(); virtual void beginReadVectorOfSerializableStructs(); + virtual void beginReadVectorOfSerializableVariants(); virtual void beginReadVectorOfVectors(); virtual void beginReadVectorOfMaps(); -- 2.7.4