metaforce/Runtime/IObjectStore.hpp

26 lines
709 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2015-08-22 01:58:41 +00:00
2017-11-13 06:19:18 +00:00
#include <string_view>
2021-04-10 08:42:06 +00:00
namespace metaforce {
class CToken;
2015-08-23 06:42:29 +00:00
class CVParamTransfer;
class IFactory;
struct SObjectTag;
2015-08-22 01:58:41 +00:00
2018-12-08 05:30:43 +00:00
class IObjectStore {
2015-08-22 01:58:41 +00:00
public:
2018-12-08 05:30:43 +00:00
virtual ~IObjectStore() = default;
virtual CToken GetObj(const SObjectTag&, const CVParamTransfer&) = 0;
virtual CToken GetObj(const SObjectTag&) = 0;
virtual CToken GetObj(std::string_view) = 0;
virtual CToken GetObj(std::string_view, const CVParamTransfer&) = 0;
virtual bool HasObject(const SObjectTag&) const = 0;
virtual bool ObjectIsLive(const SObjectTag&) const = 0;
virtual IFactory& GetFactory() const = 0;
virtual void Flush() = 0;
virtual void ObjectUnreferenced(const SObjectTag&) = 0;
2015-08-22 01:58:41 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce