#include <OgreStringConverter.h>
Static Public Methods | |
String | toString (Real val, unsigned short precision=6, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
Converts a Real to a String. | |
String | toString (Radian val, unsigned short precision=6, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
Converts a Radian to a String. | |
String | toString (Degree val, unsigned short precision=6, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
Converts a Degree to a String. | |
String | toString (int val, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
Converts an int to a String. | |
String | toString (unsigned int val, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
Converts an int to a String. | |
String | toString (long val, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
Converts a long to a String. | |
String | toString (unsigned long val, unsigned short width=0, char fill='', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
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. | |
Radian | parseAngle (const String &val) |
Converts a String to a Angle. | |
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 53 of file OgreStringConverter.h.
|
Converts a String to a Angle.
Definition at line 137 of file OgreStringConverter.h. References Ogre::String. |
|
Converts a String to a boolean.
Definition at line 220 of file OgreStringConverter.cpp. References Ogre::String. |
|
Parses a ColourValue out of a String.
Definition at line 294 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String. |
|
Converts a String to a whole number.
Definition at line 200 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a String to a whole number.
Definition at line 210 of file OgreStringConverter.cpp. References Ogre::String. |
|
Parses a Matrix3 out of a String.
Definition at line 244 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String. |
|
Parses a Matrix4 out of a String.
Definition at line 261 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String. |
|
Parses a Quaternion out of a String.
Definition at line 279 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String. |
|
Converts a String to a Real.
Definition at line 195 of file OgreStringConverter.cpp. References Ogre::Real, and Ogre::String. Referenced by parseColourValue(), parseMatrix3(), parseMatrix4(), parseQuaternion(), and parseVector3(). |
|
Pareses a StringVector from a string.
Definition at line 313 of file OgreStringConverter.cpp. References Ogre::String, and Ogre::StringVector. |
|
Converts a String to a whole number.
Definition at line 205 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a String to a whole number.
Definition at line 215 of file OgreStringConverter.cpp. References Ogre::String. |
|
Parses a Vector3 out of a String.
Definition at line 228 of file OgreStringConverter.cpp. References parseReal(), and Ogre::String. |
|
Converts a StringVector to a string.
Definition at line 179 of file OgreStringConverter.cpp. References Ogre::String, and Ogre::StringVector. |
|
Converts a ColourValue to a String.
Definition at line 172 of file OgreStringConverter.cpp. References Ogre::ColourValue::a, Ogre::ColourValue::b, Ogre::ColourValue::g, Ogre::ColourValue::r, and Ogre::String. |
|
Converts a Quaternion to a String.
Definition at line 165 of file OgreStringConverter.cpp. References Ogre::String, Ogre::Quaternion::w, Ogre::Quaternion::x, Ogre::Quaternion::y, and Ogre::Quaternion::z. |
|
Converts a Matrix4 to a String.
Definition at line 143 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a Matrix3 to a String.
Definition at line 104 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a Vector3 to a String.
Definition at line 97 of file OgreStringConverter.cpp. References Ogre::String, Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z. |
|
Converts a boolean to a String.
Definition at line 119 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a long to a String.
Definition at line 85 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a long to a String.
Definition at line 73 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts an int to a String.
Definition at line 61 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts an int to a String.
Definition at line 49 of file OgreStringConverter.cpp. References Ogre::String. |
|
Converts a Degree to a String.
Definition at line 69 of file OgreStringConverter.h. References Ogre::String, and Ogre::Degree::valueAngleUnits(). |
|
Converts a Radian to a String.
Definition at line 62 of file OgreStringConverter.h. References Ogre::String, and Ogre::Radian::valueAngleUnits(). |
|
Converts a Real to a String.
Definition at line 36 of file OgreStringConverter.cpp. References Ogre::Real, and Ogre::String. |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:41 2004