source/System/File.cpp: move path stuff to Path.cpp
This commit is contained in:
parent
66f3bb30d9
commit
1a218532c0
8 changed files with 50 additions and 30 deletions
|
|
@ -7,12 +7,6 @@
|
|||
|
||||
namespace sp { namespace file
|
||||
{
|
||||
std::string getBasename(const std::string& path);
|
||||
|
||||
std::string getExtension(const std::string& path);
|
||||
|
||||
std::string getPathname(const std::string& path);
|
||||
|
||||
std::vector<unsigned char> read(const std::string& path);
|
||||
} }
|
||||
|
||||
|
|
|
|||
19
include/Spectre/System/Path.h
Normal file
19
include/Spectre/System/Path.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#ifndef SYSTEM_PATH_H
|
||||
#define SYSTEM_PATH_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace sp {
|
||||
|
||||
class Path
|
||||
{
|
||||
public :
|
||||
static std::string getBasename(const std::string& path);
|
||||
|
||||
static std::string getExtension(const std::string& path);
|
||||
};
|
||||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* SYSTEM_PATH_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue