ContentType.h header

#include <ew/core/ContentType.h>

Namespace ew::core

Enumerations

enum class ContentType { Document, Entity, Spreadsheet, Chart, Map, Timeline, TimelineEvent, Media, Source, Task, Canvas, Comment, Language, RandomTable, StatBlock }

The structural kind of a content object — the fixed, code-known shape of an object (Document, Entity, ...). Distinct from a user-defined taxonomy category, which is data carried by an Entity. Serialized as a stable lowercase token.

Functions

std::optional< ContentType > ew::core::contentTypeFromToken(QStringView token)

Parses a content type from its serialization token; std::nullopt if unrecognized.

QString ew::core::toToken(ContentType type)

Returns the stable serialization token for type (e.g. "document").