|
| static bool | isNumber (const String &val) |
| |
| static bool | parse (const String &str, bool &v) |
| |
| static bool | parse (const String &str, ColourValue &v) |
| | Converts a String to a basic value type.
|
| |
| static bool | parse (const String &str, double &v) |
| |
| static bool | parse (const String &str, float &v) |
| |
| static bool | parse (const String &str, int32 &v) |
| |
| static bool | parse (const String &str, int64 &v) |
| |
| static bool | parse (const String &str, Matrix3 &v) |
| |
| static bool | parse (const String &str, Matrix4 &v) |
| |
| static bool | parse (const String &str, Quaternion &v) |
| |
| static bool | parse (const String &str, uint32 &v) |
| |
| static bool | parse (const String &str, unsigned long &v) |
| |
| static bool | parse (const String &str, unsigned long long &v) |
| |
| static bool | parse (const String &str, Vector2 &v) |
| |
| static bool | parse (const String &str, Vector3 &v) |
| |
| static bool | parse (const String &str, Vector4 &v) |
| |
| static Radian | parseAngle (const String &val, Radian defaultValue=Radian(0)) |
| | Converts a String to a Angle.
|
| |
| static bool | parseBool (const String &val, bool defaultValue=0) |
| | Converts a String to a boolean.
|
| |
| static ColourValue | parseColourValue (const String &val, const ColourValue &defaultValue=ColourValue::Black) |
| | Parses a ColourValue out of a String.
|
| |
| static int32 | parseInt (const String &val, int32 defaultValue=0) |
| | Converts a String to a whole number.
|
| |
| static int64 | parseLong (const String &val, int64 defaultValue=0) |
| |
| 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 Real | parseReal (const String &val, Real defaultValue=0) |
| | Converts a String to a Real.
|
| |
| static size_t | parseSizeT (const String &val, size_t defaultValue=0) |
| | Converts a String to size_t.
|
| |
| static StringVector | parseStringVector (const String &val) |
| |
| static uint32 | parseUnsignedInt (const String &val, uint32 defaultValue=0) |
| | Converts a String to a whole number.
|
| |
| static uint64 | parseUnsignedLong (const String &val, uint64 defaultValue=0) |
| |
| 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 String | toString (bool val, bool yesNo=false) |
| | Converts a boolean to a String.
|
| |
| static String | toString (const ColourValue &val) |
| | Converts a ColourValue 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 StringVector &val) |
| | Converts a StringVector 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 (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 (double val, unsigned short precision=6, unsigned short width=0, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| | Converts a double to a String.
|
| |
| static String | toString (float val, unsigned short precision=6, unsigned short width=0, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| | Converts a float to a String.
|
| |
| static String | toString (int32 val) |
| |
| static String | toString (int32 val, unsigned short width, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| |
| static String | toString (long val) |
| |
| static String | toString (long val, unsigned short width, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| |
| 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 (uint32 val) |
| |
| static String | toString (uint32 val, unsigned short width, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| |
| static String | toString (unsigned long long val) |
| |
| static String | toString (unsigned long long val, unsigned short width, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| |
| static String | toString (unsigned long val) |
| |
| static String | toString (unsigned long val, unsigned short width, char fill=' ', std::ios::fmtflags flags=std::ios::fmtflags(0)) |
| |
Class for converting the core Ogre data types to/from Strings.
The code for converting values to and from strings is here as a separate class to avoid coupling String to other datatypes (and vice-versa) which reduces compilation dependency: important given how often the core types are used.
- 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.