VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
webLVCMessage.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include <string>
9 #include <vector>
10 #include <json/json.h>
11 
12 namespace DtWeblvc
13 {
14 
17 enum class DtMessageKind
18 {
19  // Connection Messages
20  Connect,
22 
23  // Configuration Messages
24  Configure,
26 
27  // Entity Messages
30 
31  // Tactical Graphic Messages
34 
35  // Aggregate Messages
38 
39  // Contact Report Messages
42 
43  // Object Management
47 
48  // Interaction Messages
51 
52  // Logging Messages
53  LogRequest,
55 
56  // Connection Maintenance
57  Ping,
58 
59  // Scenario status push
61 
62  // Role status push messages
65 
66  // Subscription control
68 
69  Unknown
70 };
71 
72 // ============================================================================
73 // Message Category — used by SubscribeMessageTypes to gate outbound traffic
74 // ============================================================================
75 
79 {
80  Entities,
82  Aggregates,
83  Interactions,
85  Roles,
87  Unknown
88 };
89 
92 {
93  switch (cat)
94  {
95  case DtMessageCategory::Entities: return "Entities";
96  case DtMessageCategory::TacticalGraphics: return "TacticalGraphics";
97  case DtMessageCategory::Aggregates: return "Aggregates";
98  case DtMessageCategory::Interactions: return "Interactions";
99  case DtMessageCategory::ScenarioStatus: return "ScenarioStatus";
100  case DtMessageCategory::Roles: return "Roles";
101  case DtMessageCategory::ContactReports: return "ContactReports";
103  default: return "Unknown";
104  }
105 }
106 
108 inline DtMessageCategory DtParseMessageCategory(const std::string& str)
109 {
110  if (str == "Entities") { return DtMessageCategory::Entities; }
111  if (str == "TacticalGraphics") { return DtMessageCategory::TacticalGraphics; }
112  if (str == "Aggregates") { return DtMessageCategory::Aggregates; }
113  if (str == "Interactions") { return DtMessageCategory::Interactions; }
114  if (str == "ScenarioStatus") { return DtMessageCategory::ScenarioStatus; }
115  if (str == "Roles") { return DtMessageCategory::Roles; }
116  if (str == "ContactReports") { return DtMessageCategory::ContactReports; }
118 }
119 
122 inline std::string DtMessageKindToString(DtMessageKind kind)
123 {
124  switch (kind)
125  {
126  // Connection Messages
128  return "Connect";
130  return "ConnectResponse";
131 
132  // Configuration Messages
134  return "Configure";
136  return "ConfigureResponse";
137 
138  // Entity Messages
140  return "EntityAttributeUpdate";
142  return "EntityAttributeUpdateMultiple";
143 
144  // Tactical Graphic Messages
146  return "TacticalGraphicAttributeUpdate";
148  return "TacticalGraphicAttributeUpdateMultiple";
149 
150  // Aggregate Messages
152  return "AggregateAttributeUpdate";
154  return "AggregateAttributeUpdateMultiple";
155 
156  // Contact Report Messages
158  return "ContactReportAttributeUpdate";
160  return "ContactReportAttributeUpdateMultiple";
161 
162  // Object Management
164  return "ObjectDeleted";
166  return "ObjectDeletedMultiple";
168  return "ResetObjects";
169 
170  // Interaction Messages
172  return "Interaction";
174  return "InteractionMultiple";
175 
176  // Logging Messages
178  return "LogRequest";
180  return "LogResponse";
181 
182  // Connection Maintenance
183  case DtMessageKind::Ping:
184  return "Ping";
185 
187  return "ScenarioStatus";
188 
189  // Role status push messages
191  return "ScenarioRolesStatus";
193  return "PlayerRolesStatus";
194 
195  // Subscription control
197  return "SubscribeMessageTypes";
198 
200  default:
201  return "Unknown";
202  }
203 }
204 
207 inline DtMessageKind DtParseMessageKind(const std::string& str)
208 {
209  // Connection Messages
210  if (str == "Connect")
211  {
212  return DtMessageKind::Connect;
213  }
214  if (str == "ConnectResponse")
215  {
217  }
218 
219  // Configuration Messages
220  if (str == "Configure")
221  {
223  }
224  if (str == "ConfigureResponse")
225  {
227  }
228 
229  // Entity Messages
230  if (str == "EntityAttributeUpdate")
231  {
233  }
234  if (str == "EntityAttributeUpdateMultiple")
235  {
237  }
238 
239  // Tactical Graphic Messages
240  if (str == "TacticalGraphicAttributeUpdate")
241  {
243  }
244  if (str == "TacticalGraphicAttributeUpdateMultiple")
245  {
247  }
248 
249  // Aggregate Messages
250  if (str == "AggregateAttributeUpdate")
251  {
253  }
254  if (str == "AggregateAttributeUpdateMultiple")
255  {
257  }
258 
259  // Contact Report Messages
260  if (str == "ContactReportAttributeUpdate")
261  {
263  }
264  if (str == "ContactReportAttributeUpdateMultiple")
265  {
267  }
268 
269  // Object Management
270  if (str == "ObjectDeleted")
271  {
273  }
274  if (str == "ObjectDeletedMultiple")
275  {
277  }
278  if (str == "ResetObjects")
279  {
281  }
282 
283  // Interaction Messages
284  if (str == "Interaction")
285  {
287  }
288  if (str == "InteractionMultiple")
289  {
291  }
292 
293  // Logging Messages
294  if (str == "LogRequest")
295  {
297  }
298  if (str == "LogResponse")
299  {
301  }
302 
303  // Connection Maintenance
304  if (str == "Ping")
305  {
306  return DtMessageKind::Ping;
307  }
308 
309  if (str == "ScenarioStatus")
310  {
312  }
313 
314  if (str == "ScenarioRolesStatus")
315  {
317  }
318 
319  if (str == "PlayerRolesStatus")
320  {
322  }
323 
324  if (str == "SubscribeMessageTypes")
325  {
327  }
328 
329  // Legacy backward compatibility with old numeric string values
330  if (str == "1")
331  {
333  }
334  if (str == "2")
335  {
337  }
338  if (str == "3")
339  {
340  return DtMessageKind::Connect;
341  }
342  if (str == "4")
343  {
345  }
346  if (str == "5")
347  {
349  }
350  if (str == "11")
351  {
353  }
354  if (str == "12")
355  {
357  }
358  if (str == "17")
359  {
361  }
362  if (str == "18")
363  {
365  }
366 
367  // Legacy compatibility: "AttributeUpdate" -> EntityAttributeUpdate
368  if (str == "AttributeUpdate")
369  {
371  }
372 
373  return DtMessageKind::Unknown;
374 }
375 
378 {
379  std::string timestamp; // ISO 8601 format
380  std::string message;
381 
383  {
384  Json::Value obj;
385  obj["Timestamp"] = timestamp;
386  obj["Message"] = message;
387  return obj;
388  }
389 };
390 
391 // ============================================================================
392 // Administrative Messages (Section 5.3)
393 // ============================================================================
394 
398 {
399  std::string clientName; // Required
400  std::string wsUserName; // Optional, from "userName" field (WebSocket-level identity only)
401  std::string hostname; // Optional, from "hostname" field
402  double webLVCVersion = 1.0; // Optional, defaults to server default
403  double updateFrequencyHz = -1.0; // Optional, -1 = use server default
404  bool onChangeOnly = false; // Optional, default false
405  bool hasUpdateFrequency = false; // True if UpdateFrequency was specified
406  std::vector<Json::Value> messages; // Optional embedded messages
407 
409  {
410  DtConnectMessage msg;
411  msg.clientName = json.get("ClientName", "").asString();
412  msg.wsUserName = json.get("userName", "").asString();
413  msg.hostname = json.get("hostname", "").asString();
414  msg.webLVCVersion = json.get("WebLVCVersion", 1.0).asDouble();
415 
416  if (json.isMember("UpdateFrequency"))
417  {
418  msg.hasUpdateFrequency = true;
419  msg.updateFrequencyHz = json["UpdateFrequency"].asDouble();
420  if (msg.updateFrequencyHz < 0.0)
421  {
422  msg.updateFrequencyHz = 0.0;
423  }
424  if (msg.updateFrequencyHz > 60.0)
425  {
426  msg.updateFrequencyHz = 60.0;
427  }
428  }
429  if (json.isMember("OnChangeOnly"))
430  {
431  msg.onChangeOnly = json["OnChangeOnly"].asBool();
432  }
433 
434  if (json.isMember("Messages") && json["Messages"].isArray())
435  {
436  for (const auto& m : json["Messages"])
437  {
438  msg.messages.push_back(m);
439  }
440  }
441  return msg;
442  }
443 
445  {
446  Json::Value obj;
447  obj["MessageKind"] = DtMessageKindToString(DtMessageKind::Connect);
448  obj["ClientName"] = clientName;
449  obj["WebLVCVersion"] = webLVCVersion;
450  if (hasUpdateFrequency)
451  {
452  obj["UpdateFrequency"] = updateFrequencyHz;
453  }
454  if (onChangeOnly)
455  {
456  obj["OnChangeOnly"] = true;
457  }
458  if (!messages.empty())
459  {
460  Json::Value arr(Json::arrayValue);
461  for (const auto& m : messages)
462  {
463  arr.append(m);
464  }
465  obj["Messages"] = arr;
466  }
467  return obj;
468  }
469 };
470 
474 {
475  bool connected = false;
476  double webLVCVersion = 1.0;
477  std::vector<DtLogEntry> errors; // Present if connection rejected
478 
480  {
481  Json::Value obj;
483  obj["Connected"] = connected;
484  if (connected)
485  {
486  obj["WebLVCVersion"] = webLVCVersion;
487  }
488  if (!errors.empty())
489  {
490  Json::Value errArr(Json::arrayValue);
491  for (const auto& e : errors)
492  {
493  errArr.append(e.toJson());
494  }
495  obj["Errors"] = errArr;
496  }
497  return obj;
498  }
499 };
500 
504 {
505  int timestampFormat = -1; // -1 = not set, 0=hex ASCII, 1=seconds double, 2=milliseconds int
506 
508  {
509  DtConfigureMessage msg;
510  if (json.isMember("TimestampFormat"))
511  {
512  msg.timestampFormat = json["TimestampFormat"].asInt();
513  }
514  return msg;
515  }
516 
518  {
519  Json::Value obj;
520  obj["MessageKind"] = DtMessageKindToString(DtMessageKind::Configure);
521  if (timestampFormat >= 0)
522  {
523  obj["TimestampFormat"] = timestampFormat;
524  }
525  return obj;
526  }
527 };
528 
532 {
533  int timestampFormatResult = -1; // -1 = not requested, 0/1 = rejected/accepted as bool
534 
536  {
537  Json::Value obj;
539  if (timestampFormatResult >= 0)
540  {
541  obj["TimestampFormat"] = (timestampFormatResult == 1);
542  }
543  return obj;
544  }
545 };
546 
547 // ============================================================================
548 // Object Messages (Section 5.4)
549 // ============================================================================
550 
554 {
555  std::string uuid; // Required - UUID unique identifier
556  std::string objectType; // Required for initial update (HLAobjectRoot.BaseEntity.PhysicalEntity)
557  Json::Value attributes; // Entity attribute values (DtEntityIdentifier, DtEntityType, WorldLocation, etc.)
558  std::string timestamp; // Optional - ISO 8601 timestamp
559  bool isInitial = false; // Internal flag to track if this is first update
560 
562  {
563  Json::Value obj;
565  obj["UUID"] = uuid;
566  if (isInitial || !objectType.empty())
567  {
568  obj["ObjectType"] = objectType;
569  }
570 
571  // Flatten attributes directly into the message (per specification)
572  if (attributes.isObject())
573  {
574  for (const auto& key : attributes.getMemberNames())
575  {
576  obj[key] = attributes[key];
577  }
578  }
579 
580  if (!timestamp.empty())
581  {
582  obj["Timestamp"] = timestamp;
583  }
584  return obj;
585  }
586 
588  {
590  msg.uuid = json.get("UUID", "").asString();
591  msg.objectType = json.get("ObjectType", "").asString();
592  msg.timestamp = json.get("Timestamp", "").asString();
593 
594  // Extract all attributes (everything except known message fields)
595  msg.attributes = Json::Value(Json::objectValue);
596  for (const auto& key : json.getMemberNames())
597  {
598  if (key != "MessageKind" && key != "UUID" && key != "ObjectType" && key != "Timestamp")
599  {
600  msg.attributes[key] = json[key];
601  }
602  }
603  return msg;
604  }
605 };
606 
610 {
611  std::string uuid; // Required - UUID of object being removed
612  std::string timestamp; // Optional - ISO 8601 timestamp
613 
615  {
616  Json::Value obj;
618  obj["UUID"] = uuid;
619  if (!timestamp.empty())
620  {
621  obj["Timestamp"] = timestamp;
622  }
623  return obj;
624  }
625 };
626 
630 {
631  std::vector<std::string> uuids; // Required - UUIDs of objects being removed
632  std::string timestamp; // Optional - ISO 8601 timestamp
633 
635  {
636  Json::Value obj;
638  Json::Value arr(Json::arrayValue);
639  for (const auto& id : uuids)
640  {
641  arr.append(id);
642  }
643  obj["UUIDs"] = arr;
644  if (!timestamp.empty())
645  {
646  obj["Timestamp"] = timestamp;
647  }
648  return obj;
649  }
650 };
651 
652 // ============================================================================
653 // Interaction Messages (Section 5.5)
654 // ============================================================================
655 
659 {
660  std::string interactionType; // Required
661  Json::Value interaction; // Required - parameter values
662  std::string timestamp; // Optional
663 
665  {
666  Json::Value obj;
668  obj["InteractionType"] = interactionType;
669  obj["Interaction"] = interaction;
670  if (!timestamp.empty())
671  {
672  obj["Timestamp"] = timestamp;
673  }
674  return obj;
675  }
676 
678  {
680  msg.interactionType = json.get("InteractionType", "").asString();
681  msg.interaction = json.get("Interaction", Json::Value());
682  msg.timestamp = json.get("Timestamp", "").asString();
683  return msg;
684  }
685 };
686 
687 // ============================================================================
688 // Log Messages (Section 5.7)
689 // ============================================================================
690 
694 {
695  int length = -1; // -1 = return all, otherwise max number to return
696 
698  {
700  if (json.isMember("Length"))
701  {
702  msg.length = json["Length"].asInt();
703  }
704  return msg;
705  }
706 };
707 
711 {
712  std::vector<DtLogEntry> log;
713 
715  {
716  Json::Value obj;
718  Json::Value logArr(Json::arrayValue);
719  for (const auto& entry : log)
720  {
721  logArr.append(entry.toJson());
722  }
723  obj["Log"] = logArr;
724  return obj;
725  }
726 };
727 
728 // ============================================================================
729 // Entity Batch Messages
730 // ============================================================================
731 
735 {
736  std::vector<DtEntityAttributeUpdateMessage> updates; // Array of entity updates
737  std::string timestamp; // Optional - applies to all updates unless overridden
738 
740  {
741  Json::Value obj;
743 
744  Json::Value updatesArr(Json::arrayValue);
745  for (const auto& update : updates)
746  {
747  // Build individual update record (without DtMessageKind)
748  Json::Value updateObj;
749  updateObj["UUID"] = update.uuid;
750  if (update.isInitial || !update.objectType.empty())
751  {
752  updateObj["ObjectType"] = update.objectType;
753  }
754  // Flatten attributes
755  if (update.attributes.isObject())
756  {
757  for (const auto& key : update.attributes.getMemberNames())
758  {
759  updateObj[key] = update.attributes[key];
760  }
761  }
762  if (!update.timestamp.empty())
763  {
764  updateObj["Timestamp"] = update.timestamp;
765  }
766  updatesArr.append(updateObj);
767  }
768  obj["Updates"] = updatesArr;
769 
770  if (!timestamp.empty())
771  {
772  obj["Timestamp"] = timestamp;
773  }
774  return obj;
775  }
776 
778  {
780  msg.timestamp = json.get("Timestamp", "").asString();
781 
782  if (json.isMember("Updates") && json["Updates"].isArray())
783  {
784  for (const auto& updateJson : json["Updates"])
785  {
787  msg.updates.push_back(update);
788  }
789  }
790  return msg;
791  }
792 };
793 
794 // ============================================================================
795 // Aggregate Messages
796 // ============================================================================
797 
802 {
803  std::vector<DtEntityAttributeUpdateMessage> updates;
804  std::string timestamp;
805 
807  {
808  Json::Value obj;
810 
811  Json::Value updatesArr(Json::arrayValue);
812  for (const auto& update : updates)
813  {
814  Json::Value updateObj;
815  updateObj["UUID"] = update.uuid;
816  if (!update.objectType.empty())
817  {
818  updateObj["ObjectType"] = update.objectType;
819  }
820  if (update.attributes.isObject())
821  {
822  for (const auto& key : update.attributes.getMemberNames())
823  {
824  updateObj[key] = update.attributes[key];
825  }
826  }
827  if (!update.timestamp.empty())
828  {
829  updateObj["Timestamp"] = update.timestamp;
830  }
831  updatesArr.append(updateObj);
832  }
833  obj["Updates"] = updatesArr;
834 
835  if (!timestamp.empty())
836  {
837  obj["Timestamp"] = timestamp;
838  }
839  return obj;
840  }
841 };
842 
847 {
848  std::vector<DtEntityAttributeUpdateMessage> updates;
849  std::string timestamp;
850 
852  {
853  Json::Value obj;
855 
856  Json::Value updatesArr(Json::arrayValue);
857  for (const auto& update : updates)
858  {
859  Json::Value updateObj;
860  updateObj["UUID"] = update.uuid;
861  if (update.isInitial || !update.objectType.empty())
862  {
863  updateObj["ObjectType"] = update.objectType;
864  }
865  if (update.attributes.isObject())
866  {
867  for (const auto& key : update.attributes.getMemberNames())
868  {
869  updateObj[key] = update.attributes[key];
870  }
871  }
872  if (!update.timestamp.empty())
873  {
874  updateObj["Timestamp"] = update.timestamp;
875  }
876  updatesArr.append(updateObj);
877  }
878  obj["Updates"] = updatesArr;
879 
880  if (!timestamp.empty())
881  {
882  obj["Timestamp"] = timestamp;
883  }
884  return obj;
885  }
886 };
887 
888 // ============================================================================
889 // Tactical Graphic Messages
890 // ============================================================================
891 
894 {
895  std::string type; // "Point", "LineString", "Polygon", "Circle"
896  Json::Value coordinates; // Array of coordinates
897  double radius = 0.0; // For Circle type only
898 
900  {
901  Json::Value obj;
902  obj["type"] = type;
903  obj["coordinates"] = coordinates;
904  if (type == "Circle" && radius > 0.0)
905  {
906  obj["radius"] = radius;
907  }
908  return obj;
909  }
910 };
911 
912 
913 // ============================================================================
914 // Connection Maintenance Messages
915 // ============================================================================
916 
920 {
921  std::string timestamp; // Optional - ISO 8601 timestamp
922 
924  {
925  Json::Value obj;
926  obj["MessageKind"] = DtMessageKindToString(DtMessageKind::Ping);
927  if (!timestamp.empty())
928  {
929  obj["Timestamp"] = timestamp;
930  }
931  return obj;
932  }
933 };
934 
935 // ============================================================================
936 // Stub functions for DtVrfManager data retrieval (to be implemented)
937 // ============================================================================
938 
941 inline DtEntityAttributeUpdateMessage getEntityState(const std::string& uuid)
942 {
944  msg.uuid = uuid;
945  // TODO: Fill in entity attributes from DtVrfManager
946  return msg;
947 }
948 
951 inline std::vector<DtEntityAttributeUpdateMessage> getAllEntityStates()
952 {
953  std::vector<DtEntityAttributeUpdateMessage> entities;
954  // TODO: Fill in entity attributes from DtVrfManager
955  return entities;
956 }
957 
958 } // namespace DtWeblvc
std::vector< DtEntityAttributeUpdateMessage > updates
Definition: webLVCMessage.h:848
bool onChangeOnly
Definition: webLVCMessage.h:404
Json::Value toJson() const
Definition: webLVCMessage.h:664
std::string wsUserName
Definition: webLVCMessage.h:400
std::string uuid
Definition: webLVCMessage.h:555
Json::Value toJson() const
Definition: webLVCMessage.h:714
ContactReportAttributeUpdate / ContactReportAttributeUpdateMultiple / ObjectDeleted for contact repor...
std::string interactionType
Definition: webLVCMessage.h:660
Configure Message - Section 5.3.3 Set configuration properties for connected client.
Definition: webLVCMessage.h:503
Json::Value toJson() const
Definition: webLVCMessage.h:739
Json::Value interaction
Definition: webLVCMessage.h:661
std::vector< DtEntityAttributeUpdateMessage > getAllEntityStates()
Get all entity states from DtVrfManager TODO: Implement to retrieve all entity data for batch updates...
Definition: webLVCMessage.h:951
DtMessageKind
WebLVC DtMessageKind enum per message specification All WebLVC Messages shall include the DtMessageKi...
Definition: webLVCMessage.h:17
static DtEntityAttributeUpdateMultipleMessage fromJson(const Json::Value &json)
Definition: webLVCMessage.h:777
ConnectResponse Message - Section 5.3.2 Sent by server in response to Connect.
Definition: webLVCMessage.h:473
std::vector< DtEntityAttributeUpdateMessage > updates
Definition: webLVCMessage.h:736
std::vector< Json::Value > messages
Definition: webLVCMessage.h:406
EntityAttributeUpdate Message - per message specification Conveys values of entity attributes (positi...
Definition: webLVCMessage.h:553
Json::Value toJson() const
Definition: webLVCMessage.h:899
std::string timestamp
Definition: webLVCMessage.h:632
DtMessageCategory DtParseMessageCategory(const std::string &str)
Parse a wire string to DtMessageCategory.
Definition: webLVCMessage.h:108
Json::Value toJson() const
Definition: webLVCMessage.h:851
AggregateAttributeUpdateMultiple Message — batch update for multiple aggregate entities in a single m...
Definition: webLVCMessage.h:801
std::string message
Definition: webLVCMessage.h:380
AggregateAttributeUpdate / AggregateAttributeUpdateMultiple / ObjectDeleted for aggregates.
DtMessageCategory
Logical categories of server-to-client push messages a client may subscribe to. A client that does no...
Definition: webLVCMessage.h:78
std::string clientName
Definition: webLVCMessage.h:399
std::string DtMessageCategoryToString(DtMessageCategory cat)
Convert DtMessageCategory enum to its wire string.
Definition: webLVCMessage.h:91
Json::Value toJson() const
Definition: webLVCMessage.h:923
Json::Value toJson() const
Definition: webLVCMessage.h:517
Json::Value toJson() const
Definition: webLVCMessage.h:614
std::vector< DtLogEntry > errors
Definition: webLVCMessage.h:477
int length
Definition: webLVCMessage.h:695
std::vector< DtEntityAttributeUpdateMessage > updates
Definition: webLVCMessage.h:803
LogResponse Message - Section 5.7.2 Response containing log entries.
Definition: webLVCMessage.h:710
Json::Value coordinates
Definition: webLVCMessage.h:896
Json::Value toJson() const
Definition: webLVCMessage.h:806
std::string timestamp
Definition: webLVCMessage.h:612
ObjectDeleted Message - Section 5.4.3 Notification that an object no longer exists or is out of scope...
Definition: webLVCMessage.h:609
double webLVCVersion
Definition: webLVCMessage.h:476
Json::Value toJson() const
Definition: webLVCMessage.h:535
int timestampFormat
Definition: webLVCMessage.h:505
Json::Value toJson() const
Definition: webLVCMessage.h:561
std::vector< DtLogEntry > log
Definition: webLVCMessage.h:712
DtEntityAttributeUpdateMessage getEntityState(const std::string &uuid)
Get entity state from DtVrfManager TODO: Implement to retrieve actual entity data.
Definition: webLVCMessage.h:941
std::string timestamp
Definition: webLVCMessage.h:737
static DtConfigureMessage fromJson(const Json::Value &json)
Definition: webLVCMessage.h:507
EntityAttributeUpdate / EntityAttributeUpdateMultiple / ObjectDeleted for entities.
std::string timestamp
Definition: webLVCMessage.h:379
ConfigureResponse Message - Section 5.3.4 Response indicating accepted/rejected configuration propert...
Definition: webLVCMessage.h:531
bool isInitial
Definition: webLVCMessage.h:559
IMGUI_API void Value(const char *prefix, bool b)
ContactReportAttributeUpdateMultiple Message — batch update for multiple contact reports in a single ...
Definition: webLVCMessage.h:846
std::string hostname
Definition: webLVCMessage.h:401
bool connected
Definition: webLVCMessage.h:475
Log entry per Section 5.7.2.
Definition: webLVCMessage.h:377
Json::Value attributes
Definition: webLVCMessage.h:557
std::string DtMessageKindToString(DtMessageKind kind)
Convert DtMessageKind enum to string for JSON DtSerialization Uses human-readable string values per m...
Definition: webLVCMessage.h:122
EntityAttributeUpdateMultiple Message - per message specification Batch update for multiple entities ...
Definition: webLVCMessage.h:734
static DtLogRequestMessage fromJson(const Json::Value &json)
Definition: webLVCMessage.h:697
Json::Value toJson() const
Definition: webLVCMessage.h:479
Geometry record for tactical graphics.
Definition: webLVCMessage.h:893
double radius
Definition: webLVCMessage.h:897
std::string timestamp
Definition: webLVCMessage.h:558
std::string timestamp
Definition: webLVCMessage.h:662
ScenarioRolesStatus / PlayerRolesStatus.
std::string type
Definition: webLVCMessage.h:895
Ping Message - keep-alive message Sent by server during idle periods (40-60 seconds) ...
Definition: webLVCMessage.h:919
LogRequest Message - Section 5.7.1 Request log entries from server.
Definition: webLVCMessage.h:693
Json::Value toJson() const
Definition: webLVCMessage.h:634
static DtInteractionMessage fromJson(const Json::Value &json)
Definition: webLVCMessage.h:677
std::string uuid
Definition: webLVCMessage.h:611
Interaction Message - Section 5.5.1 Conveys parameters of a simulation event.
Definition: webLVCMessage.h:658
Connect Message - Section 5.3.1 Sent by client to initiate connection handshake.
Definition: webLVCMessage.h:397
Json::Value toJson() const
Definition: webLVCMessage.h:444
static DtConnectMessage fromJson(const Json::Value &json)
Definition: webLVCMessage.h:408
std::string timestamp
Definition: webLVCMessage.h:804
std::vector< std::string > uuids
Definition: webLVCMessage.h:631
Json::Value toJson() const
Definition: webLVCMessage.h:382
TacticalGraphicAttributeUpdate / TacticalGraphicAttributeUpdateMultiple / ObjectDeleted for TGs...
std::string objectType
Definition: webLVCMessage.h:556
int timestampFormatResult
Definition: webLVCMessage.h:533
static DtEntityAttributeUpdateMessage fromJson(const Json::Value &json)
Definition: webLVCMessage.h:587
std::string timestamp
Definition: webLVCMessage.h:921
double webLVCVersion
Definition: webLVCMessage.h:402
ObjectDeletedMultiple Message Batches deletion notifications for multiple objects into a single messa...
Definition: webLVCMessage.h:629
std::string timestamp
Definition: webLVCMessage.h:849
Interaction / InteractionMultiple.
DtMessageKind DtParseMessageKind(const std::string &str)
Parse DtMessageKind from string Accepts human-readable string names per message specification.
Definition: webLVCMessage.h:207
bool hasUpdateFrequency
Definition: webLVCMessage.h:405
double updateFrequencyHz
Definition: webLVCMessage.h:403

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)