]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGDeviceConfigurationMap.hxx
replay system: protect from recording multiple records for identical time
[flightgear.git] / src / Input / FGDeviceConfigurationMap.hxx
index 283973d281bce833ebf1f63a587db4acca28dcd7..8266a466bbf902fcaca78da9ccca6804f5b9b3c5 100644 (file)
@@ -37,7 +37,9 @@
 class FGDeviceConfigurationMap
 {
 public:
-  FGDeviceConfigurationMap ( const std::string& relative_path);
+  FGDeviceConfigurationMap ( const std::string& relative_path,
+                            SGPropertyNode* nodePath,
+                            const std::string& nodeName);
   virtual ~FGDeviceConfigurationMap();
 
   SGPropertyNode_ptr configurationForDeviceName(const std::string& name);
@@ -49,6 +51,11 @@ private:
   void readCachedData(const SGPath& path);
   void refreshCacheForFile(const SGPath& path);
   
+  typedef std::map<std::string, SGPropertyNode_ptr> NameNodeMap;
+// dictionary of over-ridden configurations, where the config data
+// was explicitly loaded and shoudl be picked over a file search
+  NameNodeMap overrideDict;
+  
   typedef std::map<std::string, SGPath> NamePathMap;
 // mapping from joystick name to XML configuration file path
   NamePathMap namePathMap;