-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigInfo.h
More file actions
32 lines (27 loc) · 843 Bytes
/
ConfigInfo.h
File metadata and controls
32 lines (27 loc) · 843 Bytes
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
//
// Created by Alex on 10/26/2016.
//
#ifndef ECLIPSE_AUTO_WORKSPACE_CONFIGINFO_H
#define ECLIPSE_AUTO_WORKSPACE_CONFIGINFO_H
#include "all_inlcudes.h"
static const string CONFIG_FILE_NAME = "config.conf";
static const string CONFIG_WORKSPACE_PARAM = "workspace_path=";
static const string ECLIPSE_EXE_PATH = "C:\\eclipse\\eclipse.exe";
class ConfigInfo {
private:
string rawPath;
char driveLetter;
public:
ConfigInfo();
string getRawPath();
void setRawPath(string pConfigPath);
char getDriveLetter();
void setDriveLetter();
string buildFullPath();
};
string findRawPath(string pPath);
char findDriveLetter();
bool doesPathExist(string pPath);
bool doesFileExist(string pPath);
bool createConfig(string pPath);
#endif //ECLIPSE_AUTO_WORKSPACE_CONFIGINFO_H