metaforce/Runtime/CSimplePool.hpp

32 lines
795 B
C++
Raw Normal View History

2015-08-17 20:33:58 +00:00
#ifndef __RETRO_CSIMPLEPOOL_HPP__
#define __RETRO_CSIMPLEPOOL_HPP__
2015-08-22 01:58:41 +00:00
#include "IObjectStore.hpp"
2015-08-18 05:54:43 +00:00
namespace Retro
{
2015-08-22 01:58:41 +00:00
class IFactory;
2015-08-18 05:54:43 +00:00
class CSimplePool : public IObjectStore
2015-08-17 20:33:58 +00:00
{
2015-08-31 03:44:42 +00:00
IFactory& m_factory;
2015-08-18 05:54:43 +00:00
public:
2015-08-31 03:44:42 +00:00
CSimplePool(IFactory& factory)
: m_factory(factory)
2015-08-18 05:54:43 +00:00
{
}
2015-08-31 03:44:42 +00:00
IObj* GetObj(const SObjectTag&, const CVParamTransfer&) {return nullptr;}
IObj* GetObj(const SObjectTag&) {return nullptr;}
IObj* GetObj(char const*) {return nullptr;}
IObj* GetObj(char const*, const CVParamTransfer&) {return nullptr;}
2015-08-25 07:04:50 +00:00
void HasObject(const SObjectTag&) const {}
void ObjectIsLive(const SObjectTag&) const {}
2015-08-31 03:44:42 +00:00
IFactory& GetFactory() const {return m_factory;}
2015-08-25 07:04:50 +00:00
void Flush() {}
void ObjectUnreferenced(const SObjectTag&) {}
2015-08-17 20:33:58 +00:00
};
}
2015-08-17 20:33:58 +00:00
#endif // __RETRO_CSIMPLEPOOL_HPP__