gs_cbase.h
758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _GS_CBASE_H_
#define _GS_CBASE_H_
#include "gs_id.h"
#include "gs_base.h"
#define GS_CBASE_IMPLEMENT \
public: \
virtual S32 CALLCC addRef() \
{ \
return GS_CBase::addRef(); \
} \
virtual S32 CALLCC release() \
{ \
return GS_CBase::release(); \
}
class GS_CBase : public GS_IBase
{
private:
S32 refCount;
U32 m_handle;
public:
GS_CBase(U32 handle);
virtual ~GS_CBase();
int CALLCC addRef();
int CALLCC release();
int CALLCC queryInterface(int iid, GS_IBase** pptr);
static void* operator new (unsigned int size, void *buf);
static void* operator new (unsigned int size);
static void operator delete (void* ptr);
};
#endif //_GS_CBASE_H_