|
Fray Engine
|
Namespaces | |
| namespace | state |
| namespace | style |
| namespace | console |
| namespace | log |
| namespace | errors |
| namespace | files |
| namespace | watch |
| namespace | ipc |
| namespace | history |
| namespace | logs |
| namespace | routing |
| namespace | process |
| namespace | fonts |
| namespace | threads |
| namespace | identity |
Classes | |
| class | FrayManager |
| Owns and coordinates projects, their queues, application work, prompts, and logs. Project work runs on separate project threads; drive manager operations from one controlling thread. More... | |
| struct | DatabaseChoice |
| Chooses an existing candidate database or a new database when opening is ambiguous. More... | |
| class | ProjectManager |
| Owns a project’s files, state stores, watcher and registered threads. Public operations synchronize their own mutable state unless they return a reference or expose queue-owned pendingStep. Opening, closing and file-change handling are intended for the project’s own thread; callers must keep borrowed references valid and coordinate their use. More... | |
| struct | ProjectMessageResult |
| Project message status and optional response frame. More... | |
Functions | |
| message::FrameOptions | projectPreferencesFrame (const std::string &id, const std::string &name, bool packageOnClose, const std::string &error) |
| Builds a project preference snapshot or operation error. | |
| void | sendApplicationPreferences (FrayManager &application, ipc::IPCManager &ipc, F_ulong renderer, const std::string &error="") |
| Sends the current application preferences and an optional operation error. | |
| void | sendProjectOpenResult (ipc::IPCManager &ipc, const FrayManager::OpeningOrigin &origin, const std::string &path, F_err result) |
| Sends the result of a project-open or create request. | |
| message::FrameOptions | projectRenamedFrame (const std::string &id, const std::string &path, const std::string &name) |
| Builds a project-renamed notification for the renderer. | |
| message::FrameOptions | projectCloseResult (const message::InData &incoming, const std::string &name, F_err result, bool packaged, const std::string &path="", const std::string &id="") |
| Builds a close result addressed to the request sender. | |
| ProjectMessageResult | stepHistory (ProjectManager &project, const ProjectManager::PendingStep &step) |
| Resolves an undo or redo, updating history heads or requesting a missing layout revision. Run on the project queue; the renderer-provided revision first selects the layout head. | |
Variables | |
| constexpr const char * | layoutDomain = "layout:default" |
| History domain used for the default renderer layout. | |
| constexpr std::size_t | maxLayoutBytes = 1024 * 1024 |
| Maximum accepted size in bytes of a serialized layout. | |
A frame is three separate sections: [routing prefix: fixed binary] [Header: protobuf] [payload: opaque bytes] Routers inspect the header when routing a multicast; direct destinations are identified by the prefix.
|
inline |
Builds a close result addressed to the request sender.
| incoming | Original request, supplying sender and message ID. |
| name | Project name or requested target. |
| result | Close status; non-NONE values produce an error message. |
| packaged | Whether an archive was produced. |
| path | Resulting archive or working path, if known. |
| id | Stable id of the project that was closed, if known. |
Definition at line 95 of file project_message_handler.hpp.
|
inline |
Builds a project preference snapshot or operation error.
Builds a project preferences snapshot or operation error.
| id | Stable project identity. |
| name | Current project name, or empty for an error-only update. |
| packageOnClose | Current packaging preference. |
| error | Error to show, or empty on success. |
Definition at line 28 of file project_message_handler.hpp.
|
inline |
Builds a project-renamed notification for the renderer.
| id | Stable project ID. |
| path | New project path key. |
| name | New project name. |
Definition at line 69 of file project_message_handler.hpp.
|
inline |
Sends the current application preferences and an optional operation error.
| application | Engine-owned application manager. |
| ipc | IPC manager used for delivery. |
| renderer | Destination renderer instance. |
| error | Operation error to display, or empty on success. |
Definition at line 30 of file fray_message_handler.hpp.
|
inline |
Sends the result of a project-open or create request.
| ipc | IPC manager used for the result. |
| origin | Request sender and message identity. |
| path | Requested project path. |
| result | Project-open result. |
Definition at line 56 of file fray_message_handler.hpp.
|
inline |
Resolves an undo or redo, updating history heads or requesting a missing layout revision. Run on the project queue; the renderer-provided revision first selects the layout head.
| project | Open project whose history and pending step may change. |
| step | Direction, optional domain, and source layout revision. |
Definition at line 130 of file project_message_handler.hpp.
|
inlineconstexpr |
History domain used for the default renderer layout.
Definition at line 14 of file project_message_handler.hpp.
|
inlineconstexpr |
Maximum accepted size in bytes of a serialized layout.
Definition at line 18 of file project_message_handler.hpp.