PixelLightAPI  .
Public Member Functions
PLSound::ResourceHandler Class Reference

Resource handler. More...

#include <ResourceHandler.h>

List of all members.

Public Member Functions

PLSOUND_API ResourceHandler ()
 Constructor.
PLSOUND_API ResourceHandler (const ResourceHandler &cSource)
 Copy constructor.
virtual PLSOUND_API ~ResourceHandler ()
 Destructor.
PLSOUND_API ResourceHandleroperator= (const ResourceHandler &cSource)
 Copy operator.
PLSOUND_API ResourceGetResource () const
 Returns the resource handlers resource.
PLSOUND_API void SetResource (Resource *pResource=nullptr)
 Sets the resource handlers resource.
virtual PLSOUND_API void OnLost ()
 Is called when the resource was lost.

Detailed Description

Resource handler.


Constructor & Destructor Documentation

Constructor.

Copy constructor.

Parameters:
[in]cSourceSource to copy from
virtual PLSOUND_API PLSound::ResourceHandler::~ResourceHandler ( ) [virtual]

Destructor.


Member Function Documentation

PLSOUND_API ResourceHandler& PLSound::ResourceHandler::operator= ( const ResourceHandler cSource)

Copy operator.

Parameters:
[in]cSourceSource to copy from
Returns:
Reference to this instance

Returns the resource handlers resource.

Returns:
The resource handlers resource, a null pointer if no resource
PLSOUND_API void PLSound::ResourceHandler::SetResource ( Resource pResource = nullptr)

Sets the resource handlers resource.

Parameters:
[in]pResourceResource to set, can be a null pointer
virtual PLSOUND_API void PLSound::ResourceHandler::OnLost ( ) [virtual]

Is called when the resource was lost.


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:42
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported