DataExport.h header

#include <ew/app/DataExport.h>

Namespace ew::app

Enumerations

enum class DataSliceKind { Entities, Timeline, Sources, PlotThreads, ContinuityRules }

A slice of the project a structured export can emit as JSON, for migration / diff / external tooling.

Functions

std::optional< DataSliceKind > ew::app::dataSliceKindFromToken(const QString &token)

Parses a data-slice kind token ("entities", "timeline", "sources", "plot_threads", "continuity_rules"; a few aliases accepted); nullopt when unrecognized.

QJsonArray ew::app::exportDataSlice(const ew::core::Project &project, const MountedLibraries &libraries, DataSliceKind kind)

A human-meaningful, deterministic JSON array of the requested kind slice of project: names (not UUIDs) throughout — an entity's Reference fields and a timeline event's participants/location resolve to the target's name across libraries. Only the open project's own objects are exported (not mounted-library content); objects (and reference targets) marked "Exclude from AI" are omitted. Arrays are sorted by a stable key and object keys are sorted, so the output is diff-friendly.

QString ew::app::toToken(DataSliceKind kind)

The stable token for kind (the canonical name accepted by dataSliceKindFromToken).