VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
embeddedEntitiesListRequestor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
10 
11 #pragma once
12 
13 #include "vrfGuiCore/vrfGuiCore.h"
14 
16 
18 #include "vrvUtil/signalslib.h"
19 
20 #include <vrvCore/DtUniqueID.h>
21 
22 namespace makVrv{
23  class DtDe;
24  class DtSimObjectEntry;
25 }
26 
27 class DtSimMessage;
28 
29 namespace makVrf{
30 
35  public:
37 
38  static DtEmbeddedEntitiesListRequestor& instance(makVrv::DtDe& de);
39 
41  virtual bool hasCachedInfoFor(DtObjectType objType);
42 
45  virtual void requestInfoCacheUpdateFor(DtObjectType objType);
46 
50  virtual const std::vector<DtEmbeddedEntity> cachedEmbeddedEntitiesFor(DtObjectType objType) const;
51  virtual const std::vector<DtSetMessageType> cachedAvailableSetsFor(DtObjectType objType) const;
52  virtual const std::vector<DtSimTaskMessageType> cachedAvailableTasksFor(DtObjectType objType) const;
54 
57  virtual void resetCache();
58 
61  boost::signals2::signal<void (const DtObjectType&)> signal_InfoCacheUpdated;
62 
63  protected:
65 
67  virtual void processCacheInfoResponse(const DtSimMessage* msg);
68 
69  protected:
71 
72  std::map<DtObjectType, std::vector<DtEmbeddedEntity> > myEmbeddedEntitiesCache;
73  std::map<DtObjectType, std::vector<DtSetMessageType> > myAvailableSetsCache;
74  std::map<DtObjectType, std::vector<DtSimTaskMessageType> > myAvailableTasksCache;
75  std::set<DtObjectType> myCurrentRequests;
76  };
77 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Singleton class that manages communication to the back end for retrieval of information pertaining to...
Definition: embeddedEntitiesListRequestor.h:34
std::map< DtObjectType, std::vector< DtEmbeddedEntity > > myEmbeddedEntitiesCache
Definition: embeddedEntitiesListRequestor.h:72
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
Definition: objectType.h:27
Contains makVrv::DtVirtualBaseClass class.
File: simMsg.h.
Definition: simMessage.h:35
std::map< DtObjectType, std::vector< DtSetMessageType > > myAvailableSetsCache
Definition: embeddedEntitiesListRequestor.h:73
std::map< DtObjectType, std::vector< DtSimTaskMessageType > > myAvailableTasksCache
Definition: embeddedEntitiesListRequestor.h:74
boost::signals2::signal< void(const DtObjectType &)> signal_InfoCacheUpdated
Signals when information on the noted type has been added to the cache based on a received DtIfEmbedd...
Definition: embeddedEntitiesListRequestor.h:61
makVrv::DtDe & myDe
Definition: embeddedEntitiesListRequestor.h:70
Contains makVrv::DtUniqueID type.
Contains the DtIfEmbeddedEntityInfoCacheResponse class and DtEmbeddedEntity struct.
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:70
std::set< DtObjectType > myCurrentRequests
Definition: embeddedEntitiesListRequestor.h:75

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)