VR-Engage  2.3
Loading...
Searching...
No Matches
embeddedEntityOwnershipTransferHandler.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*******************************************************************************/
5
6//! \file embeddedEntityOwnershipTransferHandler.h
7//! \ingroup vreVrfmodel
8//! \brief Coordinates ownership transfer for deployed embedded entities.
9
10#pragma once
11
12#include "vreVrfmodel/export.h"
13
14#include <boost/signals2/connection.hpp>
15
16class DtLocalObjectManager;
17class DtSimulationServices;
18
19namespace makVrfEvents
20{
21class DtTransferResponseEvent;
22} // namespace makVrfEvents
23
24namespace makVre
25{
26//! \brief Requests deployed embedded entities at the host handoff destination.
27//!
28//! The handler reads deployed embedded-entity UUIDs from a host's published
29//! state and sends ownership requests to the destination supplied by the
30//! source-side handoff transaction.
32{
33public:
34 //! \brief Creates an uninstalled ownership-transfer handler.
36
37 //! \brief Disconnects the ownership-transfer callbacks.
39
43
44 //! \brief Connects to the ownership-transfer manager.
45 //!
46 //! Replaces any prior connection. The supplied objects are non-owning and
47 //! must outlive the handler's installed lifetime.
48 //!
49 //! \param localObjectManager Local object manager for this simulation.
50 //! \param simulationServices Simulation services used to validate acquisition.
51 void install(DtLocalObjectManager* localObjectManager, DtSimulationServices* simulationServices);
52
53 //! \brief Disconnects from the ownership-transfer manager.
54 void shutdown();
55
56private:
57 void handlePreDivest(makVrfEvents::DtTransferResponseEvent& transferResponse, bool& continueOn);
58
59 //! \brief Non-owning manager used to inspect parent and child state data.
60 DtLocalObjectManager* myLocalObjectManager = nullptr;
61
62 //! \brief Non-owning services used to validate local-object creation.
63 DtSimulationServices* mySimulationServices = nullptr;
64
65 //! \brief Connection that requests embedded entity ownership at the handoff destination.
66 boost::signals2::connection myPreDivestConnection;
67};
68} // namespace makVre
void handlePreDivest(makVrfEvents::DtTransferResponseEvent &transferResponse, bool &continueOn)
void install(DtLocalObjectManager *localObjectManager, DtSimulationServices *simulationServices)
Connects to the ownership-transfer manager.
boost::signals2::connection myPreDivestConnection
Connection that requests embedded entity ownership at the handoff destination.
Definition embeddedEntityOwnershipTransferHandler.h:66
DtVreEmbeddedEntityOwnershipTransferHandler()
Creates an uninstalled ownership-transfer handler.
~DtVreEmbeddedEntityOwnershipTransferHandler()
Disconnects the ownership-transfer callbacks.
void shutdown()
Disconnects from the ownership-transfer manager.
DtLocalObjectManager * myLocalObjectManager
Non-owning manager used to inspect parent and child state data.
Definition embeddedEntityOwnershipTransferHandler.h:60
DtSimulationServices * mySimulationServices
Non-owning services used to validate local-object creation.
Definition embeddedEntityOwnershipTransferHandler.h:63
DtVreEmbeddedEntityOwnershipTransferHandler & operator=(const DtVreEmbeddedEntityOwnershipTransferHandler &)=delete
DtVreEmbeddedEntityOwnershipTransferHandler(const DtVreEmbeddedEntityOwnershipTransferHandler &)=delete
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
!
Definition glsVreMessageUtil.h:50
Definition vreBackendConnector.h:43