VR-Forces 4.0.4 Class Documentation
include/vrvHla1516Qt/DtHla1516ConnectionLogic.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 /*****************************************************************************
00006  * $RCSfile: DtHla1516ConnectionLogic.h,v $ $Revision: 1.15 $ $State: Exp $
00007  *****************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvHla1516Qt/vrvHla1516Qt.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 DtHla1516ConnectionInterface;
00026    class DtHla1516Driver;
00027    class DtDriver;
00028 
00031    class DT_DLL_VRVHLA1516QT DtHla1516ConnectionLogic : protected DtSignalConnectionManager
00032    {
00033    public:
00034 
00036       DtHla1516ConnectionLogic( DtDe& de, DtHla1516ConnectionInterface* hla1516Interface );
00037 
00039       virtual ~DtHla1516ConnectionLogic();
00040 
00042       virtual void updateCurrentDriver();
00043 
00044       virtual std::string className() const;
00045 
00046    protected:
00047 
00048       DtHla1516Driver* 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 
00075    protected:
00076 
00077       DtDe& myDe;
00078       DtHla1516ConnectionInterface& myHla1516Interface;
00079       DtHla1516Driver* myCurrentDriver;
00080       DtExerciseConnInitializer* myLocalInit;
00081 
00082    };
00083 
00084 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)