13 namespace DtSerialization
28 bool omitSpatial =
false);
54 bool omitSpatial =
false);
61 bool omitSpatial =
false);
68 bool omitSpatial =
false);
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtTacticalGraphicSnapshot - Complete state of a tactical graphic at a point in time. Represents waypoints, routes, boundaries, areas, and other tactical overlays.
Definition: dataTypes.h:124
DtJsonSerializer - Converts data source types to JSON.
Definition: jsonSerializer.h:20
static Json::Value uuidToJson(const DtUUID &uuid)
Convert a DtUUID to a JSON string, or an empty string if the UUID is invalid.
static Json::Value geocentricToJson(const DtVector &ecef)
Convert a geocentric ECEF position to a JSON array [lat_deg, lon_deg, alt_m].
static Json::Value entityTypeToJson(const DtEntityType &type)
Convert DtEntityType to JSON array [kind, domain, country, category, subcategory, specific...
static Json::Value entitySnapshotToJson(const DtDatasource::DtEntitySnapshot &snapshot, bool omitSpatial=false)
Convert an DtEntitySnapshot to JSON attributes.
static DtVector geocentricFromJson(const Json::Value &arr)
Convert a JSON array [lat_deg, lon_deg, alt_m] (or [lat_deg, lon_deg]) to a geocentric ECEF DtVector...
Contains the DtUUID class declaration.
static Json::Value location3dToJson(const std::array< double, 3 > &loc)
Convert a 3-element [lat, lon, alt] or [x, y, z] array to a JSON array.
DtEntitySnapshot - Complete state of an entity at a point in time. VRF-agnostic intermediate represen...
Definition: dataTypes.h:57
static bool hasChanges(const Json::Value ¤t, const Json::Value &lastSent)
Check if any attributes have changed between two JSON objects.
static Json::Value stringVectorToJson(const std::vector< std::string > &strings)
Convert a vector of strings to a JSON array.
IMGUI_API void Value(const char *prefix, bool b)
static Json::Value aggregateSnapshotToJson(const DtDatasource::DtAggregateSnapshot &snapshot, bool omitSpatial=false)
Convert a DtAggregateSnapshot to JSON attributes.
static Json::Value contactReportSnapshotToJson(const DtDatasource::DtContactReportSnapshot &snapshot, bool omitSpatial=false)
Convert a DtContactReportSnapshot to JSON attributes.
static Json::Value entityIdentifierToJson(const DtEntityIdentifier &id)
Convert DtEntityIdentifier to JSON array [site, app, entity].
static DtEntityType entityTypeFromJson(const Json::Value &arr)
Convert a JSON array [kind, domain, country, category, subcategory, specific, extra] to DtEntityType...
static Json::Value createObjectDeletedMessage(const std::string &objectName, const std::string &objectType)
Create a WebLVC ObjectDeleted message.
DtAggregateSnapshot- Complete state of an aggregate entity at a point in time. VRF-agnostic intermedi...
Definition: dataTypes.h:171
static Json::Value tacticalGraphicSnapshotToJson(const DtDatasource::DtTacticalGraphicSnapshot &snapshot, bool omitSpatial=false)
Convert a DtTacticalGraphicSnapshot to JSON attributes.