VR-Forces 4.0.4 Class Documentation
include/vrvHla13/DtHla13Driver.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2007 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtHla13Driver.h,v $ $Revision: 1.43 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtHla13Driver_H_ 
00014 #define DtHla13Driver_H_ 
00015  
00016 #include <vrvHla13/vrvHla13.h> 
00017 #include <vrvVrl/DtVrlinkDriver.h>
00018 
00019 class DtExerciseConnInitializer;
00020  
00021 namespace makVrv 
00022 {
00023 
00026    class DT_DLL_VRVHLA13 DtHla13Driver : public DtVrlinkDriver
00027    {
00028    public:
00029 
00031       DtHla13Driver(DtAgentManager& agentManager, const std::string& uniqueName, const std::string& className = "DtHla13Driver");
00032 
00034       virtual ~DtHla13Driver();
00035 
00037       virtual void realizeConfiguration(const DtConfiguration& config);
00038 
00040       virtual DtConfiguration createConfiguration() const;
00041 
00043       inline const DtExerciseConnInitializer& exerciseSettings() const 
00044       { 
00045          return *myLocalExConnInitializer;
00046       }
00047 
00049       void setExerciseSettings(const DtExerciseConnInitializer& settings);
00050 
00052       void setAppNumber(int appNumber);
00053 
00055       void setSiteId(int siteId);
00056 
00058       int siteId();
00059 
00061       int appNumber();
00062 
00063    protected:
00064 
00066       virtual DtConnection* createConnection();
00067 
00068       virtual void slot_onObserverCreated(DtObserver* observer);
00069       virtual void slot_onObserverDestroyed(DtObserver* observer);
00070 
00071       
00072    protected:
00073       //Local state.
00074       DtExerciseConnInitializer* myLocalExConnInitializer;      
00075       int mySiteId;
00076       int myAppNumber;
00077    };
00078 
00081    class DT_DLL_VRVHLA13 DtHla13DriverCreator : public DtDriverCreator
00082    {
00083    public:     
00084 
00086       DtHla13DriverCreator();
00087 
00089       virtual ~DtHla13DriverCreator();
00090 
00093       virtual const std::string& extension() const;
00094 
00096       virtual DtDriver* create(DtAgentManager& agentManager, 
00097          const std::string& instanceName) const;
00098 
00099    protected:
00100       std::string myFileExtension;
00101 
00102    };
00103 } 
00104  
00105 #endif 
00106 

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)