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.
AppFlow/FITK_Interface/FITKInterfaceIOHDF5/FITKInterfaceHDF5AdaptorMat...

71 lines
2.0 KiB
C

/**
*
* @file FITKAbaqusHDF5AdaptorMaterialAssign.h
* @brief HDF5SectionAssign
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-05
*
*/
#ifndef _FITKINTERFACEHDF5ADAPTORMATERIALASSIGN_H__
#define _FITKINTERFACEHDF5ADAPTORMATERIALASSIGN_H__
#include "FITKInterfaceIOHDF5API.h"
#include "FITKAbstractHDF5Adaptor.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
//前置声明
ForwardDeclarNS(Interface, FITKAbstractSection)
ForwardDeclarNS(Interface, FITKMaterialAssign)
ForwardDeclarNS(Interface, FITKAbstractMaterial)
namespace IO
{
/**
* @brief HDF5 MaterialAssign
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-05
*/
class FITKINTERFACEHDF5IOAPI FITKInterfaceHDF5AdaptorMaterialAssign : public FITKAbstractHDF5Adaptor
{
public:
explicit FITKInterfaceHDF5AdaptorMaterialAssign() = default;
virtual ~FITKInterfaceHDF5AdaptorMaterialAssign() = default;
/**
* @brief
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-05
*/
QString getAdaptorClass() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-05
*/
bool adaptR() override;
/**
* @brief
* @return true false
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-05
*/
bool adaptW() override;
protected:
virtual bool readMaterialAssign(Interface::FITKMaterialAssign* assign, H5::Group& h5Group);
virtual bool writeMaterialAssign(Interface::FITKMaterialAssign* assign, H5::Group& h5Group);
};
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKMaterialAssign, FITKInterfaceHDF5AdaptorMaterialAssign)
}
#endif