|
sftools
2.0 dev
Bunch of tools for SFML application development
|
Minimalist locations manager. More...
#include <Locations.hpp>
Collaboration diagram for sftools::Locations:Public Types | |
| typedef Storage::const_iterator | ConstIterator |
| Constant iterator type. | |
Public Member Functions | |
| void | add (std::string const &path) |
| Add a path to the locations. | |
| void | remove (std::string const &path) |
| Remove a location. | |
| void | clear () |
| Remove all locations. | |
| ConstIterator | begin () const |
| Return an iterator on the first location. | |
| ConstIterator | end () const |
| Return an iterator to the element following the last location. | |
Minimalist locations manager.
Basically it's a collection of paths. ResourceLocations makes something useful from it.
/ or not. Here is the difference :Path class and be able to do something like Locations loc; loc.add({"res"}.add({"img"}, {"snd"}), {"extra"}).Definition at line 68 of file Locations.hpp.
| typedef Storage::const_iterator sftools::Locations::ConstIterator |
Constant iterator type.
Definition at line 75 of file Locations.hpp.
|
inline |
Add a path to the locations.
| path | location to be added |
Definition at line 82 of file Locations.hpp.
|
inline |
Return an iterator on the first location.
If no location was added yet this method return the same iterator as end.
Definition at line 122 of file Locations.hpp.
Referenced by sftools::loader::ResourceLoader< R >::operator()().
|
inline |
Remove all locations.
Definition at line 110 of file Locations.hpp.
|
inline |
Return an iterator to the element following the last location.
Definition at line 132 of file Locations.hpp.
Referenced by sftools::loader::ResourceLoader< R >::operator()().
|
inline |
Remove a location.
If path was not previously added nothing is done.
| path | location to be removed |
Definition at line 96 of file Locations.hpp.
1.8.3