You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Include/nmNum/nmSubWnd/nmPebiResultPageInstaller.h

33 lines
1.1 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "nmSubWnd_global.h"
class iSubWndFitting;
class nmDataAnalyzeManager;
/**
* @brief 统一安装或同步 PEBI 结果页面。
*
* 本类只负责把三维结果视图和只读结果参数控件装入现有结果页载体,
* 不持有窗口、DataManager 或快照。求解完成与成果加载必须共用该入口,
* 避免分别维护页面创建、布局复用和重复同步规则。
*/
class NM_SUB_WND_EXPORT nmPebiResultPageInstaller
{
public:
/**
* @brief 安装或同步三维结果页与只读结果参数页。
* @param pFitting 结果页所属的流动段分析窗口,非所有权指针。
* @param pManager 与 pFitting 绑定的 DataManager,非所有权指针。
* @return 两个页面均成功安装或同步时返回 true。
* @note 不要求 Manager 已有快照;无快照时仍安装稳定空页面。
*/
static bool installOrSynchronize(
iSubWndFitting* pFitting,
nmDataAnalyzeManager* pManager);
private:
/** @brief 纯静态职责类,禁止构造实例。 */
nmPebiResultPageInstaller();
};