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...

84 lines
2.3 KiB
C

/**
*
* @file FITKInterfaceHDF5AdaptorMaterial.h
* @brief HDF5Material
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-31
*
*/
#ifndef _FITKINTERFACEHDF5ADAPTORMATERIAL_H__
#define _FITKINTERFACEHDF5ADAPTORMATERIAL_H__
#include "FITKInterfaceIOHDF5API.h"
#include "FITKAbstractHDF5Adaptor.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
//前置声明
ForwardDeclarNS(Interface, FITKAbstractMaterial)
namespace IO
{
/**
* @brief HDF5 Material
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-05-31
*/
class FITKINTERFACEHDF5IOAPI FITKInterfaceHDF5AdaptorMaterial : public FITKAbstractHDF5Adaptor
{
public:
explicit FITKInterfaceHDF5AdaptorMaterial() = default;
virtual ~FITKInterfaceHDF5AdaptorMaterial() = 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:
/**
* @brief groupName
* @param material
* @param h5Group
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-03
*/
virtual bool readMaterial(Interface::FITKAbstractMaterial* material, H5::Group & h5Group);
/**
* @brief
* @param material
* @param h5Group
* @return
* @author fulipeng (fulipengqd@yeah.net)
* @date 2024-06-03
*/
virtual bool writeMaterial(Interface::FITKAbstractMaterial* material, H5::Group & h5Group);
};
Register2FITKIOAdaptorFactory(HDF5, Interface::FITKAbstractMaterial, FITKInterfaceHDF5AdaptorMaterial)
}
#endif