![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtDisConnectionLogic.h,v $ $Revision: 1.15 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvDisQt/vrvDisQt.h> 00016 #include <vrvUtil/DtSignalConnectionManager.h> 00017 00018 #include <boost/signals/trackable.hpp> 00019 00020 #include <string> 00021 00022 class DtExerciseConnInitializer; 00023 00024 namespace makVrv 00025 { 00026 00027 class DtDisConnectionInterface; 00028 class DtDisDriver; 00029 class DtDriver; 00030 00033 class DT_DLL_VRVDISQT DtDisConnectionLogic : protected DtSignalConnectionManager 00034 { 00035 public: 00036 00038 DtDisConnectionLogic(DtDe& de,DtDisConnectionInterface* DisInterface); 00039 00041 virtual ~DtDisConnectionLogic(); 00042 00044 virtual void updateCurrentDriver(); 00045 00046 protected: 00047 virtual std::string className() const; 00048 00049 protected: 00050 00051 virtual void populateDeviceAddresses(); 00052 00053 DtDisDriver* findCurrentDriver(const std::string& name); 00054 00055 void on_currentConnectionChanged(const std::string& connectionName); 00056 00057 void on_portChanged(int value); 00058 void on_exerciseIdChanged(int value); 00059 void on_appNumberChanged(int value); 00060 void on_selfReflectChanged(bool val); 00061 void on_siteIdChanged(int value); 00062 void on_asynchIOChanged(bool value); 00063 void on_destinationAddressChanged(const std::string& str); 00064 void on_deviceAddressChanged(const std::string& str); 00065 void on_sendBufferSizeChanged(int value); 00066 void on_receiveBufferSizeChanged(int value); 00067 void on_multicastTTLChanged(int value); 00068 void on_multiCastAddressesChanged(const std::string& str); 00069 void on_disVersionChanged(int value); 00070 void on_publishObserversChanged(bool value); 00071 void on_viewControlChanged(bool onOff); 00072 00073 00074 void on_connect(); 00075 void on_disconnect(); 00076 void on_makeAutoConnect(); 00077 00078 void on_driverStarted(DtDriver& simCon); 00079 void on_driverStopped(DtDriver& simCon); 00080 void on_autoDriverChanged(const std::string& con); 00081 00082 protected: 00083 DtDe& myDe; 00084 DtDisConnectionInterface& myDisInterface; 00085 DtDisDriver* myCurrentDriver; 00086 DtExerciseConnInitializer* myLocalInit; 00087 }; 00088 }