Om  1.0.0
A universal framework for multimedia simulation
Classes | Namespaces | Macros | Functions
omResourceType.h File Reference
#include "omResourcesConfig.h"

Classes

class  om::resources::ResourceType
 A class that represents the type of a generic resource. More...
 

Namespaces

 om
 The enclosing namespace for the entire Om library.
 
 om::resources
 A namespace containing classes that handle resource serialization and management.
 

Macros

#define OM_RESOURCE_TYPE(DataType, DataResourceType)
 A macro that defines a ResourceType for a fully-qualified concrete type. More...
 
#define OM_RESOURCE_TYPE_COPY(DataType, DataName, DataCopy)
 A macro that declares a function specialization for copying a resource data type. More...
 

Functions

template<>
const ResourceType & om::resources::ResourceType::of< math::Vector2f > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Vector2d > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Vector3f > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Vector3d > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Vector4f > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Vector4d > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Matrix2f > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Matrix2d > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Matrix3f > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Matrix3d > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Matrix4f > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< math::Matrix4d > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< data::String > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< data::UTF8String > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< data::UTF16String > ()
 
template<>
const ResourceType & om::resources::ResourceType::of< data::UTF32String > ()
 

Macro Definition Documentation

#define OM_RESOURCE_TYPE (   DataType,
  DataResourceType 
)
Value:
OM_RESOURCES_NAMESPACE_START \
template <>\
OM_INLINE const ResourceType& ResourceType::of< DataType >()\
{\
return DataResourceType;\
}\
#define OM_INLINE
The inlining procedure to use for methods that should be inlined.
Definition: omConfig.h:257
#define OM_RESOURCES_NAMESPACE_END
Definition: omResourcesConfig.h:66

A macro that defines a ResourceType for a fully-qualified concrete type.

#define OM_RESOURCE_TYPE_COPY (   DataType,
  DataName,
  DataCopy 
)
Value:
OM_RESOURCES_NAMESPACE_START \
template <>\
OM_INLINE DataType* ResourceType::copy< DataType >( const DataType& DataName )\
{\
DataCopy\
}\
#define OM_INLINE
The inlining procedure to use for methods that should be inlined.
Definition: omConfig.h:257
#define OM_RESOURCES_NAMESPACE_END
Definition: omResourcesConfig.h:66

A macro that declares a function specialization for copying a resource data type.