![]() |
nomlib
|
Platform-specific interface for file based access in Windows. More...
#include <WinFile.hpp>
Public Member Functions | |
| const std::string | extension (const std::string &file) |
| int32 | size (const std::string &file_path) |
| bool | is_dir (const std::string &file_path) |
| Test for the existence of a directory. | |
| bool | is_file (const std::string &file_path) |
| bool | exists (const std::string &file_path) |
| const std::string | path (const std::string &dir_path) |
| Extract the directory portion of a pathname. | |
| std::string | currentPath (void) |
| bool | set_path (const std::string &path) |
| const std::string | basename (const std::string &filename) |
| std::vector< std::string > | read_dir (const std::string &dir_path) |
| Get a list of file entries within a directory. | |
| const std::string | resource_path (const std::string &identifier="\0") |
| Get the path to the Resources folder. | |
| const std::string | user_documents_path (void) |
| const std::string | user_app_support_path (void) |
| const std::string | user_home_path (void) |
| Get the current user's home directory path. | |
| const std::string | system_path (void) |
| Get the platform-defined system path. | |
| bool | mkdir (const std::string &path) |
| Create a directory entry. | |
| bool | recursive_mkdir (const std::string &path) |
| Create directories recursively. | |
| bool | rmdir (const std::string &path) |
| Remove a directory entry. | |
| bool | mkfile (const std::string &path) |
| std::string | env (const std::string &path) |
| Get the value of an environment variable. | |
| nom::size_type | num_files (const std::string &path) |
| Get the total number of files in a directory. | |
Platform-specific interface for file based access in Windows.
Definition at line 47 of file WinFile.hpp.
|
virtual |
|
virtual |
|
virtual |
Get the value of an environment variable.
Implements nom::IFile.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements nom::IFile.
|
virtual |
Create a directory entry.
| path | The absolute path to create the directory file at. |
Implements nom::IFile.
|
virtual |
Implements nom::IFile.
|
virtual |
Get the total number of files in a directory.
\params An absolute directory path.
Implements nom::IFile.
|
virtual |
Extract the directory portion of a pathname.
Implements nom::IFile::path.
Implements nom::IFile.
|
virtual |
Get a list of file entries within a directory.
Implements nom::IFile.
|
virtual |
Create directories recursively.
| path | The absolute path to create directory entries from. |
Implements nom::IFile.
|
virtual |
Get the path to the Resources folder.
| identifier | Not implemented; reserved for future use. |
Implements nom::IFile.
|
virtual |
Remove a directory entry.
| path | The absolute path to remove the directory file from. |
Implements nom::IFile.
|
virtual |
|
virtual |
|
virtual |
Get the platform-defined system path.
Implements nom::IFile.
|
virtual |
Obtain the path to the logged in user's (local) Application Data folder
$HOME/AppData/Local
Implements nom::IFile.
|
virtual |
Obtain the path to the logged in user's Documents folder
$HOME/Documents
Implements nom::IFile.
|
virtual |
Get the current user's home directory path.
Implements nom::IFile.