VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
remoteControlWeaponListRequestor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 
15 #include <vrfutil/rwUUID.h>
16 #include <vrfutil/vrfSingleton.h>
17 
18 #include <vector>
19 
20 #include <boost/signals2.hpp>
21 
22 class DtVrfObjectMessage;
23 class DtScenarioManager;
24 class DtAdminMessage;
25 
28 {
29  REGISTER_SINGLETON("DtRemoteControlWeaponListRequestor")
30 
31 public:
33  virtual ~DtRemoteControlWeaponListRequestor() override;
34 
37  virtual DtWeaponList weaponSystemsForEntity(const DtUUID&) const;
38 
40  virtual bool hasWeaponSystemsForEntity(const DtUUID&) const;
41 
43  virtual void weaponSystems(std::vector<DtUUID> entities, DtWeaponList& weaponSystems);
44 
48  virtual void updateWeaponSystems(const DtUUID&, bool getResources=false);
49 
53  virtual void clearEntityEntry(const DtUUID&);
54 
55  boost::signals2::signal<void (const DtUUID&)> signal_weaponListReceived;
56 
57 public:
59 
60 protected:
61  virtual void sendMessage(const DtAdminMessage& msg);
62 
67  static void weaponListResponseCallback(const DtVrfObjectMessage* msg, void* usr);
68  virtual void processWeaponListResponse(const DtVrfObjectMessage* msg);
69 
70 protected:
71  typedef std::map<DtUUID, DtWeaponList> WeaponsListTable;
72 
75 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
The class that is the interface between the remote controller and the back-end.
Definition: remoteControlWeaponListRequestor.h:27
Definition: scenarioManager.h:40
#define DT_DLL_vrfcontrol
This file is used to determine how to build.
Definition: vrfcontrolDefines.h:28
static DtScenarioManager & NullManager()
Definition: scenarioManager.h:72
std::map< DtUUID, DtWeaponList > WeaponsListTable
Definition: remoteControlWeaponListRequestor.h:71
Contains the DtUUID class declaration.
WeaponsListTable myEntitiesTable
Definition: remoteControlWeaponListRequestor.h:73
DtVrfSingleton is a class that all singletons that can be registered with the DtVrfSingletonRoot are ...
Definition: vrfSingleton.h:15
DtScenarioManager & myScenarioManager
Definition: remoteControlWeaponListRequestor.h:74
#define REGISTER_SINGLETON(cName)
Definition: vrfSingleton.h:30
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
std::list< WeaponSystem > DtWeaponList
Definition: weaponListResponseAdmin.h:53
boost::signals2::signal< void(const DtUUID &)> signal_weaponListReceived
Definition: remoteControlWeaponListRequestor.h:55
Definition: adminMessage.h:20

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)