cumbia-qtcontrols 1.x
Qt widgets on top of the cumbia C++ library
Public Member Functions | List of all members
CuControlsWriterFactoryI Class Referenceabstract

cumbia-qtcontrols writer factory. Creates an instance of a CuControlWriterA implementation. More...

#include <cucontrolsfactories_i.h>

Public Member Functions

virtual ~CuControlsWriterFactoryI ()
 
virtual CuControlsWriterAcreate (Cumbia *, CuDataListener *) const =0
 Subclasses implement the create method to return an instance of a CuControlsWriterA implementation. More...
 
virtual CuControlsWriterFactoryIclone () const =0
 clone an instance. More...
 
virtual void setOptions (const CuData &options)=0
 set options to be used when creating the writer. More...
 

Detailed Description

cumbia-qtcontrols writer factory. Creates an instance of a CuControlWriterA implementation.

Subclasses must implement the create, clone and setOptions pure virtual methods.

Constructor & Destructor Documentation

◆ ~CuControlsWriterFactoryI()

virtual CuControlsWriterFactoryI::~CuControlsWriterFactoryI ( )
inlinevirtual

Member Function Documentation

◆ clone()

virtual CuControlsWriterFactoryI * CuControlsWriterFactoryI::clone ( ) const
pure virtual

clone an instance.

Clones the current instance

Referenced by CuContext::CuContext(), and CuControlsFactoryPool::registerImpl().

◆ create()

virtual CuControlsWriterA * CuControlsWriterFactoryI::create ( Cumbia *  ,
CuDataListener *   
) const
pure virtual

Subclasses implement the create method to return an instance of a CuControlsWriterA implementation.

Returns
a pointer to an instance of a CuControlsWriterA implementation

◆ setOptions()

virtual void CuControlsWriterFactoryI::setOptions ( const CuData &  options)
pure virtual

set options to be used when creating the writer.

This is engine dependent.

Parameters
optionsa CuData containing key/value pairs that are specific of an engine.

Options are normally set within the create method, when a CuControlsWriterA is instantiated.


The documentation for this class was generated from the following file: