-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojectmanager.h
46 lines (41 loc) · 1.12 KB
/
projectmanager.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _PROJECTMANAGER_H_
#define _PROJECTMANAGER_H_
#pragma once
#include <filesystem>
#include <fstream>
#include <getopt.h>
#include <iostream>
#include <string>
#include <unistd.h>
class ProjectManager {
private:
std::string configFile;
std::string configBuffer;
public:
std::string projectPath; // 指工程文件夹所在的目录
std::string currentProject;
ProjectManager();
void readConfig();
bool checkProject();
void checkProjectDirectory();
// 以下为创建项目时所用函数的封装:
void initCMakeLists();
void initMain();
void initDirectory();
void initBuild();
// 以下为命令行方法:
void setDefaultPath(std::string projectPath);
void setCurrentProject(std::string projectName);
void delProject(std::string projectName);
void createProject();
void list() const;
void buildWithoutRun();
void make();
void run();
void addClass(std::string projectName, std::string className);
void showHelp();
void delClass(std::string className);
void clean();
void debugBuild();
};
#endif // _PROJECTMANAGER_H_