VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHla4ConnectionLogic.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvHla4Qt/vrvHla4Qt.h>
14 #include <string>
15 #include <memory>
16 #include <functional>
17 
18 namespace makVrv
19 {
20 
21  class DtHla4ConnectionInterface;
22  class DtHla4Driver;
23  class DtDriver;
24 
28  {
29  public:
30 
33 
35  virtual ~DtHla4ConnectionLogic();
36 
38  virtual void updateCurrentDriver();
39 
40  virtual std::string className() const;
41 
42  protected:
43 
44  DtHla4Driver* findCurrentDriver( const std::string& name );
45 
46  void on_currentConnectionChanged( const std::string& connectionName );
47  void on_exerciseNameChanged( const std::string& name );
48  void on_federateTypeChanged( const std::string& type );
49  void on_federateNameChanged( const std::string& name );
50  void on_localSettingsDesignatorChanged( const std::string& designator );
51  void on_fedFileNameChanged( const std::string& name );
52  void on_rprFomVersionChanged( double version );
53  void on_rprFomRevisionChanged( int revision );
54  void on_fomMapperFileNameChanged( const std::string& name );
55 
57  void on_fomMapperInitStringChanged( const std::string& str );
58 
59  void on_connect();
60  void on_disconnect();
61  void on_makeAutoConnect();
62 
63  void on_driverStarted( DtDriver& simCon );
64  void on_driverStopped( DtDriver& simCon );
65  void on_ddmChanged( bool enabled );
66  void on_useAdvisories( bool enabled );
67  void on_useAbsoluteTimeStamps( bool enabled );
68  void on_publishObserversChanged( bool value );
69  void on_autoDriverChanged( const std::string& con );
70  void on_viewControlChanged( bool onOff );
71  void on_overrideGlobalViewControlChanged(bool trueFalse);
72  void on_useTopoForFlatEarthVectorConversionChanged(bool onOff);
73  void on_siteIdChanged(int siteId);
74  void on_appNumberChanged(int appId);
75 
76  void on_addFomModule(const std::string&);
77  void on_removeFomModule(const std::string&);
78 
79  protected:
80 
83 
84  using MyHlaDriverDeleter = std::function<void(DtHla4Driver*)>;
85  using MyHlaDriverPtrType = std::unique_ptr<DtHla4Driver, MyHlaDriverDeleter>;
87  };
88 }
DtHla4ConnectionInterface & myHla4Interface
Definition: DtHla4ConnectionLogic.h:82
std::function< void(DtHla4Driver *)> MyHlaDriverDeleter
Definition: DtHla4ConnectionLogic.h:84
Logic for configuring the Hla4 Connection.
Definition: DtHla4ConnectionLogic.h:27
#define DT_DLL_VRVHLA4QT
Definition: vrvHla4Qt.h:19
Contains DLL export macros.
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:30
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
The Sim Driver for HLA 2025.
Definition: DtHla4Driver.h:23
Base class to provide boost signal/slot management.
MyHlaDriverPtrType myCurrentDriver
Definition: DtHla4ConnectionLogic.h:86
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
std::unique_ptr< DtHla4Driver, MyHlaDriverDeleter > MyHlaDriverPtrType
Definition: DtHla4ConnectionLogic.h:85
DtDe & myDe
Definition: DtHla4ConnectionLogic.h:81
Abstract interface used to a user interface.
Definition: DtHla4ConnectionInterface.h:18

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)