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/FITKInterfaceIO/FITKAbstractIO.h

101 lines
2.6 KiB
C

/**
*
* @file FITKAbstractIO.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*
*/
#ifndef _FITKABSTRACTIO_H____
#define _FITKABSTRACTIO_H____
#include "FITKInterfaceIOAPI.h"
#include "FITK_Kernel/FITKCore/FITKThreadTask.h"
namespace Core
{
class FITKAbstractDataObject;
}
namespace Interface
{
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
class FITKInterfaceIOAPI FITKAbstractIO : public Core::FITKThreadTask
{
Q_OBJECT
public:
/**
* @brief Construct a new FITKAbstractIO object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
explicit FITKAbstractIO() = default;
/**
* @brief Destroy the FITKAbstractIO object
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
virtual ~FITKAbstractIO() = 0;
/**
* @brief
* @param[i] fileName
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
virtual void setFileName(const QString& fileName);
/**
* @brief
* @return QString
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
QString getFileName() const;
/**
* @brief
* @param[i] data
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
virtual void setDataObject(Core::FITKAbstractDataObject* data);
/**
* @brief 线
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
void push2ThreadPool();
/**
* @brief
* @param[i] level 1 normal 2 warning 3error
* @param[i] str
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
virtual void consoleMessage(int level, const QString& str) = 0;
protected:
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-08
*/
QString _fileName{};
/**
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-03-29
*/
Core::FITKAbstractDataObject* _data{};
};
}
#endif