Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

new: Constructor from Stream DataBlobResponse

  • Loading branch information...
commit 019252080d60f2106d9a5c07b75888ae7833c083 1 parent cef600e
@chrisjwilliams chrisjwilliams authored
View
1  pelican/comms/DataBlobResponse.h
@@ -26,6 +26,7 @@ class DataBlobResponse : public ServerResponse
public:
DataBlobResponse( const QString& blobType, const QString& dataName,
quint64 dataSize, QSysInfo::Endian endianness );
+ DataBlobResponse( QDataStream& stream );
~DataBlobResponse();
const QString& blobClass() const { return _type; }
const QString& dataName() const { return _name; }
View
6 pelican/comms/src/DataBlobResponse.cpp
@@ -17,6 +17,12 @@ DataBlobResponse::DataBlobResponse(const QString& blobType,
{
}
+DataBlobResponse::DataBlobResponse( QDataStream& stream )
+ : ServerResponse( ServerResponse::Blob )
+{
+ deserialise(stream);
+}
+
/**
* @details
*/
Please sign in to comment.
Something went wrong with that request. Please try again.