FilePathSeparator.hpp 891 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2024-09-13
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_PATH_SEPARATOR_HPP
  10. #define LS_STD_FILE_PATH_SEPARATOR_HPP
  11. #include <ls-std/os/dynamic-goal.hpp>
  12. #include <string>
  13. /*
  14. * @doc: class(name: 'FilePathSeparator', package: 'io')
  15. * @doc: io.FilePathSeparator.description('This class represents the OS specific separator withing file paths on either Windows- or Unix-like operating systems.')
  16. * */
  17. namespace ls::std::io
  18. {
  19. class LS_STD_DYNAMIC_GOAL FilePathSeparator
  20. {
  21. public:
  22. FilePathSeparator();
  23. ~FilePathSeparator();
  24. [[nodiscard]] static char get();
  25. [[nodiscard]] static char getUnixFilePathSeparator();
  26. [[nodiscard]] static char getWindowsFilePathSeparator();
  27. };
  28. }
  29. #endif