1、timemodeDataManager

feature/struct-menu-20241023
mzh 3 weeks ago
parent 1cf3d9974d
commit 41e304a443

@ -45,8 +45,6 @@ win32{
-lFITKFlowOFIOHDF5 \ -lFITKFlowOFIOHDF5 \
-lOperatorsModel \ -lOperatorsModel \
Debug:CONFIG += console Debug:CONFIG += console
Debug:DESTDIR = ../../output/bin_d Debug:DESTDIR = ../../output/bin_d
Debug:MOC_DIR = ../../generate/CFDOperatorsModel/debug/moc Debug:MOC_DIR = ../../generate/CFDOperatorsModel/debug/moc

@ -3,5 +3,5 @@ TEMPLATE = subdirs
SUBDIRS += \ SUBDIRS += \
$$PWD/CFDStructGUI \ $$PWD/CFDStructGUI \
$$PWD/CUIProperty \ $$PWD/CUIProperty \
$$PWD/CFDOperatorsModel \ \ $$PWD/CFDOperatorsModel \
CFDStructDataManager $$PWD/CFDStructDataManager

@ -0,0 +1,8 @@
SOURCES += \
CFDStructDataManager.cpp \
CFDStructTimeModeDataManager.cpp \
HEADERS += \
CFDStructDataManager_global.h \
CFDStructDataManager.h \
CFDStructTimeModeDataManager.h

@ -17,12 +17,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt. # You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \ include(./CFDStructDataManager.pri)
CFDStructDataManager.cpp
HEADERS += \
CFDStructDataManager_global.h \
CFDStructDataManager.h
# Default rules for deployment. # Default rules for deployment.
unix { unix {

@ -0,0 +1,7 @@
#include "CFDStructTimeModeDataManager.h"
CFDStructTimeModeDataManager &CFDStructTimeModeDataManager::GetInstance()
{
static CFDStructTimeModeDataManager res;
return res;
}

@ -0,0 +1,15 @@
#include "CFDStructDataManager_global.h"
class CFDSTRUCTDATAMANAGER_EXPORT CFDStructTimeModeDataManager{
public:
static int timeMode;
static int iterationSteps;
static CFDStructTimeModeDataManager& GetInstance();
int& getTimeModeAddr();
int& getIterationoStepsAddr();
private:
CFDStructTimeModeDataManager();
~CFDStructTimeModeDataManager();
};
Loading…
Cancel
Save