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.
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 "mAlgDefines.h"
# include "mToolPvt_global.h"
class iPhaseDesc
{
public :
iPhaseDesc ( )
{
}
QString sAlias ;
bool bPhaseS ;
QString sMainPhase ;
} ;
// 这是相参数定义相关的管理类, 对应后台配置的FuzzyPhasesClassification文件
class M_TOOL_PVT_EXPORT iFluidDefineHelper
{
public :
// 获取对象,单例模式
static iFluidDefineHelper * getInstance ( ) ;
QString getMainPhaseOf ( PvtFluidType pft ) ;
QStringList getAllPhaseOf ( PvtFluidType pft ) ;
bool isPhaseS ( PvtFluidType pft ) ;
QString getPhaseDescAlias ( PvtFluidType pft ) ;
// 这是根据标识,获取是主相的油气水,比较另类的接口
WellFluidType getMainPhaseIdBy ( QString sTag ) ;
WellFluidType getWftByTag ( QString sTag ) ;
QStringList getOrderedTags ( ) ; //返回排序后的Tag
// 返回指针
QMap < PvtFluidType , iPhaseDesc > * getMapFluidDefinePtr ( ) ;
// 关闭消耗
static void release ( ) ;
private :
iFluidDefineHelper ( ) ;
~ iFluidDefineHelper ( ) ;
private :
private :
static iFluidDefineHelper * _helper ;
// 勾选了油气水后要设置的值
QMap < PvtFluidType , iPhaseDesc > m_mapFluidDefinePairs ; //每个
QMap < QString , QString > m_mapFluidTagPairs ; //中英文对
QStringList m_listFluidTagOrders ; //排序
QString m_sError ;
} ;
# define _fluidDefineHelper iFluidDefineHelper::getInstance()