VR-Engage  2.2
Loading...
Searching...
No Matches
vreResourceMonitor.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vreResourceMonitor.h
7//! \ingroup vreVrfmodel
8//! \brief Enhanced resource monitor with fixed subscription handling
9//!
10//! This file defines the DtVreResourceMonitor class which extends the base
11//! resource monitor to fix issues with subscription removal functionality.
12//! It ensures proper handling of resource monitoring requests in VR-Engage.
13
14// #pragma once
15
16// #include "vreVrfmodel/export.h"
17// #include <vrfobjcore/resourceMonitor.h>
18
19// namespace makVre
20// {
21//! \brief Enhanced resource monitor with fixed subscription handling
22//!
23//! DtVreResourceMonitor extends the base resource monitor to fix a bug
24//! in the VR-Forces implementation related to removing subscriptions.
25//! This class ensures proper subscription management for monitored resources
26//! by correctly handling unsubscribe requests.
27// class VREVRFMODEL_DLL DtVreResourceMonitor : public DtResourceMonitor
28// {
29// public:
30//! \brief Constructor
31//! \param simManager The simulation services manager
32//! \param mgr The local object manager
33//!
34//! Creates a new resource monitor with the specified parameters.
35// DtVreResourceMonitor(DtSimulationServices * simManager, DtLocalObjectManager* mgr);
36
37//! \brief Virtual destructor
38//!
39//! Cleans up resources used by the resource monitor component.
40// virtual ~DtVreResourceMonitor();
41
42// public:
43//! \brief Processes resource monitoring request messages
44//! \param msg The simulation interface message to process
45//!
46//! Overridden to fix incorrect unsubscribe behavior in the base class.
47//! Properly handles resource monitoring requests including subscription removal.
48// virtual void processResourceMonitorRequest(DtSimInterfaceMessage* msg);
49
50//! \brief Factory method to create a new instance of this component
51//! \param simManager The simulation services manager
52//! \param localObjectManager The local object manager
53//! \return Pointer to the newly created resource monitor
54//!
55//! Static factory method used to instantiate new instances of this component type.
56// static DtResourceMonitor* create(DtSimulationServices* simManager, DtLocalObjectManager*);
57// };
58
59// }