#include <UFile.h>
Public Member Functions | |
void | copy (const std::string &to) |
bool | exists () |
std::string | getExtension () |
std::string | getName () |
bool | isValid () |
long | length () |
int | rename (const std::string &newName) |
UFile (const std::string &path) | |
~UFile () | |
Static Public Member Functions | |
static void | copy (const std::string &from, const std::string &to) |
static int | erase (const std::string &filePath) |
static bool | exists (const std::string &filePath) |
static std::string | getExtension (const std::string &filePath) |
static std::string | getName (const std::string &filePath) |
static long | length (const std::string &filePath) |
static int | rename (const std::string &oldFilePath, const std::string &newFilePath) |
Private Attributes | |
std::string | path_ |
Class UFile.
This class can be used to modify/erase files on hard drive.
UFile::UFile | ( | const std::string & | path | ) | [inline] |
UFile::~UFile | ( | ) | [inline] |
void UFile::copy | ( | const std::string & | from, |
const std::string & | to | ||
) | [static] |
void UFile::copy | ( | const std::string & | to | ) | [inline] |
int UFile::erase | ( | const std::string & | filePath | ) | [static] |
bool UFile::exists | ( | const std::string & | filePath | ) | [static] |
bool UFile::exists | ( | ) | [inline] |
std::string UFile::getExtension | ( | const std::string & | filePath | ) | [static] |
std::string UFile::getExtension | ( | ) | [inline] |
std::string UFile::getName | ( | const std::string & | filePath | ) | [static] |
std::string UFile::getName | ( | ) | [inline] |
bool UFile::isValid | ( | ) | [inline] |
long UFile::length | ( | const std::string & | filePath | ) | [static] |
long UFile::length | ( | ) | [inline] |
int UFile::rename | ( | const std::string & | oldFilePath, |
const std::string & | newFilePath | ||
) | [static] |
int UFile::rename | ( | const std::string & | newName | ) | [inline] |
std::string UFile::path_ [private] |