|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @file FITKAbaqusHDF5AdaptorSectionAssign.h
|
|
|
|
|
* @brief 读写HDF5文件的SectionAssign类
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-06-05
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef _FITKINTERFACEHDF5ADAPTORSECTIONASSIGN_H__
|
|
|
|
|
#define _FITKINTERFACEHDF5ADAPTORSECTIONASSIGN_H__
|
|
|
|
|
|
|
|
|
|
#include "FITKInterfaceIOHDF5API.h"
|
|
|
|
|
#include "FITKAbstractHDF5Adaptor.h"
|
|
|
|
|
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
|
|
|
|
|
|
|
|
|
|
//前置声明
|
|
|
|
|
ForwardDeclarNS(Interface, FITKSectionAssign)
|
|
|
|
|
ForwardDeclarNS(Interface, FITKAbstractSection)
|
|
|
|
|
ForwardDeclarNS(Interface, FITKAbstractMaterial)
|
|
|
|
|
|
|
|
|
|
namespace IO
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @brief HDF5 SectionAssign 截面指派 读写适配器
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-05-31
|
|
|
|
|
*/
|
|
|
|
|
class FITKINTERFACEHDF5IOAPI FITKInterfaceHDF5AdaptorSectionAssign : public FITKAbstractHDF5Adaptor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit FITKInterfaceHDF5AdaptorSectionAssign() = default;
|
|
|
|
|
virtual ~FITKInterfaceHDF5AdaptorSectionAssign() = default;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取适配器数据类型名
|
|
|
|
|
* @return 适配器数据类型名
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-05-31
|
|
|
|
|
*/
|
|
|
|
|
QString getAdaptorClass() override;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief 适配器读取
|
|
|
|
|
* @return 状态 true成功, false失败
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-05-31
|
|
|
|
|
*/
|
|
|
|
|
bool adaptR() override;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief 适配器写出
|
|
|
|
|
* @return 状态 true成功, false失败
|
|
|
|
|
* @author fulipeng (fulipengqd@yeah.net)
|
|
|
|
|
* @date 2024-05-31
|
|
|
|
|
*/
|
|
|
|
|
bool adaptW() override;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
virtual bool readSectionAssign(Interface::FITKSectionAssign* section, H5::Group& h5Group);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool writeSectionAssign(Interface::FITKSectionAssign* section, H5::Group& h5Group);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKSectionAssign, FITKInterfaceHDF5AdaptorSectionAssign)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|