#ifndef VIRTUALFILESYSTEM_H_
#define VIRTUALFILESYSTEM_H_
-#include <list>
#include <map>
#include <set>
+#include <vector>
#include <msp/fs/path.h>
#include "buildinfo.h"
class Builder;
class FileTarget;
class Pattern;
+class Tool;
/**
Provides access to the filesystem in a way that takes known targets into
class VirtualFileSystem
{
public:
- typedef std::list<Msp::FS::Path> SearchPath;
+ using SearchPath = std::vector<Msp::FS::Path>;
private:
- typedef std::map<Msp::FS::Path, FileTarget *> TargetMap;
-
Builder &builder;
- TargetMap targets;
+ std::map<Msp::FS::Path, FileTarget *> targets;
std::set<Msp::FS::Path> nonexistent;
+ SearchPath sys_bin_path;
public:
VirtualFileSystem(Builder &);