29 #ifndef __StringConverter_H__
30 #define __StringConverter_H__
73 static String toString(
Real val,
unsigned short precision = 6,
74 unsigned short width = 0,
char fill =
' ',
75 std::ios::fmtflags flags = std::ios::fmtflags(0) );
78 unsigned short width = 0,
char fill =
' ',
79 std::ios::fmtflags flags = std::ios::fmtflags(0) )
85 unsigned short width = 0,
char fill =
' ',
86 std::ios::fmtflags flags = std::ios::fmtflags(0) )
91 static String toString(
int val,
unsigned short width = 0,
93 std::ios::fmtflags flags = std::ios::fmtflags(0) );
94 #if OGRE_PLATFORM != OGRE_PLATFORM_NACL && ( OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64 || OGRE_PLATFORM == OGRE_PLATFORM_APPLE || OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS )
96 static String toString(
unsigned int val,
97 unsigned short width = 0,
char fill =
' ',
98 std::ios::fmtflags flags = std::ios::fmtflags(0) );
100 static String toString(
size_t val,
101 unsigned short width = 0,
char fill =
' ',
102 std::ios::fmtflags flags = std::ios::fmtflags(0) );
103 #if OGRE_COMPILER == OGRE_COMPILER_MSVC
105 static String toString(
unsigned long val,
106 unsigned short width = 0,
char fill =
' ',
107 std::ios::fmtflags flags = std::ios::fmtflags(0) );
112 static String toString(
size_t val,
113 unsigned short width = 0,
char fill =
' ',
114 std::ios::fmtflags flags = std::ios::fmtflags(0) );
116 static String toString(
unsigned long val,
117 unsigned short width = 0,
char fill =
' ',
118 std::ios::fmtflags flags = std::ios::fmtflags(0) );
121 static String toString(
long val,
122 unsigned short width = 0,
char fill =
' ',
123 std::ios::fmtflags flags = std::ios::fmtflags(0) );
127 static String toString(
bool val,
bool yesNo =
false);
181 return Angle(parseReal(val, defaultValue.valueRadians()));
187 static int parseInt(
const String& val,
int defaultValue = 0);
192 static unsigned int parseUnsignedInt(
const String& val,
unsigned int defaultValue = 0);
197 static long parseLong(
const String& val,
long defaultValue = 0);
202 static unsigned long parseUnsignedLong(
const String& val,
unsigned long defaultValue = 0);
207 static size_t parseSizeT(
const String& val,
size_t defaultValue = 0);
213 static bool parseBool(
const String& val,
bool defaultValue = 0);
264 static bool isNumber(
const String& val);
Class encapsulating a standard 4x4 homogeneous matrix.
float Real
Software floating point type.
Class for converting the core Ogre data types to/from Strings.
Class representing colour.
static const Vector3 ZERO
static const Matrix4 IDENTITY
Wrapper class which identifies a value as the currently default angle type, as defined by Math::setAn...
static const Matrix3 IDENTITY
A 3x3 matrix which can represent rotations around axes.
static Radian parseAngle(const String &val, Radian defaultValue=Radian(0))
Converts a String to a Angle.
Implementation of a Quaternion, i.e.
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.
Real valueAngleUnits() const
static const Quaternion IDENTITY
static const Vector2 ZERO
Standard 2-dimensional vector.
Wrapper class which indicates a given angle value is in Degrees.
vector< String >::type StringVector
Standard 3-dimensional vector.
Wrapper class which indicates a given angle value is in Radians.
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 const ColourValue Black
static const Vector4 ZERO
4-dimensional homogeneous vector.
Real valueAngleUnits() const