diff --git a/base/include/parcel.h b/base/include/parcel.h index 3ce1b4d8ea82c67e1b326cd90cf39cace5700b56..1567527f8ab3ade58aa8e8d48def49d02c895203 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