GobChartsWidget  1.0
Public Member Functions | Static Public Member Functions | List of all members
GobChartsFactory Class Reference

Factory class responsible for the creation of charts at run-time. More...

#include <gobchartsfactory.h>

Inheritance diagram for GobChartsFactory:
GobChartsNoCopy

Public Member Functions

GobChartsViewcreateChart (GobChartsType type, QWidget *parent)
 Creates a chart view of type "type".
 

Static Public Member Functions

static GobChartsFactorygetInstance ()
 Returns the singleton instance.
 

Detailed Description

Factory class responsible for the creation of charts at run-time.

This factory is implemented as a singleton and is responsible for the creation of the user-selected chart types at run-time. Care must be taken when using this factory as it does not maintain ownership of the chart views it creates and clean-up becomes the responsibility of the calling object when no parent is specified.

Definition at line 39 of file gobchartsfactory.h.

Member Function Documentation

GobChartsView * GobChartsFactory::createChart ( GobChartsType  type,
QWidget *  parent 
)

Creates a chart view of type "type".

If no parent is provided, clean-up becomes the responsibility of the calling object.

Definition at line 54 of file gobchartsfactory.cpp.

GobChartsFactory * GobChartsFactory::getInstance ( )
static

Returns the singleton instance.

Definition at line 35 of file gobchartsfactory.cpp.


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