GlsRSOLoader API 1.6.2
ResourceMethodCallback< T > Class Template Reference

#include <gls_rso_loader.h>

Inheritance diagram for ResourceMethodCallback< T >:
RSOInterface4::ResourceObserver

Public Types

typedef void(T::* Callback) (disti::RSOInterface2::ResourceHandle)
 The class method pointer type that is called.
 

Public Member Functions

 ResourceMethodCallback (T *object, Callback method)
 
virtual void Call (disti::RSOInterface2::ResourceHandle handle)
 
virtual void Destroy ()
 Frees this observer. More...
 
virtual void Call (ResourceHandle handle)=0
 
virtual void Destroy ()=0
 

Protected Attributes

Callback _method
 The class method to call.
 
T * _object
 The object to call the method on.
 

Detailed Description

template<class T>
class GlsRSOLoader::ResourceMethodCallback< T >

Template for a ResourceObserver that will call a class method whenever the attribute changes. Don't use this directly, use GlsRSOLoader::CreateResourceMethodCallback instead.

Constructor & Destructor Documentation

◆ ResourceMethodCallback()

ResourceMethodCallback ( T *  object,
Callback  method 
)
inline
Parameters
objectThe object to call the method on.
methodThe class method to call.

Member Function Documentation

◆ Call()

virtual void Call ( disti::RSOInterface2::ResourceHandle  handle)
inlinevirtual

Calls the method on the object.

Parameters
handleThe resource that changed.

Implements RSOInterface4::ResourceObserver.

◆ Destroy()

virtual void Destroy ( )
inlinevirtual

Frees this observer.

Implements RSOInterface4::ResourceObserver.


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