Workspace 6.21.5
Public Member Functions | Static Public Member Functions | List of all members
QVariantToQVectorDateTimeAdaptor::Factory Class Reference

Factory for the QVariant to QVector<double> adaptor.

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

Inheritance diagram for QVariantToQVectorDateTimeAdaptor::Factory:
[legend]

Public Member Functions

DataExecution::TypeAdaptorcreate () const override
 
void destroy (DataExecution::TypeAdaptor *a) const override
 
const DataExecution::DataFactorygetDestTypeFactory () const override
 
const Application::WorkspacePlugingetPlugin () const override
 
DataExecution::DataFactorygetSrcTypeFactory () const override
 
- 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
 

Static Public Member Functions

static const FactorygetInstance ()
 

Member Function Documentation

◆ create()

TypeAdaptor * create ( ) const
overridevirtual
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 ( DataExecution::TypeAdaptor adaptor) const
overridevirtual
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
overridevirtual
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.

◆ getInstance()

const QVariantToQVectorDateTimeAdaptor::Factory & getInstance ( )
static

◆ getPlugin()

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

Implements TypeAdaptorFactory.

◆ getSrcTypeFactory()

DataFactory & getSrcTypeFactory ( ) const
overridevirtual
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.