Generic class for serialising data to / from binary stream-based files. More...
#include <OgreSerializer.h>
Public Types | |
enum | Endian { ENDIAN_NATIVE, ENDIAN_BIG, ENDIAN_LITTLE } |
The endianness of written files. More... | |
Public Member Functions | |
Serializer () | |
virtual | ~Serializer () |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
Protected Member Functions | |
virtual void | determineEndianness (DataStreamPtr &stream) |
Determine the endianness of the incoming stream compared to native. More... | |
virtual void | determineEndianness (Endian requestedEndian) |
Determine the endianness to write with based on option. More... | |
virtual void | flipEndian (void *pData, size_t size, size_t count) |
virtual void | flipEndian (void *pData, size_t size) |
virtual void | flipFromLittleEndian (void *pData, size_t size, size_t count=1) |
virtual void | flipToLittleEndian (void *pData, size_t size, size_t count=1) |
void | readBools (DataStreamPtr &stream, bool *pDest, size_t count) |
virtual unsigned short | readChunk (DataStreamPtr &stream) |
virtual void | readFileHeader (DataStreamPtr &stream) |
void | readFloats (DataStreamPtr &stream, float *pDest, size_t count) |
void | readFloats (DataStreamPtr &stream, double *pDest, size_t count) |
void | readInts (DataStreamPtr &stream, uint32 *pDest, size_t count) |
void | readObject (DataStreamPtr &stream, Vector3 &pDest) |
void | readObject (DataStreamPtr &stream, Quaternion &pDest) |
void | readShorts (DataStreamPtr &stream, uint16 *pDest, size_t count) |
String | readString (DataStreamPtr &stream) |
String | readString (DataStreamPtr &stream, size_t numChars) |
void | writeBools (const bool *const pLong, size_t count) |
virtual void | writeChunkHeader (uint16 id, size_t size) |
void | writeData (const void *const buf, size_t size, size_t count) |
virtual void | writeFileHeader (void) |
void | writeFloats (const float *const pfloat, size_t count) |
void | writeFloats (const double *const pfloat, size_t count) |
void | writeInts (const uint32 *const pInt, size_t count) |
void | writeObject (const Vector3 &vec) |
void | writeObject (const Quaternion &q) |
void | writeShorts (const uint16 *const pShort, size_t count) |
void | writeString (const String &string) |
Protected Attributes | |
uint32 | mCurrentstreamLen |
bool | mFlipEndian |
DataStreamPtr | mStream |
String | mVersion |
Generic class for serialising data to / from binary stream-based files.
Definition at line 50 of file OgreSerializer.h.
The endianness of written files.
Enumerator | |
---|---|
ENDIAN_NATIVE |
Use the platform native endian. |
ENDIAN_BIG |
Use big endian (0x1000 is serialised as 0x10 0x00) |
ENDIAN_LITTLE |
Use little endian (0x1000 is serialised as 0x00 0x10) |
Definition at line 57 of file OgreSerializer.h.
Ogre::Serializer::Serializer | ( | ) |
|
virtual |
|
protectedvirtual |
Determine the endianness of the incoming stream compared to native.
|
protectedvirtual |
Determine the endianness to write with based on option.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in Ogre::SkeletonSerializer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 70 of file OgreSerializer.h.
|
protected |
Definition at line 73 of file OgreSerializer.h.
|
protected |
Definition at line 71 of file OgreSerializer.h.
|
protected |
Definition at line 72 of file OgreSerializer.h.