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.
81 lines
2.0 KiB
C++
81 lines
2.0 KiB
C++
/**********************************************************************
|
|
* @file FITKOFCreatePatchDictWriter.h
|
|
* @brief createPatchDict写出接口
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-08-26
|
|
*********************************************************************/
|
|
#ifndef __FITKFLOWOFCREATEPATCHDICTWRITER_H__
|
|
#define __FITKFLOWOFCREATEPATCHDICTWRITER_H__
|
|
|
|
#include "FITKOFDictWriterAPI.h"
|
|
#include "FITKOFAbstractDictWriter.h"
|
|
|
|
namespace Interface
|
|
{
|
|
class FITKAbstractRegionMeshSize;
|
|
}
|
|
|
|
namespace DICT
|
|
{
|
|
class FITKDictVector;
|
|
class FITKDictArray;
|
|
}
|
|
|
|
namespace IO
|
|
{
|
|
/**
|
|
* @brief ControlMeshDict 文件写出器
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-07-15
|
|
*/
|
|
class FITKOFCreatePatchDictWriter : public FITKOFAbstractDictWriter
|
|
{
|
|
public:
|
|
explicit FITKOFCreatePatchDictWriter();
|
|
virtual ~FITKOFCreatePatchDictWriter();
|
|
|
|
/**
|
|
* @brief 设置文件路径
|
|
* @param[i] filePath
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-07-19
|
|
*/
|
|
void setFilePath(const QString& filePath) override;
|
|
/**
|
|
* @brief 重写run函数
|
|
* @return 状态 true:成功 false:失败
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-07-15
|
|
*/
|
|
bool run() override;
|
|
/**
|
|
* @brief 获取文件
|
|
* @return QString
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-07-19
|
|
*/
|
|
QString getFileName() override;
|
|
|
|
private:
|
|
/**
|
|
* @brief 设置字典里的FoamFile
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-07-19
|
|
*/
|
|
void dictObjectFoamFile();
|
|
bool createPatchDictW();
|
|
|
|
private:
|
|
/**
|
|
* @brief 文件名
|
|
* @author liuzhonghua (liuzhonghuaszch@163.com)
|
|
* @date 2024-07-19
|
|
*/
|
|
QString m_fileName{};
|
|
};
|
|
}
|
|
|
|
|
|
|
|
#endif
|