1#ifndef DACHARTPLOTITEMFACTORY_H
2#define DACHARTPLOTITEMFACTORY_H
4#include <unordered_map>
5#include "qwt_plot_item.h"
41 static QHash< int, DAChartPlotItemFactory::FpItemCreate >& factoryFunctionMap();
针对QwtPlotItem的工厂类
Definition DAChartPlotItemFactory.h:13
static void registCreateItemFucntion(int rtti, FpItemCreate fp)
注册工厂函数
Definition DAChartPlotItemFactory.cpp:63
static bool isHaveCreateItemFucntion(int rtti)
判断是否存在此工厂函数
Definition DAChartPlotItemFactory.cpp:68
static QwtPlotItem * createItem(int rtti)
创建item
Definition DAChartPlotItemFactory.cpp:54
std::function< QwtPlotItem *() > FpItemCreate
函数指针:QwtPlotItem* itemCreate(int rtti);
Definition DAChartPlotItemFactory.h:15
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44