VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfFormationRequestor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
17 #include <vrfutil/rwUUID.h>
18 
21 
22 #include <vector>
23 
24 namespace makVrv
25 {
26  ;
27  class DtDe;
28  class DtSimObjectEntry;
29 }
30 
31 class DtVrfObjectMessage;
32 
33 namespace makVrf
34 {
37  {
38  public:
40  virtual ~DtVrfFormationRequestor() override;
41 
43  static DtVrfFormationRequestor& instance(makVrv::DtDe& de);
44 
45  virtual void updateAvailableFormations(makVrv::DtUniqueID);
46  virtual void updateAvailableFormations(const DtUUID&);
47 
48  std::vector<std::string> formationsFor(makVrv::DtUniqueID) const;
49  std::vector<std::string> formationsFor(const DtUUID&) const;
50 
51  boost::signals2::signal<void (const DtUUID&)> signal_formationsReceived;
52 
53  virtual bool hasFormationsFor(makVrv::DtUniqueID) const;
54  virtual bool hasFormationsFor(const DtUUID&) const;
55 
56  protected:
57 
58  virtual void processAvailableFormations(const DtVrfObjectMessage* msg);
59 
60  virtual void slot_onSimDataRemoved(DtSimObjectReference);
61 
62  protected:
64  std::map<DtUUID, std::vector<std::string> > myFormationTable;
66  };
67 }
UUID is a unique ID wrapper class.
Definition: uuid.h:59
makVrv::DtDe & myDe
Definition: vrfFormationRequestor.h:63
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
boost::signals2::signal< void(const DtUUID &)> signal_formationsReceived
Definition: vrfFormationRequestor.h:51
Contains the DtUUID class declaration.
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::map< DtUUID, std::vector< std::string > > myFormationTable
Definition: vrfFormationRequestor.h:64
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
makVrv::DtSignalConnectionManager myConnections
Definition: vrfFormationRequestor.h:65
Base class to provide boost signal/slot management.
The class that is the interface between the GUI and the back-end.
Definition: vrfFormationRequestor.h:36
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)