⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datagen.h

📁 PSP公交查询系统的公交数据管理。使用跨平台的QT作为开发工具。目前尚未全部完成。
💻 H
字号:
#pragma once
#include <vector>
#include <string>
#include <sstream>
#include "Line.h"

using namespace std;

class DataGen {
enum TYPE{
	ONE,//
	TWO,//上行 下行
	CIRCLE_IN, //环行 内
	CIRCLE_OUT, //环行 外
	CIRCLE, //环行
	NO
};
private:
	int mPos1;
	int mPos2;
	char *mContent;

	char *ReadFile(string file);
	void SaveLine(const int type, const string name, const string comment, string content1, string content2);
	void SaveStops(const int type, const string name, string line);
	void SaveStops(const string name, string line, bool isSame);
public:
	string m_seprator;

	DataGen();
	~DataGen();
	void GetAllLines(vector<string> &lines, Comment &comment);
	void ClearData();
	void InitDir(char *dir);

	void GetLine(const char *name, Line &line);

	void DeleteLine(const char *oldName) ;
	void SaveLine(const Line &line);
	void UpdateComment(Comment &comment);

	void GetStops(const char *name, vector<string> &stops1, vector<string> &stops2);
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -