mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
824 B
C++
27 lines
824 B
C++
|
#pragma once
|
||
|
|
||
|
#include "shared.hpp"
|
||
|
#include "pbo/archive.hpp"
|
||
|
|
||
|
namespace ace {
|
||
|
namespace pbo {
|
||
|
class search {
|
||
|
public:
|
||
|
search();
|
||
|
search(const std::string &);
|
||
|
|
||
|
const std::unordered_map<std::string, std::string> & file_index() { return _file_pbo_index; }
|
||
|
const std::vector<std::string> & active_pbo_list() { return _active_pbo_list; }
|
||
|
protected:
|
||
|
bool index_files();
|
||
|
bool index_files(const std::string &);
|
||
|
bool generate_pbo_list();
|
||
|
|
||
|
std::unordered_map<std::string, std::string> _file_pbo_index;
|
||
|
|
||
|
std::vector<std::string> _active_pbo_list;
|
||
|
std::vector<ace::pbo::archive_p> _archives;
|
||
|
};
|
||
|
typedef std::shared_ptr<search> search_p;
|
||
|
}
|
||
|
}
|