2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _IOBJECTSTORE
|
|
|
|
#define _IOBJECTSTORE
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
2022-10-09 05:13:17 +00:00
|
|
|
|
2022-10-01 08:32:56 +00:00
|
|
|
#include "Kyoto/CToken.hpp"
|
2022-04-10 00:17:06 +00:00
|
|
|
|
2022-08-13 01:26:00 +00:00
|
|
|
#include "rstl/auto_ptr.hpp"
|
2022-04-10 00:17:06 +00:00
|
|
|
#include "rstl/rc_ptr.hpp"
|
|
|
|
|
2023-01-14 06:27:43 +00:00
|
|
|
class IFactory;
|
2022-09-13 04:26:54 +00:00
|
|
|
class IObjectStore {
|
|
|
|
public:
|
2023-01-14 10:00:14 +00:00
|
|
|
IObjectStore() {}
|
2022-09-13 04:26:54 +00:00
|
|
|
virtual CToken GetObj(const SObjectTag& tag, CVParamTransfer xfer) = 0;
|
|
|
|
virtual CToken GetObj(const SObjectTag& tag) = 0;
|
|
|
|
virtual CToken GetObj(const char* name) = 0;
|
|
|
|
virtual CToken GetObj(const char* name, CVParamTransfer xfer) = 0;
|
|
|
|
virtual bool HasObject(const SObjectTag& tag) = 0;
|
|
|
|
virtual bool ObjectIsLive(const SObjectTag& tag) = 0;
|
2023-01-14 06:27:43 +00:00
|
|
|
virtual IFactory& GetFactory() = 0;
|
2022-09-13 04:26:54 +00:00
|
|
|
virtual void Flush() = 0;
|
|
|
|
virtual void ObjectUnreferenced(const SObjectTag& tag) = 0;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _IOBJECTSTORE
|