1234567891011121314151617181920212223242526 |
- #ifndef AFUN_TOOL_DIRECTORY_H
- #define AFUN_TOOL_DIRECTORY_H
- #ifdef __cplusplus
- #include <iostream>
- #include "aFunToolExport.h"
- /* 文件处理工具 */
- #ifndef AFUN_TOOL_C
- namespace aFuntool {
- #endif
- AFUN_TOOL_EXPORT std::string joinPath(const std::string &path, const std::string &name, const std::string &suffix);
- AFUN_TOOL_EXPORT std::string getFileName(const std::string &path);
- AFUN_TOOL_EXPORT std::string getFilePathName(const std::string &path);
- AFUN_TOOL_EXPORT std::string getFilePath(const std::string &path_1, int dep);
- AFUN_TOOL_EXPORT std::string getFileSuffix(const std::string &path);
- AFUN_TOOL_EXPORT std::string fileNameToVar(const std::string &name);
- AFUN_TOOL_EXPORT std::string findPath(const std::string &path, const std::string &env);
- AFUN_TOOL_EXPORT std::string getExePath();
- #ifndef AFUN_TOOL_C
- }
- #endif
- #endif
- #endif //AFUN_TOOL_DIRECTORY_H
|