VR-Forces 4.0.4 Class Documentation
include/vrvHla1516e/DtHla1516eDriver.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009  
00010 #pragma once
00011  
00012 #include <vrvHla1516e/vrvHla1516e.h> 
00013 #include <vrvVrl/DtVrlinkDriver.h>
00014 
00015 class DtExerciseConnInitializer;
00016  
00017 namespace makVrv 
00018 {
00019 
00022    class DT_DLL_VRVHLA1516E DtHla1516eDriver : public DtVrlinkDriver
00023    {
00024    public:
00025 
00027       DtHla1516eDriver( DtAgentManager& agentManager, const std::string& uniqueName,
00028          const std::string& className = "DtHla1516eDriver" );
00029 
00031       virtual ~DtHla1516eDriver();
00032 
00034       virtual void realizeConfiguration( const DtConfiguration& config );
00035 
00037       virtual DtConfiguration createConfiguration() const;
00038 
00040       inline const DtExerciseConnInitializer& exerciseSettings() const 
00041       { 
00042          return *myLocalExConnInitializer;
00043       }
00044 
00046       void setExerciseSettings( const DtExerciseConnInitializer& settings );
00047 
00049       void setAppNumber( int appNumber );
00050 
00052       void setSiteId( int siteId );
00053    protected:
00054 
00056       virtual DtConnection* createConnection();
00057 
00058       virtual void slot_onObserverCreated( DtObserver* observer );
00059       virtual void slot_onObserverDestroyed( DtObserver* observer );
00060 
00061    protected:
00062 
00063       // Local state.
00064       DtExerciseConnInitializer* myLocalExConnInitializer;      
00065       int myAppNumber;
00066       int mySiteId;
00067 
00068    };
00069 
00072    class DT_DLL_VRVHLA1516E DtHla1516eDriverCreator : public DtDriverCreator
00073    {
00074    public:     
00075 
00077       DtHla1516eDriverCreator();
00078 
00080       virtual ~DtHla1516eDriverCreator();
00081 
00084       virtual const std::string& extension() const;
00085 
00086 
00088       virtual DtDriver* create( DtAgentManager& agentManager,
00089          const std::string& instanceName ) const;
00090 
00091    protected:
00092 
00093       std::string myFileExtension;
00094 
00095    };
00096 
00097 } 

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)