tool_directory.h 907 B

1234567891011121314151617181920212223242526
  1. #ifndef AFUN_TOOL_DIRECTORY_H
  2. #define AFUN_TOOL_DIRECTORY_H
  3. #ifdef __cplusplus
  4. #include <iostream>
  5. #include "aFunToolExport.h"
  6. /* 文件处理工具 */
  7. #ifndef AFUN_TOOL_C
  8. namespace aFuntool {
  9. #endif
  10. AFUN_TOOL_EXPORT std::string joinPath(const std::string &path, const std::string &name, const std::string &suffix);
  11. AFUN_TOOL_EXPORT std::string getFileName(const std::string &path);
  12. AFUN_TOOL_EXPORT std::string getFilePathName(const std::string &path);
  13. AFUN_TOOL_EXPORT std::string getFilePath(const std::string &path_1, int dep);
  14. AFUN_TOOL_EXPORT std::string getFileSuffix(const std::string &path);
  15. AFUN_TOOL_EXPORT std::string fileNameToVar(const std::string &name);
  16. AFUN_TOOL_EXPORT std::string findPath(const std::string &path, const std::string &env);
  17. AFUN_TOOL_EXPORT std::string getExePath();
  18. #ifndef AFUN_TOOL_C
  19. }
  20. #endif
  21. #endif
  22. #endif //AFUN_TOOL_DIRECTORY_H