ContentType.h header
#include <ew/core/content/ContentType.h>
Namespace ew::core::content
Enumerations
enum class ContentType { Document, Entity, Spreadsheet, Chart, Map, Timeline, TimelineEvent, Media, Source, Task, Canvas, Comment, Language, RandomTable, StatBlock, BranchScene, VoiceScript, BarkCollection }
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::vector< ContentType > ew::core::content::allContentTypes()
Every content type, in declaration order.
For code that must treat the set as a whole rather than dispatch on one value – the sample project's coverage check is the first caller, and it exists because the sample silently omitted two types for as long as they had existed. Derived from the same table toToken uses, so a type added there is in this list without anybody remembering to add it.
std::optional< ContentType > ew::core::content::contentTypeFromToken(QStringView token)
Parses a content type from its serialization token; std::nullopt if unrecognized.
QString ew::core::content::toToken(ContentType type)
Returns the stable serialization token for type (e.g. "document").