2021-03-31 | Paul Boddie | raw annotate files changeset graph | Removed the largely superfluous accessing abstraction. Since each accessor will only employ one page mapper referencing the accessor, a mapping from file identifiers to page mappers can be maintained. |
1 #pragma once 2 3 #include "host_file_opener.h" 4 5 6 7 /* Support for providing access to files. */ 8 9 class BlockFileOpener : public HostFileOpener 10 { 11 protected: 12 /* Configurable methods. */ 13 14 virtual Accessor *make_accessor(fileid_t fileid); 15 16 public: 17 explicit BlockFileOpener(Paging *paging, Pages *pages) 18 : HostFileOpener(paging, pages) 19 { 20 } 21 }; 22 23 // vim: tabstop=4 expandtab shiftwidth=4