simpleparser.h
来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 32 行
H
32 行
#ifndef __SIMPLE_PARSER_H__
#define __SIMPLE_PARSER_H__
// SimpleParser.h: interface for the SimpleParser namespace.
//
//////////////////////////////////////////////////////////////////////
#include <string>
#include <vector>
#include "System/FileSystem/FileHandler.h"
class CSimpleParser
{
public:
static std::vector<std::string> Tokenize(const std::string& line, int minWords = 0);
CSimpleParser(CFileHandler& fh);
int GetLineNumber();
std::string GetLine();
std::string GetCleanLine();
private:
CFileHandler& file;
int lineNumber;
bool inComment;
};
#endif // __SIMPLE_PARSER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?