Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the type of a generic resource. More...
#include <omResourceType.h>
Public Member Functions | |
ResourceType () | |
Create a new resource type with an UNDEFINED type string. More... | |
ResourceType (const Char *newName) | |
Create a new resource type with the specified constant NULL-terminated type string. More... | |
ResourceType (const data::UTF8String &newName) | |
Create a new resource type with the specified type string. More... | |
const data::UTF8String & | getName () const |
Return a string representing the name of this resource type. More... | |
Bool | operator== (const ResourceType &other) const |
Return whether or not this resource type is equal to another. More... | |
Bool | operator!= (const ResourceType &other) const |
Return whether or not this resource type is equal to another. More... | |
Hash | getHashCode () const |
Return an integer hash code for this resource type. More... | |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
template<> | |
const ResourceType & | of () |
Static Public Member Functions | |
template<typename DataType > | |
static const ResourceType & | of () |
template<typename DataType > | |
static DataType * | copy (const DataType &data) |
Static Public Attributes | |
static const ResourceType | UNDEFINED |
The resource type to use for an undefined object type. More... | |
static const ResourceType | INT8 |
The resource type to use for a 8-bit signed integer. More... | |
static const ResourceType | UINT8 |
The resource type to use for a 8-bit unsigned integer. More... | |
static const ResourceType | INT16 |
The resource type to use for a 16-bit signed integer. More... | |
static const ResourceType | UINT16 |
The resource type to use for a 16-bit unsigned integer. More... | |
static const ResourceType | INT32 |
The resource type to use for a 32-bit signed integer. More... | |
static const ResourceType | UINT32 |
The resource type to use for a 32-bit unsigned integer. More... | |
static const ResourceType | INT64 |
The resource type to use for a 64-bit signed integer. More... | |
static const ResourceType | UINT64 |
The resource type to use for a 64-bit unsigned integer. More... | |
static const ResourceType | FLOAT16 |
The resource type to use for a 16-bit floating point number. More... | |
static const ResourceType | FLOAT32 |
The resource type to use for a 32-bit floating point number. More... | |
static const ResourceType | FLOAT64 |
The resource type to use for a 64-bit floating point number. More... | |
static const ResourceType | VECTOR2_F32 |
The resource type to use for a 2-component 32-bit float vector. More... | |
static const ResourceType | VECTOR2_F64 |
The resource type to use for a 2-component 64-bit float vector. More... | |
static const ResourceType | VECTOR3_F32 |
The resource type to use for a 3-component 32-bit float vector. More... | |
static const ResourceType | VECTOR3_F64 |
The resource type to use for a 3-component 64-bit float vector. More... | |
static const ResourceType | VECTOR4_F32 |
The resource type to use for a 4-component 32-bit float vector. More... | |
static const ResourceType | VECTOR4_F64 |
The resource type to use for a 4-component 64-bit float vector. More... | |
static const ResourceType | MATRIX2_F32 |
The resource type to use for a 2x2 32-bit float matrix. More... | |
static const ResourceType | MATRIX2_F64 |
The resource type to use for a 2x2 64-bit float matrix. More... | |
static const ResourceType | MATRIX3_F32 |
The resource type to use for a 3x3 32-bit float matrix. More... | |
static const ResourceType | MATRIX3_F64 |
The resource type to use for a 3x3 64-bit float matrix. More... | |
static const ResourceType | MATRIX4_F32 |
The resource type to use for a 4x4 32-bit float matrix. More... | |
static const ResourceType | MATRIX4_F64 |
The resource type to use for a 4x4 64-bit float matrix. More... | |
static const ResourceType | STRING_ASCII |
The resource type to use for ASCII encoded strings. More... | |
static const ResourceType | STRING_UTF8 |
The resource type to use for UTF-8 encoded strings. More... | |
static const ResourceType | STRING_UTF16 |
The resource type to use for UTF-16 encoded strings. More... | |
static const ResourceType | STRING_UTF32 |
The resource type to use for UTF-32 encoded strings. More... | |
A class that represents the type of a generic resource.
An resource type is defined by a unique string.
|
inline |
Create a new resource type with an UNDEFINED type string.
|
inline |
Create a new resource type with the specified constant NULL-terminated type string.
|
inline |
Create a new resource type with the specified type string.
|
inline |
Return a string representing the name of this resource type.
|
inline |
Return whether or not this resource type is equal to another.
|
inline |
Return whether or not this resource type is equal to another.
|
inline |
Return an integer hash code for this resource type.
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
The resource type to use for an undefined object type.
|
static |
The resource type to use for a 8-bit signed integer.
|
static |
The resource type to use for a 8-bit unsigned integer.
|
static |
The resource type to use for a 16-bit signed integer.
|
static |
The resource type to use for a 16-bit unsigned integer.
|
static |
The resource type to use for a 32-bit signed integer.
|
static |
The resource type to use for a 32-bit unsigned integer.
|
static |
The resource type to use for a 64-bit signed integer.
|
static |
The resource type to use for a 64-bit unsigned integer.
|
static |
The resource type to use for a 16-bit floating point number.
|
static |
The resource type to use for a 32-bit floating point number.
|
static |
The resource type to use for a 64-bit floating point number.
|
static |
The resource type to use for a 2-component 32-bit float vector.
|
static |
The resource type to use for a 2-component 64-bit float vector.
|
static |
The resource type to use for a 3-component 32-bit float vector.
|
static |
The resource type to use for a 3-component 64-bit float vector.
|
static |
The resource type to use for a 4-component 32-bit float vector.
|
static |
The resource type to use for a 4-component 64-bit float vector.
|
static |
The resource type to use for a 2x2 32-bit float matrix.
|
static |
The resource type to use for a 2x2 64-bit float matrix.
|
static |
The resource type to use for a 3x3 32-bit float matrix.
|
static |
The resource type to use for a 3x3 64-bit float matrix.
|
static |
The resource type to use for a 4x4 32-bit float matrix.
|
static |
The resource type to use for a 4x4 64-bit float matrix.
|
static |
The resource type to use for ASCII encoded strings.
|
static |
The resource type to use for UTF-8 encoded strings.
|
static |
The resource type to use for UTF-16 encoded strings.
|
static |
The resource type to use for UTF-32 encoded strings.