Fray Engine
Loading...
Searching...
No Matches
fray::history::Node Struct Reference

One recorded history action with domain-defined opaque payload. More...

#include <history_manager.hpp>

Public Attributes

std::int64_t id = 0
 Database identifier of this node.
std::int64_t parentId = 0
 Parent node identifier, or 0 for the first node in a domain.
std::int64_t sequence = 0
 Global recording order across domains.
std::uint64_t revision = 0
 Recorder-assigned, never-reused revision within the domain.
std::string domain
 Domain that owns and interprets this action.
std::string payload
 Opaque action data interpreted by its domain.

Detailed Description

One recorded history action with domain-defined opaque payload.

Definition at line 24 of file history_manager.hpp.

Member Data Documentation

◆ domain

std::string fray::history::Node::domain

Domain that owns and interprets this action.

Definition at line 45 of file history_manager.hpp.

◆ id

std::int64_t fray::history::Node::id = 0

Database identifier of this node.

Definition at line 29 of file history_manager.hpp.

◆ parentId

std::int64_t fray::history::Node::parentId = 0

Parent node identifier, or 0 for the first node in a domain.

Definition at line 33 of file history_manager.hpp.

◆ payload

std::string fray::history::Node::payload

Opaque action data interpreted by its domain.

Definition at line 49 of file history_manager.hpp.

◆ revision

std::uint64_t fray::history::Node::revision = 0

Recorder-assigned, never-reused revision within the domain.

Definition at line 41 of file history_manager.hpp.

◆ sequence

std::int64_t fray::history::Node::sequence = 0

Global recording order across domains.

Definition at line 37 of file history_manager.hpp.


The documentation for this struct was generated from the following file: