1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| #pragma once
| #include <fstream>
| #include <vector>
| #include <ctime>
| #include <iomanip>
| #include <sstream>
| #include "struct_data.h"
| #define BUF_MAX_SIZE (8 * 1024)
| #define FILE_PATH "./"
| class SaveFile
| {
| public:
| SaveFile();
| ~SaveFile();
| int fileop(char* str, int len);
| int fileHead(char* str, int len);
| int fileData(char* str, int len);
| int fileFin(char* str, int len);
| std::vector<std::string> split(const std::string &s, char delimiter);
| std::string curTime();
| private:
| std::string *fileName;
| int flag;
| char *buf;
| SQLFiles instFiles;
| SQLVersions instVersions;
| };
|
|