X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualfilesystem.h;h=60e198ad3b2dcf866c2be8f67094e054edf146e9;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=a3327de2490001c1f3e3c349ac284e66fb9c7611;hpb=f5413fd8f007164591af26be9ded15ee7c707540;p=builder.git diff --git a/source/virtualfilesystem.h b/source/virtualfilesystem.h index a3327de..60e198a 100644 --- a/source/virtualfilesystem.h +++ b/source/virtualfilesystem.h @@ -1,15 +1,16 @@ #ifndef VIRTUALFILESYSTEM_H_ #define VIRTUALFILESYSTEM_H_ -#include #include #include +#include #include #include "buildinfo.h" class Builder; class FileTarget; class Pattern; +class Tool; /** Provides access to the filesystem in a way that takes known targets into @@ -19,17 +20,16 @@ possible to build them. class VirtualFileSystem { public: - typedef std::list SearchPath; + using SearchPath = std::vector; private: - typedef std::map TargetMap; - Builder &builder; - TargetMap targets; + std::map targets; std::set nonexistent; + SearchPath sys_bin_path; public: - VirtualFileSystem(Builder &); + VirtualFileSystem(Builder &b): builder(b) { } /** Gets an existing target associated with a path. If no target has claimed that path, 0 is returned. */