From c59867b4a82d87459181e3dd2d4db0908cdaad92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=AF=E9=91=AB?= Date: Thu, 13 Apr 2023 15:15:15 +0800 Subject: [PATCH] add private variable 'isRecordingToFile' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 凯鑫 --- base/include/parcel.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/include/parcel.h b/base/include/parcel.h index 3ce1b4d..1567527 100644 --- a/base/include/parcel.h +++ b/base/include/parcel.h @@ -725,7 +725,10 @@ public: bool ReadInt16Unaligned(int16_t &value); bool ReadUint8Unaligned(uint8_t &value); bool ReadUint16Unaligned(uint16_t &value); - + #ifdef RS_ENABLE_RECORDING + bool GetIsRecordingToFile(){return isRecordingToFile;} + void SetIsRecordingToFiel(bool flag){isRecordingToFile = flag;} + #endif protected: /** * @brief Record position of the written object, which are represented by @@ -789,6 +792,9 @@ private: Allocator *allocator_; std::vector> objectHolder_; bool writable_ = true; + #ifdef RS_ENABLE_RECORDING + bool isRecordingToFile = false; + #endif }; template -- Gitee