VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacticalGraphicUpdateSender.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 <oatpp-websocket/WebSocket.hpp>
9 #include <json/json.h>
10 #include <vector>
11 #include <utility>
12 
13 #include "dataTypes.h"
14 #include "updateSenderHelpers.h"
15 #include "webLVCClientSession.h"
16 
18 
30 {
31 public:
35  void sendInitialState(
36  const oatpp::websocket::WebSocket& conn, DtWebLvcClientSession& session, DtTacticalGraphicProcessor& processor);
37 
43  const oatpp::websocket::WebSocket& conn, DtWebLvcClientSession& session, DtTacticalGraphicProcessor& processor);
44 
45 private:
49  void sendObjectsDeleted(
50  const oatpp::websocket::WebSocket& conn, DtWebLvcClientSession& session,
51  const std::vector<std::string>& objectNames);
52 
58 
61 
67  const DtWebLvcClientSession& session);
68 };
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
DtTacticalGraphicUpdateSender - Encapsulates all tactical-graphic-specific WebLVC message building an...
Definition: tacticalGraphicUpdateSender.h:29
Json::Value buildUpdateMultipleMessage(DtWebLvcClientSession &session, std::vector< DtChangedItem< DtDatasource::DtTacticalGraphicSnapshot >> &items)
Build a TacticalGraphicAttributeUpdateMultiple message from a list of snapshots. Updates session...
DtDatasource::DtTacticalGraphicSnapshot applyRoleModifications(const DtDatasource::DtTacticalGraphicSnapshot &snapshot, const DtWebLvcClientSession &session)
Return a copy of snapshot with role-based field modifications applied (e.g. availableCommands cleared...
IMGUI_API void Value(const char *prefix, bool b)
Definition: updateSenderHelpers.h:17
void sendPeriodicUpdates(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, DtTacticalGraphicProcessor &processor)
Query all tactical graphics from the processor, detect changes against the session cache...
bool matchesSubscription(const DtDatasource::DtTacticalGraphicSnapshot &snapshot, const DtWebLvcClientSession &session)
Return true if snapshot should be sent to this client.
void sendObjectsDeleted(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, const std::vector< std::string > &objectNames)
Send an ObjectDeletedMultiple message for a set of tactical graphics that have disappeared. Clears each object&#39;s cache entry and stats. Caller must NOT hold session.mutex.
DtTacticalGraphicProcessor - Lightweight per-client tactical graphic processor.
Definition: tacticalGraphicProcessor.h:27
void sendInitialState(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, DtTacticalGraphicProcessor &processor)
Send initial state of all tactical graphics to a newly connected client. Builds and sends a single Ta...
WebLVC Client Session - Tracks state for each connected client per SISO-STD-017-2022 Section 5...
Definition: webLVCClientSession.h:28

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)