Local filesystem class. More...
#include <filefs.h>


Public Member Functions | |
| filefs () | |
| Constructor. | |
| virtual | ~filefs () |
| Destructor. | |
| virtual std::string | get_path_delimiter () const |
| Obtain default path delimiter. | |
| virtual std::string | get_current_dir () const |
| Determine the current directory. | |
| virtual void | set_current_dir (const std::string &name) const |
| Set the current directory. | |
| virtual std::string | get_temp_dir () const |
| Obtain a temporary directory. | |
| virtual std::string | get_home_dir () const |
| Obtain current user's home directory. | |
| virtual std::string | get_locale_dir () const |
| Obtain the locale-dependent data directory. | |
| virtual std::string | get_system_config_dir () const |
| Obtain the directory with configuration files. | |
| virtual std::string | get_data_dir () const |
| Obtain the application data directory. | |
Local filesystem class.
This class provides methods to access the local file system.
| virtual std::string dbp::filefs::get_current_dir | ( | ) | const [virtual] |
| virtual std::string dbp::filefs::get_data_dir | ( | ) | const [virtual] |
Obtain the application data directory.
Returns the directory where application data files (images, icons, resources...) are kept.
Implements dbp::filesystem.
| virtual std::string dbp::filefs::get_home_dir | ( | ) | const [virtual] |
Obtain current user's home directory.
Returns the current user home directory path (aka profile).
Implements dbp::filesystem.
| virtual std::string dbp::filefs::get_locale_dir | ( | ) | const [virtual] |
Obtain the locale-dependent data directory.
Returns the directory where localization files are installed.
Implements dbp::filesystem.
| virtual std::string dbp::filefs::get_path_delimiter | ( | ) | const [virtual] |
Obtain default path delimiter.
Returns the symbol(s) used for delimiting path elements in the current operating system.
Implements dbp::filesystem.
| virtual std::string dbp::filefs::get_system_config_dir | ( | ) | const [virtual] |
Obtain the directory with configuration files.
Returns the directory where configuration files are kept.
Implements dbp::filesystem.
| virtual std::string dbp::filefs::get_temp_dir | ( | ) | const [virtual] |
Obtain a temporary directory.
Returns the system temporary directory path. It should be suitable path for creating of temporary files.
Implements dbp::filesystem.
| virtual void dbp::filefs::set_current_dir | ( | const std::string & | name | ) | const [virtual] |