VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
contactReportUpdateSender.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 
32 {
33 public:
38  void sendInitialState(
39  const oatpp::websocket::WebSocket& conn, DtWebLvcClientSession& session);
40 
48  const oatpp::websocket::WebSocket& conn, DtWebLvcClientSession& session);
49 
50 private:
55  DtWebLvcClientSession& session,
57 
61  void sendObjectsDeleted(
62  const oatpp::websocket::WebSocket& conn, DtWebLvcClientSession& session,
63  const std::vector<std::string>& uuids);
64 
68  bool hasPlayerRoles(const DtWebLvcClientSession& session,
69  std::vector<std::string>& outRoles) const;
70 };
void sendPeriodicUpdates(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session)
Query all contact reports visible to the session&#39;s roles, detect changes against the session cache...
Json::Value buildUpdateMultipleMessage(DtWebLvcClientSession &session, std::vector< DtChangedItem< DtDatasource::DtContactReportSnapshot >> &items)
Build a ContactReportAttributeUpdateMultiple message from a list of snapshots. Updates session...
IMGUI_API void Value(const char *prefix, bool b)
Definition: updateSenderHelpers.h:17
void sendObjectsDeleted(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session, const std::vector< std::string > &uuids)
Send an ObjectDeletedMultiple message for contact reports that have disappeared. Clears each report&#39;s...
bool hasPlayerRoles(const DtWebLvcClientSession &session, std::vector< std::string > &outRoles) const
If the session is a Player session with assigned roles, populate outRoles and return true...
DtContactReportUpdateSender - Encapsulates all contact-report-specific WebLVC message building and se...
Definition: contactReportUpdateSender.h:31
void sendInitialState(const oatpp::websocket::WebSocket &conn, DtWebLvcClientSession &session)
Send initial state of all contact reports visible to the session&#39;s roles. Builds and sends a single C...
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)