cesium-native  0.41.0
CesiumJsonWriter Namespace Reference

Classes for writing JSON. More...

Classes

class  ExtensionWriterContext
 
class  JsonWriter
 
class  PrettyJsonWriter
 

Enumerations

enum class  ExtensionState { Enabled , Disabled }
 The state of an extension. More...
 

Functions

void writeJsonValue (const CesiumUtility::JsonValue &value, JsonWriter &writer)
 
template<typename TExtended >
void writeJsonExtensions (const TExtended &obj, JsonWriter &jsonWriter, const ExtensionWriterContext &context)
 

Detailed Description

Classes for writing JSON.

Enumeration Type Documentation

◆ ExtensionState

The state of an extension.

Enumerator
Enabled 

The extension is enabled.

If the extension is a CesiumUtility::JsonValue or a registered statically-typed class it will be written to the serialized model; otherwise it will be ignored and a warning will be reported.

Disabled 

The extension is disabled.

It will not be represented in the serialized model at all.

Definition at line 17 of file ExtensionWriterContext.h.