![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtInputDriverConfiguration.h,v $ $Revision: 1.9 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtInputDriverConfiguration_H_ 00014 #define DtInputDriverConfiguration_H_ 00015 00016 #include <vrvUtil/vrvUtil.h> 00017 #include <vrvUtil/DtConfiguration.h> 00018 #include <vrvUtil/DtObserverConfiguration.h> 00019 #include <vrvUtil/DtConfigurationCollection.h> 00020 #include <vrvUtil/DtDriverConfiguration.h> 00021 #include <makArchives/DtSerialize.h> 00022 00023 namespace makVrv 00024 { 00025 typedef DtConfigurationCollection<DtObserverConfiguration> DtObserverConfigurations; 00026 00027 00031 class DT_DLL_VRVUTIL DtInputDriverConfiguration : public DtConfiguration 00032 { 00033 00034 public: 00035 00037 DtInputDriverConfiguration(const std::string& name = ""); 00038 00040 DtInputDriverConfiguration(const DtInputDriverConfiguration& config); 00041 00043 DtInputDriverConfiguration& operator=(const DtInputDriverConfiguration& config); 00044 00046 virtual ~DtInputDriverConfiguration(); 00047 00048 00050 00051 virtual const std::string& defaultKeyMap() const; 00052 virtual void setDefaultKeyMap(const std::string& defaultKeyMap); 00054 00060 DT_DECLARE_serialize_FUNCTIONS 00061 00062 00064 00065 virtual DtObserverConfigurations& observerConfigurations(); 00066 virtual const DtObserverConfigurations& observerConfigurations() const; 00068 00069 00070 protected: 00071 00072 template<class Archive> 00073 void _serialize(Archive & ar, const unsigned int version) 00074 { 00075 ar & DT_SERIALIZE_BASE(DtConfiguration); 00076 ar & DT_SERIALIZE_MEMBER(myDefaultKeyMap); 00077 ar & DT_SERIALIZE_MEMBER(myObserverConfigurations); 00078 } 00079 00080 DtObserverConfigurations myObserverConfigurations; 00081 std::string myDefaultKeyMap; 00082 }; 00083 } 00084 00085 BOOST_CLASS_VERSION(makVrv::DtInputDriverConfiguration,1) 00086 00087 #endif 00088