VR-Forces 4.2 Class Documentation
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 
18 #include <vrvUtil/DtVirtualBaseClass.h>
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 {
35  class DT_DLL_VRFGUICORE DtWeaponListRequestor : public makVrv::DtVirtualBaseClass
36  {
37  public:
38 
39 
40 
41  public:
42  DtWeaponListRequestor(makVrv::DtDe&);
43  virtual ~DtWeaponListRequestor();
44 
45  static DtWeaponListRequestor& instance(makVrv::DtDe& de);
46 
47  virtual DtWeaponList weaponSystemsForEntity(std::string entityName) const;
48 
49  virtual bool hasWeaponSystemsForEntity(std::string entityName) const;
50 
51  virtual void weaponSystems(std::vector<std::string> entities, DtWeaponList& weaponSystems);
52 
53  virtual void updateWeaponSystems(std::string entityName,bool getResources=false);
54 
55  boost::signal<void (std::string)> signal_weaponListReceived;
56 
57  protected:
58 
59  virtual void slot_onSimDataRemoved(makVrv::DtSimObjectEntry&);
60 
61  virtual void processWeaponListResponse(const DtVrfObjectMessage* msg);
62 
63  makVrv::DtDe& myDe;
64  std::map<std::string, DtWeaponList> myEntitiesTable;
65  };
66 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)