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_Component/FITKOFDictWriter/FITKOFAbstractDictWriter.h

101 lines
2.6 KiB
C

/**
* @file FITKOFAbstractDictWriter.h
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
#ifndef __FITKOFABSTRACTDICTWRITER_H__
#define __FITKOFABSTRACTDICTWRITER_H__
#include "FITKOFDictWriterAPI.h"
#include <QString>
namespace DICT
{
class FITKDictObject;
}
namespace IO
{
/**
* @brief FITKOFAbstractDictWriter
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
class FITKOFAbstractDictWriter
{
public:
explicit FITKOFAbstractDictWriter();
virtual ~FITKOFAbstractDictWriter() = 0;
/**
* @brief
* @param[i] filePath
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
virtual void setFilePath(const QString& filePath) = 0;
/**
* @brief
* @return
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
virtual QString getFileName() = 0;
/**
* @brief run
* @return true:
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
virtual bool run() = 0;
protected:
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
void openDictObject();
/**
* @brief
* @return true false
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
bool writeDictFile();
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
void closeDictObject();
/**
* @brief
* @param[i] level 1 normal 2 warning 3error
* @param[i] str
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-15
*/
virtual void consoleMessage(int level, const QString& str);
protected:
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
QString m_filePath{};
/**
* @brief
* @author liuzhonghua (liuzhonghuaszch@163.com)
* @date 2024-07-19
*/
DICT::FITKDictObject* m_objectDict{};
};
}
#endif