FilePathSeparator.hpp 593 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2020-08-15
  7. *
  8. * */
  9. #ifndef FILE_PATH_SEPARATOR_HPP
  10. #define FILE_PATH_SEPARATOR_HPP
  11. #include <string>
  12. namespace ls_std {
  13. class FilePathSeparator {
  14. public:
  15. FilePathSeparator() = default;
  16. ~FilePathSeparator() = default;
  17. static char getLinuxFilePathSeparator() {
  18. return '/';
  19. }
  20. static char getUnixFilePathSeparator() {
  21. return '\\';
  22. }
  23. };
  24. }
  25. #endif