The paths manager is responsible for recording the various paths that binary files may be located at. More...
#include <filesystem.hpp>
Public Member Functions | |
binary_paths_manager () | |
binary_paths_manager (const game_config_view &cfg) | |
~binary_paths_manager () | |
void | set_paths (const game_config_view &cfg) |
Private Member Functions | |
binary_paths_manager (const binary_paths_manager &o) | |
binary_paths_manager & | operator= (const binary_paths_manager &o) |
void | cleanup () |
Private Attributes | |
std::vector< std::string > | paths_ |
The paths manager is responsible for recording the various paths that binary files may be located at.
It should be passed a config object which holds binary path information. This is in the format
* [binary_path] * path=<path> * [/binary_path] * Binaries will be searched for in [wesnoth-path]/data/<path>/images/ *
Definition at line 437 of file filesystem.hpp.
filesystem::binary_paths_manager::binary_paths_manager | ( | ) |
Definition at line 1462 of file filesystem.cpp.
filesystem::binary_paths_manager::binary_paths_manager | ( | const game_config_view & | cfg | ) |
Definition at line 1467 of file filesystem.cpp.
References set_paths().
filesystem::binary_paths_manager::~binary_paths_manager | ( | ) |
Definition at line 1473 of file filesystem.cpp.
References cleanup().
|
private |
|
private |
Definition at line 1499 of file filesystem.cpp.
Referenced by set_paths(), and ~binary_paths_manager().
|
private |
void filesystem::binary_paths_manager::set_paths | ( | const game_config_view & | cfg | ) |
Definition at line 1478 of file filesystem.cpp.
References game_config_view::child_range(), cleanup(), ERR_FS, filesystem::init_binary_paths(), game_config::path, and paths_.
Referenced by binary_paths_manager(), test_utils::game_config_manager::game_config_manager(), and game_config_manager::load_game_config().
|
private |
Definition at line 451 of file filesystem.hpp.
Referenced by cleanup(), and set_paths().