#include <OgreStringConverter.h>
Static Public Methods | |
String | toString (Real val) |
Converts a Real to a String. | |
String | toString (int val) |
Converts an int to a String. | |
String | toString (unsigned int val) |
Converts an int to a String. | |
String | toString (long val) |
Converts a long to a String. | |
String | toString (unsigned long val) |
Converts a long to a String. | |
String | toString (bool val, bool yesNo=false) |
Converts a boolean to a String. | |
String | toString (const Vector3 &val) |
Converts a Vector3 to a String. | |
String | toString (const Matrix3 &val) |
Converts a Matrix3 to a String. | |
String | toString (const Matrix4 &val) |
Converts a Matrix4 to a String. | |
String | toString (const Quaternion &val) |
Converts a Quaternion to a String. | |
String | toString (const ColourValue &val) |
Converts a ColourValue to a String. | |
String | toString (const StringVector &val) |
Converts a StringVector to a string. | |
Real | parseReal (const String &val) |
Converts a String to a Real. | |
int | parseInt (const String &val) |
Converts a String to a whole number. | |
unsigned int | parseUnsignedInt (const String &val) |
Converts a String to a whole number. | |
long | parseLong (const String &val) |
Converts a String to a whole number. | |
unsigned long | parseUnsignedLong (const String &val) |
Converts a String to a whole number. | |
bool | parseBool (const String &val) |
Converts a String to a boolean. | |
Vector3 | parseVector3 (const String &val) |
Parses a Vector3 out of a String. | |
Matrix3 | parseMatrix3 (const String &val) |
Parses a Matrix3 out of a String. | |
Matrix4 | parseMatrix4 (const String &val) |
Parses a Matrix4 out of a String. | |
Quaternion | parseQuaternion (const String &val) |
Parses a Quaternion out of a String. | |
ColourValue | parseColourValue (const String &val) |
Parses a ColourValue out of a String. | |
StringVector | parseStringVector (const String &val) |
Pareses a StringVector from a string. |
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.
Definition at line 52 of file OgreStringConverter.h.
|
Converts a String to a boolean.
Definition at line 194 of file OgreStringConverter.cpp. |
|
Parses a ColourValue out of a String.
Definition at line 268 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String::split(). |
|
Converts a String to a whole number.
Definition at line 174 of file OgreStringConverter.cpp. |
|
Converts a String to a whole number.
Definition at line 184 of file OgreStringConverter.cpp. |
|
Parses a Matrix3 out of a String.
Definition at line 218 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String::split(). |
|
Parses a Matrix4 out of a String.
Definition at line 235 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String::split(). |
|
Parses a Quaternion out of a String.
Definition at line 253 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String::split(). |
|
Converts a String to a Real.
Definition at line 169 of file OgreStringConverter.cpp. References Ogre::Real. Referenced by parseColourValue(), parseMatrix3(), parseMatrix4(), parseQuaternion(), and parseVector3(). |
|
Pareses a StringVector from a string.
Definition at line 287 of file OgreStringConverter.cpp. References Ogre::String::split(), and Ogre::StringVector. |
|
Converts a String to a whole number.
Definition at line 179 of file OgreStringConverter.cpp. |
|
Converts a String to a whole number.
Definition at line 189 of file OgreStringConverter.cpp. |
|
Parses a Vector3 out of a String.
Definition at line 202 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String::split(). |
|
Converts a StringVector to a string.
Definition at line 153 of file OgreStringConverter.cpp. References Ogre::StringVector. |
|
Converts a ColourValue to a String.
Definition at line 146 of file OgreStringConverter.cpp. References Ogre::ColourValue::a, Ogre::ColourValue::b, Ogre::ColourValue::g, and Ogre::ColourValue::r. |
|
Converts a Quaternion to a String.
Definition at line 139 of file OgreStringConverter.cpp. References Ogre::Quaternion::w, Ogre::Quaternion::x, Ogre::Quaternion::y, and Ogre::Quaternion::z. |
|
Converts a Matrix4 to a String.
Definition at line 117 of file OgreStringConverter.cpp. |
|
Converts a Matrix3 to a String.
Definition at line 78 of file OgreStringConverter.cpp. |
|
Converts a Vector3 to a String.
Definition at line 71 of file OgreStringConverter.cpp. References Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. |
|
Converts a boolean to a String.
Definition at line 93 of file OgreStringConverter.cpp. |
|
Converts a long to a String.
Definition at line 64 of file OgreStringConverter.cpp. |
|
Converts a long to a String.
Definition at line 57 of file OgreStringConverter.cpp. |
|
Converts an int to a String.
Definition at line 50 of file OgreStringConverter.cpp. |
|
Converts an int to a String.
Definition at line 43 of file OgreStringConverter.cpp. |
|
Converts a Real to a String. Trivial format, full precision. Definition at line 36 of file OgreStringConverter.cpp. References Ogre::Real. |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:27:19 2004