2022-04-10 00:17:06 +00:00
|
|
|
#ifndef _CTOKEN_HPP
|
|
|
|
#define _CTOKEN_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
#include "Kyoto/IObj.hpp"
|
|
|
|
|
|
|
|
class CObjectReference;
|
2022-07-14 16:24:26 +00:00
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
class CToken {
|
|
|
|
public:
|
2022-08-13 01:26:00 +00:00
|
|
|
CToken() {}
|
2022-09-13 04:26:54 +00:00
|
|
|
CToken(IObj* obj); // : x0_objRef(new CObjectReference(obj)), x4_lockHeld(false) {}
|
2022-08-13 01:26:00 +00:00
|
|
|
CToken(const CToken& other);
|
2022-04-10 00:17:06 +00:00
|
|
|
~CToken();
|
|
|
|
|
2022-09-13 04:26:54 +00:00
|
|
|
CToken& operator=(const CToken&);
|
|
|
|
|
|
|
|
CObjOwnerDerivedFromIObjUntyped* GetObj();
|
2022-08-13 01:26:00 +00:00
|
|
|
void Lock();
|
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
private:
|
|
|
|
CObjectReference* x0_objRef;
|
|
|
|
bool x4_lockHeld;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|