Class for converting the core Ogre data types to/from Strings. More...
#include <OgreStringConverter.h>
Static Public Member Functions | |
| static 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. | |
| static 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. | |
| static 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. | |
| static String | toString (int val, unsigned short width=0, char fill= ' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| Converts an int to a String. | |
| static String | toString (size_t val, unsigned short width=0, char fill= ' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| Converts a size_t to a String. | |
| static String | toString (unsigned long val, unsigned short width=0, char fill= ' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| Converts an unsigned long to a String. | |
| static String | toString (long val, unsigned short width=0, char fill= ' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| Converts a long to a String. | |
| static String | toString (bool val, bool yesNo=false) |
| Converts a boolean to a String. | |
| static String | toString (const Vector2 &val) |
| Converts a Vector2 to a String. | |
| static String | toString (const Vector3 &val) |
| Converts a Vector3 to a String. | |
| static String | toString (const Vector4 &val) |
| Converts a Vector4 to a String. | |
| static String | toString (const Matrix3 &val) |
| Converts a Matrix3 to a String. | |
| static String | toString (const Matrix4 &val) |
| Converts a Matrix4 to a String. | |
| static String | toString (const Quaternion &val) |
| Converts a Quaternion to a String. | |
| static String | toString (const ColourValue &val) |
| Converts a ColourValue to a String. | |
| static String | toString (const StringVector &val) |
| Converts a StringVector to a string. | |
| static Real | parseReal (const String &val, Real defaultValue=0) |
| Converts a String to a Real. | |
| static Radian | parseAngle (const String &val, Radian defaultValue=Radian(0)) |
| Converts a String to a Angle. | |
| static int | parseInt (const String &val, int defaultValue=0) |
| Converts a String to a whole number. | |
| static unsigned int | parseUnsignedInt (const String &val, unsigned int defaultValue=0) |
| Converts a String to a whole number. | |
| static long | parseLong (const String &val, long defaultValue=0) |
| Converts a String to a whole number. | |
| static unsigned long | parseUnsignedLong (const String &val, unsigned long defaultValue=0) |
| Converts a String to a whole number. | |
| static size_t | parseSizeT (const String &val, size_t defaultValue=0) |
| Converts a String to size_t. | |
| static bool | parseBool (const String &val, bool defaultValue=0) |
| Converts a String to a boolean. | |
| static Vector2 | parseVector2 (const String &val, const Vector2 &defaultValue=Vector2::ZERO) |
| Parses a Vector2 out of a String. | |
| static Vector3 | parseVector3 (const String &val, const Vector3 &defaultValue=Vector3::ZERO) |
| Parses a Vector3 out of a String. | |
| static Vector4 | parseVector4 (const String &val, const Vector4 &defaultValue=Vector4::ZERO) |
| Parses a Vector4 out of a String. | |
| static Matrix3 | parseMatrix3 (const String &val, const Matrix3 &defaultValue=Matrix3::IDENTITY) |
| Parses a Matrix3 out of a String. | |
| static Matrix4 | parseMatrix4 (const String &val, const Matrix4 &defaultValue=Matrix4::IDENTITY) |
| Parses a Matrix4 out of a String. | |
| static Quaternion | parseQuaternion (const String &val, const Quaternion &defaultValue=Quaternion::IDENTITY) |
| Parses a Quaternion out of a String. | |
| static ColourValue | parseColourValue (const String &val, const ColourValue &defaultValue=ColourValue::Black) |
| Parses a ColourValue out of a String. | |
| static StringVector | parseStringVector (const String &val) |
| Pareses a StringVector from a string. | |
| static bool | isNumber (const String &val) |
| Checks the String is a valid number value. | |
Class for converting the core Ogre data types to/from Strings.
Definition at line 68 of file OgreStringConverter.h.
| static bool Ogre::StringConverter::isNumber | ( | const String & | val | ) | [static] |
Checks the String is a valid number value.
| static Radian Ogre::StringConverter::parseAngle | ( | const String & | val, |
| Radian | defaultValue = Radian(0) |
||
| ) | [static] |
Converts a String to a Angle.
Definition at line 180 of file OgreStringConverter.h.
| static bool Ogre::StringConverter::parseBool | ( | const String & | val, |
| bool | defaultValue = 0 |
||
| ) | [static] |
Converts a String to a boolean.
| static ColourValue Ogre::StringConverter::parseColourValue | ( | const String & | val, |
| const ColourValue & | defaultValue = ColourValue::Black |
||
| ) | [static] |
Parses a ColourValue out of a String.
| static int Ogre::StringConverter::parseInt | ( | const String & | val, |
| int | defaultValue = 0 |
||
| ) | [static] |
Converts a String to a whole number.
Referenced by Ogre::DriverVersion::fromString().
| static long Ogre::StringConverter::parseLong | ( | const String & | val, |
| long | defaultValue = 0 |
||
| ) | [static] |
Converts a String to a whole number.
| static Matrix3 Ogre::StringConverter::parseMatrix3 | ( | const String & | val, |
| const Matrix3 & | defaultValue = Matrix3::IDENTITY |
||
| ) | [static] |
Parses a Matrix3 out of a String.
| static Matrix4 Ogre::StringConverter::parseMatrix4 | ( | const String & | val, |
| const Matrix4 & | defaultValue = Matrix4::IDENTITY |
||
| ) | [static] |
Parses a Matrix4 out of a String.
| static Quaternion Ogre::StringConverter::parseQuaternion | ( | const String & | val, |
| const Quaternion & | defaultValue = Quaternion::IDENTITY |
||
| ) | [static] |
Parses a Quaternion out of a String.
| static Real Ogre::StringConverter::parseReal | ( | const String & | val, |
| Real | defaultValue = 0 |
||
| ) | [static] |
Converts a String to a Real.
| static size_t Ogre::StringConverter::parseSizeT | ( | const String & | val, |
| size_t | defaultValue = 0 |
||
| ) | [static] |
Converts a String to size_t.
| static StringVector Ogre::StringConverter::parseStringVector | ( | const String & | val | ) | [static] |
Pareses a StringVector from a string.
| static unsigned int Ogre::StringConverter::parseUnsignedInt | ( | const String & | val, |
| unsigned int | defaultValue = 0 |
||
| ) | [static] |
Converts a String to a whole number.
| static unsigned long Ogre::StringConverter::parseUnsignedLong | ( | const String & | val, |
| unsigned long | defaultValue = 0 |
||
| ) | [static] |
Converts a String to a whole number.
| static Vector2 Ogre::StringConverter::parseVector2 | ( | const String & | val, |
| const Vector2 & | defaultValue = Vector2::ZERO |
||
| ) | [static] |
Parses a Vector2 out of a String.
| static Vector3 Ogre::StringConverter::parseVector3 | ( | const String & | val, |
| const Vector3 & | defaultValue = Vector3::ZERO |
||
| ) | [static] |
Parses a Vector3 out of a String.
| static Vector4 Ogre::StringConverter::parseVector4 | ( | const String & | val, |
| const Vector4 & | defaultValue = Vector4::ZERO |
||
| ) | [static] |
Parses a Vector4 out of a String.
| static String Ogre::StringConverter::toString | ( | Real | val, |
| unsigned short | precision = 6, |
||
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts a Real to a String.
| static String Ogre::StringConverter::toString | ( | Radian | val, |
| unsigned short | precision = 6, |
||
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts a Radian to a String.
Definition at line 77 of file OgreStringConverter.h.
References Ogre::Radian::valueAngleUnits().
| static String Ogre::StringConverter::toString | ( | Degree | val, |
| unsigned short | precision = 6, |
||
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts a Degree to a String.
Definition at line 84 of file OgreStringConverter.h.
References Ogre::Degree::valueAngleUnits().
| static String Ogre::StringConverter::toString | ( | int | val, |
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts an int to a String.
| static String Ogre::StringConverter::toString | ( | size_t | val, |
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts a size_t to a String.
| static String Ogre::StringConverter::toString | ( | unsigned long | val, |
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts an unsigned long to a String.
| static String Ogre::StringConverter::toString | ( | long | val, |
| unsigned short | width = 0, |
||
| char | fill = ' ', |
||
| std::ios::fmtflags | flags = std::ios::fmtflags(0) |
||
| ) | [static] |
Converts a long to a String.
| static String Ogre::StringConverter::toString | ( | bool | val, |
| bool | yesNo = false |
||
| ) | [static] |
Converts a boolean to a String.
| yesNo | If set to true, result is 'yes' or 'no' instead of 'true' or 'false' |
| static String Ogre::StringConverter::toString | ( | const Vector2 & | val | ) | [static] |
Converts a Vector2 to a String.
| static String Ogre::StringConverter::toString | ( | const Vector3 & | val | ) | [static] |
Converts a Vector3 to a String.
| static String Ogre::StringConverter::toString | ( | const Vector4 & | val | ) | [static] |
Converts a Vector4 to a String.
| static String Ogre::StringConverter::toString | ( | const Matrix3 & | val | ) | [static] |
Converts a Matrix3 to a String.
| static String Ogre::StringConverter::toString | ( | const Matrix4 & | val | ) | [static] |
Converts a Matrix4 to a String.
| static String Ogre::StringConverter::toString | ( | const Quaternion & | val | ) | [static] |
Converts a Quaternion to a String.
| static String Ogre::StringConverter::toString | ( | const ColourValue & | val | ) | [static] |
Converts a ColourValue to a String.
| static String Ogre::StringConverter::toString | ( | const StringVector & | val | ) | [static] |
Converts a StringVector to a string.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sun Sep 2 2012 07:27:41