1、timemodeDataManager

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

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

@ -3,5 +3,5 @@ TEMPLATE = subdirs
SUBDIRS += \
$$PWD/CFDStructGUI \
$$PWD/CUIProperty \
$$PWD/CFDOperatorsModel \ \
CFDStructDataManager
$$PWD/CFDOperatorsModel \
$$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.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
CFDStructDataManager.cpp
HEADERS += \
CFDStructDataManager_global.h \
CFDStructDataManager.h
include(./CFDStructDataManager.pri)
# Default rules for deployment.
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