Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Path.hpp
Go to the documentation of this file.
1#pragma once
2#include "../Containers/String.hpp"
3
4namespace Faro
5{
12
13 class Path
14 {
15 public:
16 Path(const Path& path);
17 Path();
18 Path(String path);
19
21
22 bool Exists();
23
25
26 String Get();
27
29
31
32 Path GetRelative(Path path) const;
33
35
36 bool operator <(const Path& other) const
37 {
38 return path < other.path;
39 }
40
41 private:
42 String path;
43
44 void format_();
45 };
46}
Definition Path.hpp:14
String Get()
Definition Path.cpp:61
Path GetFileName()
Definition Path.cpp:66
Path GetRelative(Path path) const
Definition Path.cpp:84
Path()
Definition Path.cpp:11
Path RemoveExtension()
Definition Path.cpp:75
bool Exists()
Definition Path.cpp:37
Path ParentDirectory()
Definition Path.cpp:22
Path operator+(String)
Definition Path.cpp:96
PathType GetType()
Definition Path.cpp:43
bool operator<(const Path &other) const
Definition Path.hpp:36
Definition String.hpp:12
Definition Array.hpp:8
PathType
Definition Path.hpp:7
@ Directory
Definition Path.hpp:10
@ Filepath
Definition Path.hpp:9
@ Unknown
Definition Path.hpp:8