Workspace 6.21.5
Public Member Functions | List of all members
AdaptToQVariantFactory< T, Adapt > Class Template Reference

#include <Workspace/DataExecution/DataObjects/typeddatafactory.h>

Inheritance diagram for AdaptToQVariantFactory< T, Adapt >:
[legend]

Public Member Functions

 AdaptToQVariantFactory ()=default
 
 AdaptToQVariantFactory (const AdaptToQVariantFactory &)=delete
 
 ~AdaptToQVariantFactory () override
 
TypeAdaptorcreate () const override
 
void destroy (TypeAdaptor *adaptor) const override
 
const DataFactorygetDestTypeFactory () const override
 
const Application::WorkspacePlugingetPlugin () const override
 
DataFactorygetSrcTypeFactory () const override
 
void init ()
 
AdaptToQVariantFactoryoperator= (const AdaptToQVariantFactory &)=delete
 
- Public Member Functions inherited from TypeAdaptorFactory
virtual ~TypeAdaptorFactory ()=default
 
virtual TypeAdaptorcreate () const =0
 
virtual void destroy (TypeAdaptor *adaptor) const =0
 
virtual const DataFactorygetDestTypeFactory () const =0
 
virtual const Application::WorkspacePlugingetPlugin () const =0
 
virtual DataFactorygetSrcTypeFactory () const =0
 

Constructor & Destructor Documentation

◆ AdaptToQVariantFactory() [1/2]

◆ AdaptToQVariantFactory() [2/2]

AdaptToQVariantFactory ( const AdaptToQVariantFactory< T, Adapt > &  )
delete

◆ ~AdaptToQVariantFactory()

~AdaptToQVariantFactory ( )
inlineoverride

Member Function Documentation

◆ create()

TypeAdaptor * create ( ) const
inlineoverridevirtual
Returns
A new TypeAdaptor. Ownership is given to the caller, but the caller must use the destroy function to delete the operation. A valid object must be returned.

Most subclasses will simply use the C++ new operator to implement this function.

Implements TypeAdaptorFactory.

◆ destroy()

void destroy ( TypeAdaptor adaptor) const
inlineoverridevirtual
Parameters
adaptorThe adaptor to destroy. It must have been created by a call to create().

Calling this function essentially gives back ownership of the adapter to the factory, but the expectation is that the adapter will be deleted. Most subclasses will simply use the C++ delete operator to implement this function.

Implements TypeAdaptorFactory.

◆ getDestTypeFactory()

const DataFactory & getDestTypeFactory ( ) const
inlineoverridevirtual
Returns
An instance of the destination DataObject's DataFactory. This is used to ensure that any adaptions will be valid and to organise the items in the manager.

Implements TypeAdaptorFactory.

◆ getPlugin()

const Application::WorkspacePlugin & getPlugin ( ) const
inlineoverridevirtual
Returns
The plugin which this TypeAdaptorFactory comes from.

Implements TypeAdaptorFactory.

◆ getSrcTypeFactory()

DataFactory & getSrcTypeFactory ( ) const
inlineoverridevirtual
Returns
An instance of the source DataObject's DataFactory. Note that this is a non-const instance because some clients will need to use it to add the adaptor factory to the source DataFactory's list of adaptors.

Implements TypeAdaptorFactory.

◆ init()

void init ( )
inline

◆ operator=()

AdaptToQVariantFactory & operator= ( const AdaptToQVariantFactory< T, Adapt > &  )
delete