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.
nmWATI/Include/iData/iFileEngine/iFileEngineDat.h

33 lines
693 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "Defines.h"
#include "iFileEngine.h"
#include "iFileEngine_global.h"
// Dat等文本型格式文件加载解析引擎
class I_FILE_ENGINE_EXPORT iFileEngineDat : public iFileEngine
{
public:
iFileEngineDat();
~iFileEngineDat();
public:
virtual bool load(VVecVariant& vvecData, QString sFile);
protected:
// 解析文件头
virtual bool tryParse(QString sFile);
// 利用倒回两行try查找标题单位
//
virtual bool tryParseTitleUnit(QString s1);
virtual bool tryParseTitle(QString s1);
// 判断改行是否全是数字
bool isDigitLine(const QByteArray &ba);
bool isDigitLine(const QString& sLine);
};