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

A class that stores resource references that need to be patched for a templated data type. More...

#include <omResourceReferencePatcher.h>

Public Member Functions

 ResourceReferencePatcher ()
 Create a new default empty resource reference patcher. More...
 
template<typename DataType >
void patchReferences (ResourceSetTypeTranscoder< DataType > &transcoder, const ResourceSet &resources)
 Patch all of the missing references for the given transcoder using the loaded resource set. More...
 
void startObject ()
 Start collecting reference for a new object. More...
 
void endObject (void *resource)
 Stop collecting reference for an object. More...
 
Size getReferenceCount () const
 Return the total number of references in this reference patcher for all objects. More...
 
ResourceReferencegetReference (Index referenceIndex)
 Return a reference to the reference in this reference patcher for the specified reference index. More...
 
const ResourceReferencegetReference (Index referenceIndex) const
 Return a reference to the reference in this reference patcher for the specified reference index. More...
 
void addReference (const ResourceReference &newReference)
 Add a new reference for the current object that is being parsed. More...
 

Detailed Description

A class that stores resource references that need to be patched for a templated data type.

Constructor & Destructor Documentation

om::resources::ResourceReferencePatcher::ResourceReferencePatcher ( )
inline

Create a new default empty resource reference patcher.

Member Function Documentation

template<typename DataType >
void om::resources::ResourceReferencePatcher::patchReferences ( ResourceSetTypeTranscoder< DataType > &  transcoder,
const ResourceSet resources 
)
inline

Patch all of the missing references for the given transcoder using the loaded resource set.

void om::resources::ResourceReferencePatcher::startObject ( )
inline

Start collecting reference for a new object.

void om::resources::ResourceReferencePatcher::endObject ( void *  resource)
inline

Stop collecting reference for an object.

Size om::resources::ResourceReferencePatcher::getReferenceCount ( ) const
inline

Return the total number of references in this reference patcher for all objects.

ResourceReference& om::resources::ResourceReferencePatcher::getReference ( Index  referenceIndex)
inline

Return a reference to the reference in this reference patcher for the specified reference index.

const ResourceReference& om::resources::ResourceReferencePatcher::getReference ( Index  referenceIndex) const
inline

Return a reference to the reference in this reference patcher for the specified reference index.

void om::resources::ResourceReferencePatcher::addReference ( const ResourceReference newReference)
inline

Add a new reference for the current object that is being parsed.


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