VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfResourceRequestor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrfGuiCore/vrfGuiCore.h>
13 #include <vrfutil/simResource.h>
15 #include <vrvCore/DtUniqueID.h>
16 
17 #include <vector>
18 #include <set>
19 
20 class DtSimResource;
21 
22 namespace makVrv
23 {
24  ;
25  class DtDe;
26 }
27 
28 namespace makVrfEvents
29 {
30  class DtResourceResponseEvent;
31 }
32 
33 namespace makVrf
34 {
37  {
38  public:
40  virtual ~DtVrfResourceRequestor();
41 
44  virtual void requestResourcesFor(const std::set<makVrv::DtUniqueID>& data, bool entitiesOnly = true);
45 
48  virtual void startMonitoring(const DtUUID&, int rate = -1);
49 
51  virtual void stopMonitoring(const DtUUID&);
52 
54  virtual void setUpdateRate(const DtUUID& entity, int);
55 
56  bool canSetResources() const
57  {
58  return myCanSetResources;
59  }
60 
61  protected:
62  virtual void slot_resourceResponse(const makVrfEvents::DtResourceResponseEvent&);
63 
64  protected:
66 
68  virtual void resourcesChanged() = 0;
69 
72  virtual void resourceCheckingDisabled() = 0;
73 
75  virtual void addResource(const DtSimResource&) = 0;
76 
78  virtual void resourceCheckComplete() = 0;
79 
81  virtual void resourceUpdated(const DtSimResource&) = 0;
82 
83  protected:
85  std::set<DtUUID> myResourceRequests;
87  typedef std::pair<DtEntityType, int> Key;
88  std::map<Key, DtSimResource> myResources;
90  };
91 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
makVrv::DtSignalConnectionManager myConnectionManager
Definition: vrfResourceRequestor.h:89
Definition: resourceResponseEvent.h:15
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
makVrv::DtDe & myDe
Definition: vrfResourceRequestor.h:84
std::set< DtUUID > myResourceRequests
Definition: vrfResourceRequestor.h:85
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Base class to provide boost signal/slot management.
The class that is the interface between the GUI and the back-end.
Definition: vrfResourceRequestor.h:36
DtSimResource is a class which will define a SISO Enumeration to use as a resource and the quantity o...
Definition: simResource.h:32
bool canSetResources() const
Definition: vrfResourceRequestor.h:56
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
std::map< Key, DtSimResource > myResources
Definition: vrfResourceRequestor.h:88
std::pair< DtEntityType, int > Key
Definition: vrfResourceRequestor.h:87
bool myCanSetResources
Definition: vrfResourceRequestor.h:86

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)