The Battle for Wesnoth  1.19.0+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
filesystem::binary_paths_manager Struct Reference

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_manageroperator= (const binary_paths_manager &o)
void cleanup ()

Private Attributes

std::vector< std::string > paths_

Detailed Description

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 401 of file filesystem.hpp.

Constructor & Destructor Documentation

◆ binary_paths_manager() [1/3]

filesystem::binary_paths_manager::binary_paths_manager ( )

Definition at line 1495 of file filesystem.cpp.

◆ binary_paths_manager() [2/3]

filesystem::binary_paths_manager::binary_paths_manager ( const game_config_view cfg)

Definition at line 1500 of file filesystem.cpp.

References set_paths().

◆ ~binary_paths_manager()

filesystem::binary_paths_manager::~binary_paths_manager ( )

Definition at line 1506 of file filesystem.cpp.

References cleanup().

◆ binary_paths_manager() [3/3]

filesystem::binary_paths_manager::binary_paths_manager ( const binary_paths_manager o)

Member Function Documentation

◆ cleanup()

void filesystem::binary_paths_manager::cleanup ( )

Definition at line 1532 of file filesystem.cpp.

References p, and paths_.

Referenced by set_paths(), and ~binary_paths_manager().

◆ operator=()

binary_paths_manager& filesystem::binary_paths_manager::operator= ( const binary_paths_manager o)

◆ set_paths()

void filesystem::binary_paths_manager::set_paths ( const game_config_view cfg)

Member Data Documentation

◆ paths_

std::vector<std::string> filesystem::binary_paths_manager::paths_

Definition at line 415 of file filesystem.hpp.

Referenced by cleanup(), and set_paths().

The documentation for this struct was generated from the following files: