From 8e7dfbe292739da43a5f3fedec340a560911063c Mon Sep 17 00:00:00 2001 From: david Date: Sun, 15 Dec 2002 14:58:08 +0000 Subject: [PATCH] Add a reinit() stub for subsystems, so that they can be reinitialized when needed (say, to reload the configuration files). --- src/Main/fgfs.cxx | 5 +++++ src/Main/fgfs.hxx | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/src/Main/fgfs.cxx b/src/Main/fgfs.cxx index b85497fb6..4569a4e5a 100644 --- a/src/Main/fgfs.cxx +++ b/src/Main/fgfs.cxx @@ -26,6 +26,11 @@ FGSubsystem::init () { } +void +FGSubsystem::reinit () +{ +} + void FGSubsystem::bind () { diff --git a/src/Main/fgfs.hxx b/src/Main/fgfs.hxx index a1cc83b90..ea217c2f8 100644 --- a/src/Main/fgfs.hxx +++ b/src/Main/fgfs.hxx @@ -148,6 +148,15 @@ public: virtual void init (); + /** + * Reinitialize the subsystem. + * + *

This method should cause the subsystem to reinitialize itself, + * and (normally) to reload any configuration files.

+ */ + virtual void reinit (); + + /** * Acquire the subsystem's property bindings. * -- 2.39.5