20 virtual void WriteBytes(
const void *inData,
size_t inNumBytes)
override;
29 virtual void ReadBytes(
void *outData,
size_t inNumBytes)
override;
32 virtual bool IsEOF()
const override {
return mStream.eof(); }
35 virtual bool IsFailed()
const override {
return mStream.fail(); }
41 string GetData()
const {
return mStream.str(); }
44 std::stringstream mStream;
#define JPH_EXPORT
Definition: Core.h:227
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
Definition: StateRecorder.h:48
Implementation of the StateRecorder class that uses a stringstream as underlying store and that imple...
Definition: StateRecorderImpl.h:13
StateRecorderImpl()=default
Constructor.
virtual bool IsFailed() const override
Returns true if there was an IO failure.
Definition: StateRecorderImpl.h:35
string GetData() const
Convert the binary data to a string.
Definition: StateRecorderImpl.h:41
virtual bool IsEOF() const override
Returns true when an attempt has been made to read past the end of the file.
Definition: StateRecorderImpl.h:32
StateRecorderImpl(StateRecorderImpl &&inRHS)
Definition: StateRecorderImpl.h:17
virtual void ReadBytes(void *outData, size_t inNumBytes)=0
Read a string of bytes from the binary stream.
virtual void WriteBytes(const void *inData, size_t inNumBytes)=0
Write a string of bytes to the binary stream.
Definition: Reference.h:204