prime/include/Kyoto/CFactoryMgr.hpp

29 lines
609 B
C++
Raw Normal View History

#ifndef _CFACTORYMGR
#define _CFACTORYMGR
#include "types.h"
2022-08-09 23:03:51 +00:00
#include "Kyoto/IObjectStore.hpp"
#include "Kyoto/Streams/CInputStream.hpp"
2022-09-18 06:05:46 +00:00
#include "Kyoto/TToken.hpp"
class CFactoryMgr {
public:
private:
uchar pad[0x38];
};
class CFactoryFnReturn {
public:
template < typename T >
2023-01-08 01:42:15 +00:00
CFactoryFnReturn(T* ptr) : obj(TToken< T >::GetIObjObjectFor(ptr).release()) {}
private:
2022-08-13 01:26:00 +00:00
rstl::auto_ptr< CObjOwnerDerivedFromIObjUntyped > obj;
};
2022-09-18 06:05:46 +00:00
CFactoryFnReturn FStringTableFactory(const SObjectTag& tag, CInputStream& in,
const CVParamTransfer& xfer);
#endif // _CFACTORYMGR