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.
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
/**
|
|
*
|
|
* @file FITKElementFactory.h
|
|
* @brief 单元创建工厂声明
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
* @date 2024-02-29
|
|
*
|
|
*/
|
|
#ifndef _FITKELEMENT_FACTORY_H__
|
|
#define _FITKELEMENT_FACTORY_H__
|
|
|
|
#include "FITKInterfaceModelAPI.h"
|
|
#include "FITKModelEnum.h"
|
|
|
|
namespace Interface
|
|
{
|
|
class FITKAbstractElement;
|
|
/**
|
|
* @brief 单元创建简单工厂,不可实例化
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
* @date 2024-02-29
|
|
*/
|
|
class FITKInerfaceModelAPI FITKElementFactory
|
|
{
|
|
public:
|
|
/**
|
|
* @brief 根据类型创建单元对象
|
|
* @param[i] t 单元类型
|
|
* @return FITKAbstractElement*
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
* @date 2024-02-29
|
|
*/
|
|
static FITKAbstractElement* createElement(FITKModelEnum::FITKEleType t);
|
|
|
|
|
|
private:
|
|
/**
|
|
* @brief Construct a new FITKElementFactory object
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
* @date 2024-02-29
|
|
*/
|
|
FITKElementFactory() = default;
|
|
FITKElementFactory(const FITKElementFactory &) = delete;
|
|
/**
|
|
* @brief Destroy the FITKElementFactory object
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
* @date 2024-02-29
|
|
*/
|
|
~FITKElementFactory() = default;
|
|
};
|
|
}
|
|
#endif
|