From 230147cdb4eed8f55613986562258e13a8680173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Mon, 25 Dec 2017 12:02:11 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@589 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/core/pichunkstream.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src_main/core/pichunkstream.h b/src_main/core/pichunkstream.h index 8a4b1c4d..354bc696 100644 --- a/src_main/core/pichunkstream.h +++ b/src_main/core/pichunkstream.h @@ -47,7 +47,10 @@ public: //! Returns chunk with ID "id" and value "data" for write to stream template static Chunk chunk(int id, const T & data) {return Chunk(id, data);} - + + //! Add data to this chunk strean with ID "id" and value "data" + template PIChunkStream & add(int id, const T & data) {*this << Chunk(id, data); return *this;} + void setSource(const PIByteArray & data); void setSource(PIByteArray * data);