Serialization::CryExtensionClassFactory

Serialization::CryExtensionClassFactory< TBase, TSerializable >

#include

Inherits yasli::ClassFactoryBase.

Public Member Functions

size_t size () const override
const Serialization::TypeDescription * descriptionByIndex (int index) const override
const Serialization::TypeDescription * descriptionByRegisteredName (const char *registeredName) const override
const char * findAnnotation (const char *typeName, const char *name) const override
void serializeNewByIndex (IArchive &ar, int index, const char *name, const char *label) override
std::shared_ptr< TBase > create (const char *registeredName)
const char * getRegisteredTypeName (const std::shared_ptr< TBase > &ptr) const

Static Public Member Functions

static CryExtensionClassFactory & the ()

Detailed Description

template class Serialization::CryExtensionClassFactory< TBase, TSerializable >

Provides Serialization::IClassFactory interface for classes registered with CryExtension to IArchive. TSerializable can be used to expose Serialize method through a separate interface, rathern than TBase. Safe to missing as QueryInterface is used to check its presence.