#include "FITKAbstractGlobalDataFactory.h" #include "FITKGlobalData.h" namespace AppFrame { FITKAbstractGlobalDataFactory::~FITKAbstractGlobalDataFactory() { } void FITKAbstractGlobalDataFactory::createData(FITKGlobalData* globalData) { //错误判断 if (globalData == nullptr) return; //创建网格 auto d = this->createMeshData(); globalData->insertData(GDTMesh, d); //创建几何 d = this->createGeoData(); globalData->insertData(GDTGeom, d); //创建物理数据 d = this->createPhysicsData(); globalData->insertData(GDTPhysics, d); //创建后处理数据 d = this->createPostData(); globalData->insertData(GDTPost, d); //创建软件运行时数据 // d = this->createRunTimeSetting(); // globalData->insertData(GDTRunTime, d); //创建其他数据 QHash othersData = this->createOtherData(); QList dts = othersData.keys(); for (auto dt : dts) { globalData->insertData(dt, othersData.value(dt)); } } Core::FITKAbstractDataObject* FITKAbstractGlobalDataFactory::createMeshData() { return nullptr; } Core::FITKAbstractDataObject* FITKAbstractGlobalDataFactory::createGeoData() { return nullptr; } Core::FITKAbstractDataObject* FITKAbstractGlobalDataFactory::createPhysicsData() { return nullptr; } Core::FITKAbstractDataObject* FITKAbstractGlobalDataFactory::createPostData() { return nullptr; } // Core::FITKAbstractDataObject* FITKAbstractGlobalDataFactory::createRunTimeSetting() // { // return nullptr; // } QHash FITKAbstractGlobalDataFactory::createOtherData() { return QHash(); } }