VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
weaponListRequestor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vrvUtil/signalslib.h>
15 #include <vrfGuiCore/vrfGuiCore.h>
17 
19 
20 #include <vrvCore/DtSimEntry.h>
21 
22 #include <vector>
23 
24 namespace makVrv
25 {
26  class DtDe;
27  class DtSimObjectEntry;
28 }
29 
30 class DtVrfObjectMessage;
31 
32 namespace makVrf
33 {
36  {
37  public:
38 
39 
40 
41  public:
43  virtual ~DtWeaponListRequestor();
44 
45  static DtWeaponListRequestor& instance(makVrv::DtDe& de);
46 
49  virtual DtWeaponList weaponSystemsForEntity(std::string entityName) const;
50 
52  virtual bool hasWeaponSystemsForEntity(std::string entityName) const;
53 
55  virtual void weaponSystems(std::vector<std::string> entities, DtWeaponList& weaponSystems);
56 
60  virtual void updateWeaponSystems(std::string entityName,bool getResources=false);
61 
65  virtual void clearEntityEntry(std::string entityName);
66 
67  boost::signal<void (std::string)> signal_weaponListReceived;
68 
69  protected:
70 
71  virtual void slot_onSimDataRemoved(makVrv::DtSimObjectEntry&);
72 
77  virtual void processWeaponListResponse(const DtVrfObjectMessage* msg);
78 
80  std::map<std::string, DtWeaponList> myEntitiesTable;
81  };
82 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)