CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
LocalFileSystem.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2023 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Forward.hpp"
11
13
14namespace CeresEngine {
15
18 public:
21
22 public:
24 FileHandle open(StringView path) override;
25
27 FileHandle open(String&& path) override;
28
31 bool recursive = true) override;
32 };
33
34} // namespace CeresEngine
A context for function object execution.
Definition ExecutionContext.hpp:90
Handle for a file or directory.
Definition FileHandle.hpp:46
Watcher that reports on changes of files or directories.
Definition FileWatcher.hpp:41
Interface for accessing file systems.
Definition FileSystem.hpp:28
An implementation of a local file system.
Definition LocalFileSystem.hpp:17
FileHandle open(StringView path) override
Opens a file or directory in file system.
FileHandle open(String &&path) override
Opens a file or directory in file system.
FileWatcher createFileWatcher(ExecutionContext &executionContext, const FileHandle &directory, const FileEvents &events=FileEvent::Default, bool recursive=true) override
Watches a directory for changes.
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25