Platform-agnostic file system interface.
More...
#include <File.hpp>
|
|
std::string | extension (const std::string &file) const |
| | Re-implements nom::IFile::extension.
|
|
int32 | size (const std::string &file_path) const |
| | Re-implements nom::IFile::size.
|
|
bool | is_dir (const std::string &file_path) const |
| | Test for the existence of a directory.
|
|
bool | is_file (const std::string &file_path) const |
|
bool | exists (const std::string &file_path) const |
| | Re-implements nom::IFile::exists.
|
| std::string | path (const std::string &dir_path) const |
| | Platform-specific implementation of IFile::path.
|
|
std::string | currentPath () const |
| | Re-implements nom::IFile::currentPath.
|
|
bool | set_path (const std::string &path) const |
| | Re-implements nom::IFile::set_path.
|
|
std::string | basename (const std::string &filename) const |
| | Re-implements nom::IFile::basename.
|
|
std::vector< std::string > | read_dir (const std::string &dir_path) const |
|
std::string | resource_path (const std::string &identifier="\0") const |
|
std::string | user_documents_path () const |
|
std::string | user_app_support_path () const |
|
std::string | user_home_path () const |
|
std::string | system_path () const |
| bool | mkdir (const std::string &path) const |
| bool | recursive_mkdir (const std::string &path) const |
| bool | rmdir (const std::string &path) const |
| bool | mkfile (const std::string &path) const |
| std::string | env (const std::string &path) const |
| nom::size_type | num_files (const std::string &path) const |
Platform-agnostic file system interface.
- Todo
- Declare methods static
Definition at line 54 of file File.hpp.
◆ env()
| std::string nom::File::env |
( |
const std::string & | path | ) |
const |
◆ mkdir()
| bool nom::File::mkdir |
( |
const std::string & | path | ) |
const |
◆ mkfile()
| bool nom::File::mkfile |
( |
const std::string & | path | ) |
const |
◆ num_files()
| nom::size_type nom::File::num_files |
( |
const std::string & | path | ) |
const |
◆ path()
| std::string nom::File::path |
( |
const std::string & | dir_path | ) |
const |
◆ recursive_mkdir()
| bool nom::File::recursive_mkdir |
( |
const std::string & | path | ) |
const |
◆ rmdir()
| bool nom::File::rmdir |
( |
const std::string & | path | ) |
const |
◆ file
| std::unique_ptr<IFile> nom::File::file |
|
private |
The documentation for this class was generated from the following file:
- /home/jeff/Projects/nomlib.git/include/nomlib/system/File.hpp