![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /***************************************************************************** 00002 * Copyright (c) 2011 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 /***************************************************************************** 00006 * $RCSfile: DtHla13ConnectionLogic.h,v $ $Revision: 1.17 $ $State: Exp $ 00007 *****************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvHla13Qt/vrvHla13Qt.h> 00016 #include <boost/signals/trackable.hpp> 00017 #include <vrvUtil/DtSignalConnectionManager.h> 00018 #include <string> 00019 00020 class DtExerciseConnInitializer; 00021 00022 namespace makVrv 00023 { 00024 00025 class DtHla13ConnectionInterface; 00026 class DtHla13Driver; 00027 class DtDriver; 00028 00031 class DT_DLL_VRVHLA13QT DtHla13ConnectionLogic : protected DtSignalConnectionManager 00032 { 00033 public: 00034 00036 DtHla13ConnectionLogic( DtDe& de, DtHla13ConnectionInterface* hla13Interface ); 00037 00039 virtual ~DtHla13ConnectionLogic(); 00040 00042 virtual void updateCurrentDriver(); 00043 00044 protected: 00045 00046 virtual std::string className() const; 00047 00048 DtHla13Driver* findCurrentDriver( const std::string& name ); 00049 00050 void on_currentConnectionChanged( const std::string& connectionName ); 00051 void on_exerciseNameChanged( const std::string& name ); 00052 void on_federateTypeChanged( const std::string& name ); 00053 void on_fedFileNameChanged( const std::string& name ); 00054 void on_rprFomVersionChanged( double version ); 00055 void on_rprFomRevisionChanged( int revision ); 00056 void on_fomMapperFileNameChanged( const std::string& name ); 00057 00059 void on_fomMapperInitStringChanged( const std::string& str ); 00060 00061 void on_connect(); 00062 void on_disconnect(); 00063 void on_makeAutoConnect(); 00064 00065 void on_driverStarted( DtDriver& simCon ); 00066 void on_driverStopped( DtDriver& simCon ); 00067 void on_ddmChanged( bool enabled ); 00068 void on_useAdvisories( bool enabled ); 00069 void on_publishObserversChanged( bool value ); 00070 void on_autoDriverChanged( const std::string& con ); 00071 void on_viewControlChanged( bool onOff ); 00072 void on_siteIdChanged(int siteId); 00073 void on_appNumberChanged(int appId); 00074 protected: 00075 00076 DtDe& myDe; 00077 DtHla13ConnectionInterface& myHla13Interface; 00078 DtHla13Driver* myCurrentDriver; 00079 DtExerciseConnInitializer* myLocalInit; 00080 00081 }; 00082 00083 }