|
Fray Engine
|
#include <cstdlib>#include <cerrno>#include <cstdio>#include <ctime>#include <filesystem>#include <fstream>#include <memory>#include <set>#include <string>#include <system_error>#include <vector>#include <zip.h>#include "errors.hpp"#include "log_manager.hpp"#include <fcntl.h>#include <sys/file.h>#include <sys/stat.h>#include <unistd.h>Go to the source code of this file.
Classes | |
| class | fray::files::FileManager |
| Owns one working directory, its database name and a nonblocking file lock. Project workspaces additionally have archive paths and packaging operations. Operations run on the calling thread; the class has no internal mutex and callers must serialize access. State managers must detach before saving, closing or destroying this manager. More... | |
| struct | fray::files::FileManager::ProjectLock |
| Owns the operating-system handle and path of a project lock file. More... | |
Namespaces | |
| namespace | fray |
| namespace | fray::state |
| namespace | fray::files |
Enumerations | |
| enum class | fray::files::ConflictChoice { fray::files::Ask , fray::files::Archive , fray::files::Folder } |
| Selects how an archive/folder name conflict is resolved. Ask reports a conflict; Archive selects the archive; Folder selects the folder. More... | |
| enum class | fray::files::OpenMode { fray::files::OpenOrCreate , fray::files::CreateNew , fray::files::OpenExisting , fray::files::OpenSelected , fray::files::CreateInFolder , fray::files::CreateInFolderResolve } |
| Selects existence and conflict requirements when opening a project. OpenOrCreate opens or creates; CreateNew requires neither representation to exist. OpenExisting requires a representation; OpenSelected and CreateInFolder reject unresolved conflicts. CreateInFolderResolve requires a folder and permits explicit conflict resolution. More... | |