metaforce/Runtime/CSimplePool.hpp

32 lines
795 B
C++
Raw Normal View History

2015-08-17 13:33:58 -07:00
#ifndef __RETRO_CSIMPLEPOOL_HPP__
#define __RETRO_CSIMPLEPOOL_HPP__
2015-08-21 18:58:41 -07:00
#include "IObjectStore.hpp"
2015-08-17 22:54:43 -07:00
namespace Retro
{
2015-08-21 18:58:41 -07:00
class IFactory;
2015-08-17 22:54:43 -07:00
class CSimplePool : public IObjectStore
2015-08-17 13:33:58 -07:00
{
2015-08-30 20:44:42 -07:00
IFactory& m_factory;
2015-08-17 22:54:43 -07:00
public:
2015-08-30 20:44:42 -07:00
CSimplePool(IFactory& factory)
: m_factory(factory)
2015-08-17 22:54:43 -07:00
{
}
2015-08-30 20:44:42 -07: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 00:04:50 -07:00
void HasObject(const SObjectTag&) const {}
void ObjectIsLive(const SObjectTag&) const {}
2015-08-30 20:44:42 -07:00
IFactory& GetFactory() const {return m_factory;}
2015-08-25 00:04:50 -07:00
void Flush() {}
void ObjectUnreferenced(const SObjectTag&) {}
2015-08-17 13:33:58 -07:00
};
}
2015-08-17 13:33:58 -07:00
#endif // __RETRO_CSIMPLEPOOL_HPP__