metaforce/Runtime/IObjectStore.hpp

31 lines
775 B
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_IOBJECTSTORE_HPP__
#define __URDE_IOBJECTSTORE_HPP__
2015-08-22 01:58:41 +00:00
2017-11-13 06:19:18 +00:00
#include <string_view>
2016-03-04 23:04:53 +00:00
namespace urde
2015-08-22 01:58:41 +00:00
{
2015-08-31 03:44:42 +00:00
struct SObjectTag;
2015-08-23 06:42:29 +00:00
class CVParamTransfer;
class IFactory;
class CToken;
2015-08-22 01:58:41 +00:00
class IObjectStore
{
public:
virtual ~IObjectStore() = default;
virtual CToken GetObj(const SObjectTag&, const CVParamTransfer&)=0;
virtual CToken GetObj(const SObjectTag&)=0;
2017-11-13 06:19:18 +00:00
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;
2015-08-23 06:42:29 +00:00
virtual IFactory& GetFactory() const=0;
virtual void Flush()=0;
virtual void ObjectUnreferenced(const SObjectTag&)=0;
2015-08-22 01:58:41 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_IOBJECTSTORE_HPP__