VR-Forces 4.1 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>
16 
18 
19 #include <vrvCore/DtSimEntry.h>
20 
21 #include <vector>
22 
23 namespace makVrv
24 {
25  class DtDe;
26  class DtSimObjectEntry;
27 }
28 
29 class DtVrfObjectMessage;
30 
31 namespace makVrf
32 {
35  {
36  public:
37 
38  typedef std::list<std::string> DtWeaponList;
39 
40  public:
42  virtual ~DtWeaponListRequestor();
43 
44  static DtWeaponListRequestor& instance(makVrv::DtDe& de);
45 
46  virtual DtWeaponList weaponSystemsForEntity(std::string entityName) const;
47 
48  virtual bool hasWeaponSystemsForEntity(std::string entityName) const;
49 
50  virtual void weaponSystems(std::vector<std::string> entities, std::list<std::string>& weaponSystems);
51 
52  virtual void updateWeaponSystems(std::string entityName);
53 
54  boost::signal<void (std::string)> signal_weaponListReceived;
55 
56  protected:
57 
58  virtual void slot_onSimDataRemoved(makVrv::DtSimObjectEntry&);
59 
60  virtual void processWeaponListResponse(const DtVrfObjectMessage* msg);
61 
63  std::map<std::string, DtWeaponList> myEntitiesTable;
64  };
65 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)