Start CModelData, cleanup CFactoryFnReturn usage

This commit is contained in:
2024-10-27 21:17:36 -07:00
parent c41440e3fb
commit d11d8f4cd8
21 changed files with 101 additions and 48 deletions

View File

@@ -0,0 +1,16 @@
#ifndef _CFACTORYFNRETURN
#define _CFACTORYFNRETURN
#include <Kyoto/TToken.hpp>
class CFactoryFnReturn {
public:
template < typename T >
CFactoryFnReturn(T* ptr) : obj(TToken< T >::GetIObjObjectFor(ptr).release()) {}
const rstl::auto_ptr< CObjOwnerDerivedFromIObjUntyped >& GetObjForTransfer() const { return obj; }
private:
rstl::auto_ptr< CObjOwnerDerivedFromIObjUntyped > obj;
};
#endif // _CFACTORYFNRETURN