VR-Forces 4.0.4 Class Documentation
include/vrvHla1516eQt/DtHla1516eConnectionLogic.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 /*****************************************************************************
00006  * $RCSfile: DtHla1516eConnectionLogic.h,v $ $Revision: 1.15 $ $State: Exp $
00007  *****************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvHla1516eQt/vrvHla1516eQt.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 DtHla1516eConnectionInterface;
00026    class DtHla1516eDriver;
00027    class DtDriver;
00028 
00031    class DT_DLL_VRVHLA1516EQT DtHla1516eConnectionLogic : protected DtSignalConnectionManager
00032    {
00033    public:
00034 
00036       DtHla1516eConnectionLogic( DtDe& de, DtHla1516eConnectionInterface* hla1516eInterface );
00037 
00039       virtual ~DtHla1516eConnectionLogic();
00040 
00042       virtual void updateCurrentDriver();
00043 
00044       virtual std::string className() const;
00045 
00046    protected:
00047 
00048       DtHla1516eDriver* 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& type );
00053       void on_federateNameChanged( const std::string& name );
00054       void on_fedFileNameChanged( const std::string& name );
00055       void on_rprFomVersionChanged( double version );
00056       void on_rprFomRevisionChanged( int revision );
00057       void on_fomMapperFileNameChanged( const std::string& name );
00058 
00060       void on_fomMapperInitStringChanged( const std::string& str );
00061 
00062       void on_connect();
00063       void on_disconnect();
00064       void on_makeAutoConnect();
00065       
00066       void on_driverStarted( DtDriver& simCon );
00067       void on_driverStopped( DtDriver& simCon );
00068       void on_ddmChanged( bool enabled );
00069       void on_useAdvisories( bool enabled );
00070       void on_publishObserversChanged( bool value );
00071       void on_autoDriverChanged( const std::string& con );
00072       void on_viewControlChanged( bool onOff );
00073       void on_siteIdChanged(int siteId);
00074       void on_appNumberChanged(int appId);
00075 
00076       void on_addFomModule(const std::string&);
00077       void on_removeFomModule(const std::string&);
00078 
00079    protected:
00080 
00081       DtDe& myDe;
00082       DtHla1516eConnectionInterface& myHla1516eInterface;
00083       DtHla1516eDriver* myCurrentDriver;
00084       DtExerciseConnInitializer* myLocalInit;
00085 
00086    };
00087 
00088 }

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)