Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::IResource Class Reference

Abstract class reprensenting a loadable resource (e.g. More...

`#include <KeosResource.h>`

Inheritance diagram for Keos::IResource:

List of all members.

## Public Member Functions

| IResource ()
| Default constructor.
virtual | ~IResource ()=0
| Destructor.
const String & | GetName () const
| Return the name of the resource.
void | AddRef ()
| Add a reference on the resource.
int | Release ()
| Remove a reference on tle resource.

## Private Member Functions

| IResource (IResource &)
void | operator= (IResource &)

## Private Attributes

String | m_strName
| Name of the resource.
int | m_nRefCount
| Reference counter.

## Friends

class | CResourceManager

## Detailed Description

Abstract class reprensenting a loadable resource (e.g.

textures, sounds etc).

Definition at line 33 of file KeosResource.h.

## Constructor & Destructor Documentation

Keos::IResource::IResource | ( |  | ) |

| Default constructor. Definition at line 32 of file KeosResource.cpp.

Keos::IResource::~IResource | ( |  | ) | `[pure virtual]`

| Destructor. Definition at line 40 of file KeosResource.cpp. References m_strName.

Keos::IResource::IResource | ( | IResource & |  | ) | `[private]`

## Member Function Documentation

void Keos::IResource::AddRef | ( |  | ) |

| Add a reference on the resource. Definition at line 53 of file KeosResource.cpp. References m_nRefCount.

const String & Keos::IResource::GetName | ( |  | ) | const

| Return the name of the resource. Definition at line 47 of file KeosResource.cpp. References m_strName.

void Keos::IResource::operator= | ( | IResource & |  | ) | `[private]`

int Keos::IResource::Release | ( |  | ) |

| Remove a reference on tle resource. Definition at line 59 of file KeosResource.cpp. References m_nRefCount. Referenced by Keos::CD3D9::ReleaseDevice(), and Keos::CD3D9::~CD3D9().

## Friends And Related Function Documentation

friend class CResourceManager`[friend]`

| Definition at line 59 of file KeosResource.h.

## Member Data Documentation

int Keos::IResource::m_nRefCount`[private]`

| Reference counter. Definition at line 68 of file KeosResource.h. Referenced by AddRef(), and Release().

String Keos::IResource::m_strName`[private]`

| Name of the resource. Definition at line 66 of file KeosResource.h. Referenced by GetName(), and ~IResource().

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

- KeosEngine/KeosResource.h
- KeosEngine/KeosResource.cpp