DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DADir.h
1#ifndef DADIR_H
2#define DADIR_H
3#include "DAUtilsAPI.h"
4#include <QTemporaryDir>
5#include <QDebug>
6namespace DA
7{
15class DAUTILS_API DADir
16{
17public:
18 DADir();
19
24 static QString getAPPName();
25
31 static QString getTempPath();
32
37 static QTemporaryDir& tempDir();
38
44 static QString getTempPath(const QString& folderName);
45
51 static QDir tempDir(const QString& folderName);
52
60 static QString getTempFilePath(const QString& fileName);
61
73 static QString getConfigPath();
74
80 static QString getConfigPath(const QString& folderName);
81
87 static QString getExecutablePath();
88
93 static std::string get_executable_path();
94
104 static QString getAppDataPath();
105
111 static QString getAppDataPath(const QString& folderName);
112
113 // 一些常用的路径
118 static QString getLogFileName();
119
124 static QString getLogPath();
125
130 static QString getLogFilePath();
131
136 static QString getDumpFilePath();
137};
138
145QDebug DAUTILS_API operator<<(QDebug debug, const DADir& c);
146
147}
148
149#endif // DADIR_H
这个类定义了DA的固定路径,包括临时目录,配置文件目录等路径
Definition DADir.h:16
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44