Faro Engine
0.0.0.b519570 (main)
Loading...
Searching...
No Matches
Source
Engine
Core
Source
Containers
Path.hpp
Go to the documentation of this file.
1
#pragma once
2
#include "../Containers/String.hpp"
3
4
namespace
Faro
5
{
6
enum
PathType
7
{
8
Unknown
,
9
Filepath
,
10
Directory
11
};
12
13
class
Path
14
{
15
public
:
16
Path
(
const
Path
& path);
17
Path
();
18
Path
(
String
path);
19
20
Path
ParentDirectory
();
21
22
bool
Exists
();
23
24
PathType
GetType
();
25
26
String
Get
();
27
28
Path
GetFileName
();
29
30
Path
RemoveExtension
();
31
32
Path
GetRelative
(
Path
path)
const
;
33
34
Path
operator+
(
String
);
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
}
Faro::Path
Definition
Path.hpp:14
Faro::Path::Get
String Get()
Definition
Path.cpp:61
Faro::Path::GetFileName
Path GetFileName()
Definition
Path.cpp:66
Faro::Path::GetRelative
Path GetRelative(Path path) const
Definition
Path.cpp:84
Faro::Path::Path
Path()
Definition
Path.cpp:11
Faro::Path::RemoveExtension
Path RemoveExtension()
Definition
Path.cpp:75
Faro::Path::Exists
bool Exists()
Definition
Path.cpp:37
Faro::Path::ParentDirectory
Path ParentDirectory()
Definition
Path.cpp:22
Faro::Path::operator+
Path operator+(String)
Definition
Path.cpp:96
Faro::Path::GetType
PathType GetType()
Definition
Path.cpp:43
Faro::Path::operator<
bool operator<(const Path &other) const
Definition
Path.hpp:36
Faro::String
Definition
String.hpp:12
Faro
Definition
Array.hpp:8
Faro::PathType
PathType
Definition
Path.hpp:7
Faro::Directory
@ Directory
Definition
Path.hpp:10
Faro::Filepath
@ Filepath
Definition
Path.hpp:9
Faro::Unknown
@ Unknown
Definition
Path.hpp:8
Generated by
1.9.8