chrono::ChClassRegistrationBase Class Referenceabstract

Description

Base class for all registration data of classes whose objects can be created via a class factory.

#include <ChClassFactory.h>

Inheritance diagram for chrono::ChClassRegistrationBase:

Public Member Functions

virtual void * create ()=0
 The signature of create method for derived classes. Calls new().
 
virtual void * create (ChArchiveIn &marchive)=0
 Call the ArchiveINconstructor(ChArchiveIn&) function if available (deserializes constructor params and return new()), otherwise just call new(). More...
 
virtual std::type_index get_type_index ()=0
 Get the type_info of the class.
 
virtual std::string & get_tag_name ()=0
 Get the name used for registering.
 

Member Function Documentation

virtual void* chrono::ChClassRegistrationBase::create ( ChArchiveIn marchive)
pure virtual

Call the ArchiveINconstructor(ChArchiveIn&) function if available (deserializes constructor params and return new()), otherwise just call new().

Implemented in chrono::ChClassRegistration< t >.