📄 datagen.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 + -