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.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "Defines.h"
|
|
|
|
|
|
#include "iFileEngine.h"
|
|
|
|
|
|
#include "iFileEngine_global.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Excel格式文件加载解析引擎
|
|
|
|
|
|
class I_FILE_ENGINE_EXPORT iFileEngineExcel : public iFileEngine
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
iFileEngineExcel();
|
|
|
|
|
|
~iFileEngineExcel();
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
void setSheet(QString sSheet);
|
|
|
|
|
|
|
|
|
|
|
|
virtual bool load(VVecVariant& vvecData, QString sFile);
|
|
|
|
|
|
static bool getAllSheets(QString sFile, QStringList& list);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
// 尝试对名称和单位的模糊解析
|
|
|
|
|
|
virtual bool tryParse(VVecVariant& vvec);
|
|
|
|
|
|
|
|
|
|
|
|
// 利用倒回两行,try查找标题单位
|
|
|
|
|
|
//
|
|
|
|
|
|
virtual bool tryParseTitleUnit(const VecVariant& vec);
|
|
|
|
|
|
virtual bool tryParseTitle(const VecVariant& vec);
|
|
|
|
|
|
|
|
|
|
|
|
// 判断改行是否全是数字
|
|
|
|
|
|
bool isDigitLine(const VecVariant& vec);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
QString m_sSheet;
|
|
|
|
|
|
|
|
|
|
|
|
};
|