54 #define MEZZANINE_CORE 1
65 #if defined( _MSC_VER )
99 #ifdef _MEZZ_CPP11_PARTIAL_
187 #ifdef _MEZZ_CPP11_PARTIAL_
229 template<
typename To,
typename From>
232 std::stringstream Converter;
235 Converter >> Results;
242 template<
class T> String
ToString(
const T& Datum )
244 std::stringstream Converter;
246 return Converter.str();
252 template<
class T> Whole
ToWhole(
const T& Datum )
253 {
return ConvertTo<Whole>(Datum); }
259 {
return ConvertTo<Integer>(Datum); }
266 template<
class T>
int Toint(
const T& Datum )
267 {
return ConvertTo<int>(Datum); }
275 {
return ConvertTo<unsigned int>(Datum); }
280 template<
class T> Real
ToReal(
const T& Datum )
281 {
return ConvertTo<Real>(Datum); }
286 template<
class T> Boole
ToBool(
const T& Datum )
287 {
return ConvertTo<Boole>(Datum); }
294 template<
class T>
float Tofloat(
const T& Datum )
295 {
return ConvertTo<float>(Datum); }
301 template<
class T>
double Todouble(
const T& Datum )
302 {
return ConvertTo<double>(Datum); }
int32_t Int32
An 32-bit integer.
std::vector< String > StringVector
This is a simple datatype for a vector container of strings.
std::stringstream Logger
In case we ever replace the stringstream with another class, this will allow us to swap it out...
bool Boole
Generally acts a single bit, true or false.
Boole ToBool(const T &Datum)
Converts whatever to a Boole as long as the proper streaming operators are available for it...
String ToString(const T &Datum)
Converts whatever to a String as long as a streaming operator is available for it.
int Integer
A datatype used to represent any integer close to.
unsigned int Tounsignedint(const T &Datum)
Converts whatever to an unsigned int as long as the proper streaming operators are available for it...
uint8_t UInt8
An 8-bit unsigned integer.
SDL_Event RawEvent
This is an internal datatype use to communicate with the User input Subsystem.
std::set< String > StringSet
This is a simple datatype for a set container of strings.
std::stringstream StringStream
A Datatype used for streaming operations with strings.
float Real
A Datatype used to represent a real floating point number.
char Char8
A datatype to represent one character.
std::pair< String, String > NameValuePair
This is a pair for the generic storage of a value and it's associated name.
uint16_t UInt16
An 16-bit unsigned integer.
std::wstring WideString
A wide version of the String typedef.
int64_t Int64
An 64-bit integer.
const String ConstString
A Datatype used to a series of imutable characters.
uint32_t UInt32
An 32-bit unsigned integer.
UInt32 TimeMarker
A datatype used to indicate a specific point in time, or a timestamp.
std::list< NameValuePair > NameValuePairList
This is a datatype mostly used for describing settings or parameters that can't be declared in advanc...
int16_t Int16
An 16-bit integer.
To ConvertTo(const From &Datum)
Catch all Lexigraphical Conversion.
Real ToReal(const T &Datum)
Converts whatever to a Real as long as the proper streaming operators are available for it...
uint64_t UInt64
An 64-bit unsigned integer.
long long MaxInt
A large integer type suitable for compile time math and long term microsecond time keeping...
The bulk of the engine components go in this namspace.
double PreciseReal
A Real number that is at least as precise as the Real and could be considerably moreso, perhaps Doubly precise. This type might be poorly aligned but very precise.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
intptr_t ConvertiblePointer
A type that any pointer can be converted to and back from, and insures after the conversion back it w...
Used to give commands specifically to the SWIG preprocessor.
float Tofloat(const T &Datum)
Converts whatever to a float as long as the proper streaming operators are available for it...
int8_t Int8
An 8-bit integer.
std::map< String, String > NameValuePairMap
This is a datatype mostly used for describing settings or parameters that can't be declared in advanc...
int Toint(const T &Datum)
Converts whatever to an int as long as the proper streaming operators are available for it...
std::string String
A datatype used to a series of characters.
double Todouble(const T &Datum)
Converts whatever to a double as long as the proper streaming operators are available for it...
Integer ToInteger(const T &Datum)
Converts whatever to an Integer as long as the proper streaming operators are available for it...
Whole ToWhole(const T &Datum)
Converts whatever to a Whole as long as the proper streaming operators are available for it...