mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
27 lines
663 B
C++
27 lines
663 B
C++
#pragma once
|
|
|
|
#include "ISearchPath.h"
|
|
#include <vector>
|
|
|
|
class SearchPaths final : public ISearchPath
|
|
{
|
|
std::vector<ISearchPath*> m_search_paths;
|
|
|
|
public:
|
|
using iterator = std::vector<ISearchPath*>::iterator;
|
|
|
|
~SearchPaths() override;
|
|
FileAPI::IFile* Open(const std::string& fileName) override;
|
|
|
|
SearchPaths(const SearchPaths& other);
|
|
SearchPaths(SearchPaths&& other) noexcept;
|
|
SearchPaths& operator=(const SearchPaths& other);
|
|
SearchPaths& operator=(SearchPaths&& other) noexcept;
|
|
|
|
void AddSearchPath(ISearchPath* searchPath);
|
|
void RemoveSearchPath(ISearchPath* searchPath);
|
|
|
|
iterator begin();
|
|
iterator end();
|
|
};
|