Fray Engine
Loading...
Searching...
No Matches
fray::files Namespace Reference

Classes

class  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...

Enumerations

enum class  ConflictChoice { Ask , Archive , 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  OpenMode {
  OpenOrCreate , CreateNew , OpenExisting , OpenSelected ,
  CreateInFolder , 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...

Enumeration Type Documentation

◆ ConflictChoice

enum class fray::files::ConflictChoice
strong

Selects how an archive/folder name conflict is resolved. Ask reports a conflict; Archive selects the archive; Folder selects the folder.

Enumerator
Ask 
Archive 
Folder 

Definition at line 55 of file file_manager.hpp.

◆ OpenMode

enum class fray::files::OpenMode
strong

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.

Enumerator
OpenOrCreate 
CreateNew 
OpenExisting 
OpenSelected 
CreateInFolder 
CreateInFolderResolve 

Definition at line 62 of file file_manager.hpp.