|
| StateRecorderImpl ()=default |
| Constructor. More...
|
|
| StateRecorderImpl (StateRecorderImpl &&inRHS) |
|
virtual void | WriteBytes (const void *inData, size_t inNumBytes) override |
| Write a string of bytes to the binary stream. More...
|
|
void | Rewind () |
| Rewind the stream for reading. More...
|
|
void | Clear () |
| Clear the stream for reuse. More...
|
|
virtual void | ReadBytes (void *outData, size_t inNumBytes) override |
| Read a string of bytes from the binary stream. More...
|
|
virtual bool | IsEOF () const override |
| Returns true when an attempt has been made to read past the end of the file. More...
|
|
virtual bool | IsFailed () const override |
| Returns true if there was an IO failure. More...
|
|
bool | IsEqual (StateRecorderImpl &inReference) |
| Compare this state with a reference state and ensure they are the same. More...
|
|
string | GetData () const |
| Convert the binary data to a string. More...
|
|
| StateRecorder ()=default |
| Constructor. More...
|
|
| StateRecorder (const StateRecorder &inRHS) |
|
void | SetValidating (bool inValidating) |
|
bool | IsValidating () const |
|
virtual | ~StreamIn ()=default |
| Virtual destructor. More...
|
|
virtual void | ReadBytes (void *outData, size_t inNumBytes)=0 |
| Read a string of bytes from the binary stream. More...
|
|
virtual bool | IsEOF () const =0 |
| Returns true when an attempt has been made to read past the end of the file. More...
|
|
virtual bool | IsFailed () const =0 |
| Returns true if there was an IO failure. More...
|
|
template<class T > |
void | Read (T &outT) |
| Read a primitive (e.g. float, int, etc.) from the binary stream. More...
|
|
template<class T , class A > |
void | Read (std::vector< T, A > &outT) |
| Read a vector of primitives from the binary stream. More...
|
|
template<class Type , class Traits , class Allocator > |
void | Read (std::basic_string< Type, Traits, Allocator > &outString) |
| Read a string from the binary stream (reads the number of characters and then the characters) More...
|
|
template<class T , class A , typename F > |
void | Read (std::vector< T, A > &outT, const F &inReadElement) |
| Read a vector of primitives from the binary stream using a custom function to read the elements. More...
|
|
void | Read (Vec3 &outVec) |
| Read a Vec3 (don't read W) More...
|
|
void | Read (DVec3 &outVec) |
| Read a DVec3 (don't read W) More...
|
|
void | Read (DMat44 &outVec) |
| Read a DMat44 (don't read W component of translation) More...
|
|
| NonCopyable ()=default |
|
| NonCopyable (const NonCopyable &)=delete |
|
void | operator= (const NonCopyable &)=delete |
|
virtual | ~StreamOut ()=default |
| Virtual destructor. More...
|
|
virtual void | WriteBytes (const void *inData, size_t inNumBytes)=0 |
| Write a string of bytes to the binary stream. More...
|
|
virtual bool | IsFailed () const =0 |
| Returns true if there was an IO failure. More...
|
|
template<class T > |
void | Write (const T &inT) |
| Write a primitive (e.g. float, int, etc.) to the binary stream. More...
|
|
template<class T , class A > |
void | Write (const std::vector< T, A > &inT) |
| Write a vector of primitives to the binary stream. More...
|
|
template<class Type , class Traits , class Allocator > |
void | Write (const std::basic_string< Type, Traits, Allocator > &inString) |
| Write a string to the binary stream (writes the number of characters and then the characters) More...
|
|
template<class T , class A , typename F > |
void | Write (const std::vector< T, A > &inT, const F &inWriteElement) |
| Write a vector of primitives to the binary stream using a custom write function. More...
|
|
void | Write (const Vec3 &inVec) |
| Write a Vec3 (don't write W) More...
|
|
void | Write (const DVec3 &inVec) |
| Write a DVec3 (don't write W) More...
|
|
void | Write (const DMat44 &inVec) |
| Write a DMat44 (don't write W component of translation) More...
|
|
Implementation of the StateRecorder class that uses a stringstream as underlying store and that implements checking if the state doesn't change upon reading.