QElectroTech  0.8-dev
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
ElementFactory Class Reference

The ElementFactory class this class is a pattern factory and also a singleton factory. this class create new instance of herited class element like simple element or report element. More...

#include <elementfactory.h>

Collaboration diagram for ElementFactory:
Collaboration graph

Public Member Functions

ElementcreateElement (const ElementsLocation &, QGraphicsItem *=nullptr, int *=nullptr)
 ElementFactory::createElement. More...
 

Static Public Member Functions

static ElementFactoryInstance ()
 
static void dropInstance ()
 

Private Member Functions

 ElementFactory ()
 
 ElementFactory (const ElementFactory &)
 
ElementFactory operator= (const ElementFactory &)
 
 ~ElementFactory ()
 

Static Private Attributes

static ElementFactoryfactory_ = nullptr
 

Detailed Description

The ElementFactory class this class is a pattern factory and also a singleton factory. this class create new instance of herited class element like simple element or report element.

Constructor & Destructor Documentation

◆ ElementFactory() [1/2]

ElementFactory::ElementFactory ( )
inlineprivate
Here is the caller graph for this function:

◆ ElementFactory() [2/2]

ElementFactory::ElementFactory ( const ElementFactory )
private

◆ ~ElementFactory()

ElementFactory::~ElementFactory ( )
inlineprivate

Member Function Documentation

◆ createElement()

Element * ElementFactory::createElement ( const ElementsLocation location,
QGraphicsItem *  qgi = nullptr,
int *  state = nullptr 
)

ElementFactory::createElement.

Parameters
locationcreate element at this location
qgiparent item for this elemnt
statestate of the creation
Returns
the element or 0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dropInstance()

static void ElementFactory::dropInstance ( )
inlinestatic
Here is the caller graph for this function:

◆ Instance()

static ElementFactory* ElementFactory::Instance ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

ElementFactory ElementFactory::operator= ( const ElementFactory )
private

Member Data Documentation

◆ factory_

ElementFactory * ElementFactory::factory_ = nullptr
staticprivate

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