VR-Forces 4.7 Class Documentation
 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::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 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)