Serializes data values into a string using sprintf functions. More...
#include <OgreStringSerialiser.h>
Public Member Functions | |
StringSerialiser (size_t size=0) | |
Initializes the serialiser with a starting buffer size. | |
~StringSerialiser () | |
String | str () const |
Returns the generated string. | |
StringSerialiser & | operator<< (const char *str) |
StringSerialiser & | operator<< (const String &str) |
StringSerialiser & | operator<< (char val) |
StringSerialiser & | operator<< (short val) |
StringSerialiser & | operator<< (int val) |
StringSerialiser & | operator<< (unsigned char val) |
StringSerialiser & | operator<< (unsigned short val) |
StringSerialiser & | operator<< (unsigned int val) |
StringSerialiser & | operator<< (float val) |
StringSerialiser & | operator<< (double val) |
Private Member Functions | |
void | growBuffer (size_t n) |
Private Attributes | |
char * | mBuffer |
size_t | mBufferSize |
size_t | mTotalSize |
Serializes data values into a string using sprintf functions.
Definition at line 36 of file OgreStringSerialiser.h.
Ogre::StringSerialiser::StringSerialiser | ( | size_t | size = 0 |
) |
Initializes the serialiser with a starting buffer size.
Ogre::StringSerialiser::~StringSerialiser | ( | ) |
void Ogre::StringSerialiser::growBuffer | ( | size_t | n | ) | [private] |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | double | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | float | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | unsigned int | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | unsigned short | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | unsigned char | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | int | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | short | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | char | val | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | const String & | str | ) |
StringSerialiser& Ogre::StringSerialiser::operator<< | ( | const char * | str | ) |
String Ogre::StringSerialiser::str | ( | ) | const |
Returns the generated string.
char* Ogre::StringSerialiser::mBuffer [private] |
Definition at line 39 of file OgreStringSerialiser.h.
size_t Ogre::StringSerialiser::mBufferSize [private] |
Definition at line 40 of file OgreStringSerialiser.h.
size_t Ogre::StringSerialiser::mTotalSize [private] |
Definition at line 40 of file OgreStringSerialiser.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:40:54 2012