34 lines
606 B
C++
34 lines
606 B
C++
#ifndef CRESOURCE_H
|
|
#define CRESOURCE_H
|
|
|
|
#include "EResType.h"
|
|
#include <Common/CFourCC.h>
|
|
#include <Common/CUniqueID.h>
|
|
#include <Common/types.h>
|
|
#include <Common/TString.h>
|
|
|
|
class CResCache;
|
|
|
|
class CResource
|
|
{
|
|
friend class CResCache;
|
|
|
|
TString mResSource;
|
|
CUniqueID mID;
|
|
int mRefCount;
|
|
|
|
public:
|
|
CResource();
|
|
virtual ~CResource();
|
|
virtual EResType Type();
|
|
TString Source();
|
|
TString FullSource();
|
|
CUniqueID ResID();
|
|
void Lock();
|
|
void Release();
|
|
bool IsValidResource();
|
|
static EResType ResTypeForExtension(CFourCC Extension);
|
|
};
|
|
|
|
#endif // CRESOURCE_H
|