Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
om::resources::ResourceType Class Reference

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::UTF8StringgetName () 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 ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 
template<>
const ResourceTypeof ()
 

Static Public Member Functions

template<typename DataType >
static const ResourceTypeof ()
 
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...
 

Detailed Description

A class that represents the type of a generic resource.

An resource type is defined by a unique string.

Constructor & Destructor Documentation

om::resources::ResourceType::ResourceType ( )
inline

Create a new resource type with an UNDEFINED type string.

om::resources::ResourceType::ResourceType ( const Char newName)
inline

Create a new resource type with the specified constant NULL-terminated type string.

om::resources::ResourceType::ResourceType ( const data::UTF8String newName)
inline

Create a new resource type with the specified type string.

Member Function Documentation

const data::UTF8String& om::resources::ResourceType::getName ( ) const
inline

Return a string representing the name of this resource type.

Bool om::resources::ResourceType::operator== ( const ResourceType other) const
inline

Return whether or not this resource type is equal to another.

Bool om::resources::ResourceType::operator!= ( const ResourceType other) const
inline

Return whether or not this resource type is equal to another.

Hash om::resources::ResourceType::getHashCode ( ) const
inline

Return an integer hash code for this resource type.

template<typename DataType >
static const ResourceType& om::resources::ResourceType::of ( )
inlinestatic
template<typename DataType >
static DataType* om::resources::ResourceType::copy ( const DataType &  data)
inlinestatic
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline
template<>
const ResourceType& om::resources::ResourceType::of ( )
inline

Member Data Documentation

const ResourceType om::resources::ResourceType::UNDEFINED
static

The resource type to use for an undefined object type.

const ResourceType om::resources::ResourceType::INT8
static

The resource type to use for a 8-bit signed integer.

const ResourceType om::resources::ResourceType::UINT8
static

The resource type to use for a 8-bit unsigned integer.

const ResourceType om::resources::ResourceType::INT16
static

The resource type to use for a 16-bit signed integer.

const ResourceType om::resources::ResourceType::UINT16
static

The resource type to use for a 16-bit unsigned integer.

const ResourceType om::resources::ResourceType::INT32
static

The resource type to use for a 32-bit signed integer.

const ResourceType om::resources::ResourceType::UINT32
static

The resource type to use for a 32-bit unsigned integer.

const ResourceType om::resources::ResourceType::INT64
static

The resource type to use for a 64-bit signed integer.

const ResourceType om::resources::ResourceType::UINT64
static

The resource type to use for a 64-bit unsigned integer.

const ResourceType om::resources::ResourceType::FLOAT16
static

The resource type to use for a 16-bit floating point number.

const ResourceType om::resources::ResourceType::FLOAT32
static

The resource type to use for a 32-bit floating point number.

const ResourceType om::resources::ResourceType::FLOAT64
static

The resource type to use for a 64-bit floating point number.

const ResourceType om::resources::ResourceType::VECTOR2_F32
static

The resource type to use for a 2-component 32-bit float vector.

const ResourceType om::resources::ResourceType::VECTOR2_F64
static

The resource type to use for a 2-component 64-bit float vector.

const ResourceType om::resources::ResourceType::VECTOR3_F32
static

The resource type to use for a 3-component 32-bit float vector.

const ResourceType om::resources::ResourceType::VECTOR3_F64
static

The resource type to use for a 3-component 64-bit float vector.

const ResourceType om::resources::ResourceType::VECTOR4_F32
static

The resource type to use for a 4-component 32-bit float vector.

const ResourceType om::resources::ResourceType::VECTOR4_F64
static

The resource type to use for a 4-component 64-bit float vector.

const ResourceType om::resources::ResourceType::MATRIX2_F32
static

The resource type to use for a 2x2 32-bit float matrix.

const ResourceType om::resources::ResourceType::MATRIX2_F64
static

The resource type to use for a 2x2 64-bit float matrix.

const ResourceType om::resources::ResourceType::MATRIX3_F32
static

The resource type to use for a 3x3 32-bit float matrix.

const ResourceType om::resources::ResourceType::MATRIX3_F64
static

The resource type to use for a 3x3 64-bit float matrix.

const ResourceType om::resources::ResourceType::MATRIX4_F32
static

The resource type to use for a 4x4 32-bit float matrix.

const ResourceType om::resources::ResourceType::MATRIX4_F64
static

The resource type to use for a 4x4 64-bit float matrix.

const ResourceType om::resources::ResourceType::STRING_ASCII
static

The resource type to use for ASCII encoded strings.

const ResourceType om::resources::ResourceType::STRING_UTF8
static

The resource type to use for UTF-8 encoded strings.

const ResourceType om::resources::ResourceType::STRING_UTF16
static

The resource type to use for UTF-16 encoded strings.

const ResourceType om::resources::ResourceType::STRING_UTF32
static

The resource type to use for UTF-32 encoded strings.


The documentation for this class was generated from the following file: