Interface for a factory pattern to create ConfObject instances. More...
#include <object-factory-interface.h>
Public Member Functions | |
| virtual | ~ObjectFactoryInterface ()=default |
| virtual ConfObject * | create (conf_object_t *obj) const =0 |
| Creates a ConfObject instance from a conf_object_t pointer. | |
| virtual ObjectFactoryInterface * | clone () const =0 |
| Clones the current ObjectFactoryInterface instance. | |
Interface for a factory pattern to create ConfObject instances.
The ObjectFactoryInterface defines an interface for creating instances of ConfObject.
|
virtualdefault |
|
pure virtual |
Clones the current ObjectFactoryInterface instance.
This function creates and returns a copy of the current ObjectFactoryInterface instance.
Implemented in simics::ObjectFactory< T >, and simics::ObjectFactoryWithArg< T, A >.
|
pure virtual |
Creates a ConfObject instance from a conf_object_t pointer.
This function creates and returns a pointer to a ConfObject instance using the provided conf_object_t pointer.
| obj | Pointer to a conf_object_t instance. |
Implemented in simics::ObjectFactory< T >, and simics::ObjectFactoryWithArg< T, A >.