]> git.mxchange.org Git - flightgear.git/commitdiff
Add a reinit() stub for subsystems, so that they can be reinitialized
authordavid <david>
Sun, 15 Dec 2002 14:58:08 +0000 (14:58 +0000)
committerdavid <david>
Sun, 15 Dec 2002 14:58:08 +0000 (14:58 +0000)
when needed (say, to reload the configuration files).

src/Main/fgfs.cxx
src/Main/fgfs.hxx

index b85497fb692bdc69a326c6acd057651d0b0d560f..4569a4e5a9c8a00287e7cedbf179fff5cc0167e8 100644 (file)
@@ -26,6 +26,11 @@ FGSubsystem::init ()
 {
 }
 
+void
+FGSubsystem::reinit ()
+{
+}
+
 void
 FGSubsystem::bind ()
 {
index a1cc83b90aa5a64a805924f1f40500cd4ef0a8c8..ea217c2f8c5dafc46bf386917668f061c20afd38 100644 (file)
@@ -148,6 +148,15 @@ public:
   virtual void init ();
 
 
+  /**
+   * Reinitialize the subsystem.
+   *
+   * <p>This method should cause the subsystem to reinitialize itself,
+   * and (normally) to reload any configuration files.</p>
+   */
+  virtual void reinit ();
+
+
   /**
    * Acquire the subsystem's property bindings.
    *