#include <OgreStringConverter.h>
Static Public Methods | |
String | toString (Real val) |
Converts a Real to a String. More... | |
String | toString (int val) |
Converts an int to a String. More... | |
String | toString (unsigned int val) |
Converts an int to a String. More... | |
String | toString (long val) |
Converts a long to a String. More... | |
String | toString (unsigned long val) |
Converts a long to a String. More... | |
String | toString (bool val) |
Converts a boolean to a String. More... | |
String | toString (const Vector3 &val) |
Converts a Vector3 to a String. More... | |
String | toString (const Matrix3 &val) |
Converts a Matrix3 to a String. More... | |
String | toString (const Matrix4 &val) |
Converts a Matrix4 to a String. More... | |
String | toString (const Quaternion &val) |
Converts a Quaternion to a String. More... | |
String | toString (const ColourValue &val) |
Converts a ColourValue to a String. More... | |
Real | parseReal (const String &val) |
Converts a String to a Real. More... | |
int | parseInt (const String &val) |
Converts a String to a whole number. More... | |
unsigned int | parseUnsignedInt (const String &val) |
Converts a String to a whole number. More... | |
long | parseLong (const String &val) |
Converts a String to a whole number. More... | |
unsigned long | parseUnsignedLong (const String &val) |
Converts a String to a whole number. More... | |
bool | parseBool (const String &val) |
Converts a String to a boolean. More... | |
Vector3 | parseVector3 (const String &val) |
Parses a Vector3 out of a String. More... | |
Matrix3 | parseMatrix3 (const String &val) |
Parses a Matrix3 out of a String. More... | |
Matrix4 | parseMatrix4 (const String &val) |
Parses a Matrix4 out of a String. More... | |
Quaternion | parseQuaternion (const String &val) |
Parses a Quaternion out of a String. More... | |
ColourValue | parseColourValue (const String &val) |
Parses a ColourValue out of a String. More... |
This class is mainly used for parsing settings in text files. External applications can also use it to interface with classes which use the StringInterface template class.
The String formats of each of the major types is listed with the methods. The basic types like int and Real just use the underlying C runtime library atof and atoi family methods, however custom types like Vector3, ColourValue and Matrix4 are also supported by this class using custom formats.
|
Converts a String to a boolean.
|
|
Parses a ColourValue out of a String.
|
|
Converts a String to a whole number.
|
|
Converts a String to a whole number.
|
|
Parses a Matrix3 out of a String.
|
|
Parses a Matrix4 out of a String.
|
|
Parses a Quaternion out of a String.
|
|
Converts a String to a Real.
|
|
Converts a String to a whole number.
|
|
Converts a String to a whole number.
|
|
Parses a Vector3 out of a String.
|
|
Converts a ColourValue to a String.
|
|
Converts a Quaternion to a String.
|
|
Converts a Matrix4 to a String.
|
|
Converts a Matrix3 to a String.
|
|
Converts a Vector3 to a String.
|
|
Converts a boolean to a String.
|
|
Converts a long to a String.
|
|
Converts a long to a String.
|
|
Converts an int to a String.
|
|
Converts an int to a String.
|
|
Converts a Real to a String. Trivial format, full precision. |
Copyright © 2002 by The OGRE Team