| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/filecache.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "ifilecache.h"cxx . . $ `<file>/src/core/ifilecache.h`/ |
| 7 | #include <filesystem> |
| 8 | |
| 9 | class FileCachecxx . . $ FileCache# : public IFileCachecxx . . $ IFileCache# |
| 10 | { |
| 11 | public: |
| 12 | FileCachecxx . . $ FileCache#FileCache(91601bf9ad65ca31).(stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# &&path) noexcept; |
| 13 | |
| 14 | void initcxx . . $ FileCache#init(49f6e7a06ebc5aa8).() override; |
| 15 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path#> addcxx . . $ FileCache#add(efab1f07c9a586fc).(stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const &path, |
| 16 | stdcxx . . $ std/::stringcxx . . $ std/string# const &name) override; |
| 17 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path#> addcxx . . $ FileCache#add(d83eed0e64cf1041).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> const &data, |
| 18 | stdcxx . . $ std/::stringcxx . . $ std/string# const &name) override; |
| 19 | void removecxx . . $ FileCache#remove(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &name) override; |
| 20 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path#> |
| 21 | getcxx . . $ FileCache#get(e718be3153167360).(stdcxx . . $ std/::stringcxx . . $ std/string# const &name, |
| 22 | stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const &defaultPath) const override; |
| 23 | stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# pathcxx . . $ FileCache#path(159787a050b29eb0).() const override; |
| 24 | |
| 25 | private: |
| 26 | bool cacheDirectoryExistcxx . . $ FileCache#cacheDirectoryExist(50ce9a9e25b4a850).() const; |
| 27 | |
| 28 | stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const path_cxx . . $ FileCache#path_.; |
| 29 | }; |