prime/include/Kyoto/CFactoryMgr.hpp
Phillip Stephens 4b120a5418 Add DolphinCAudioSys
Former-commit-id: 69e1dfe6b450b7ee2ae4dce5c53cfcffba5a4f40
2023-01-07 17:42:28 -08:00

29 lines
609 B
C++

#ifndef _CFACTORYMGR
#define _CFACTORYMGR
#include "types.h"
#include "Kyoto/IObjectStore.hpp"
#include "Kyoto/Streams/CInputStream.hpp"
#include "Kyoto/TToken.hpp"
class CFactoryMgr {
public:
private:
uchar pad[0x38];
};
class CFactoryFnReturn {
public:
template < typename T >
CFactoryFnReturn(T* ptr) : obj(TToken< T >::GetIObjObjectFor(ptr).release()) {}
private:
rstl::auto_ptr< CObjOwnerDerivedFromIObjUntyped > obj;
};
CFactoryFnReturn FStringTableFactory(const SObjectTag& tag, CInputStream& in,
const CVParamTransfer& xfer);
#endif // _CFACTORYMGR