From 5bf28d3f900fab3c57f10232e965c86022c20032 Mon Sep 17 00:00:00 2001 From: Edward d'Auvergne Date: Mon, 7 May 2018 21:04:29 +0200 Subject: [PATCH] SGSubsystemMgr: Expanded the dependency list types. All the dependency types are now documented. --- simgear/structure/subsystem_mgr.hxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/simgear/structure/subsystem_mgr.hxx b/simgear/structure/subsystem_mgr.hxx index 938bdb23..708f2ee4 100644 --- a/simgear/structure/subsystem_mgr.hxx +++ b/simgear/structure/subsystem_mgr.hxx @@ -581,11 +581,17 @@ public: return dynamic_cast(get_subsystem(T::staticSubsystemClassId(), subsystemInstanceId)); } + /** + * @brief Subsystem dependency structure. + */ struct Dependency { enum Type { - HARD, - SOFT, - PROPERTY + HARD, ///< The subsystem cannot run without this subsystem dependency. + SOFT, ///< The subsystem uses this subsystem dependency, but can run without it. + SEQUENCE, ///< Used for ordering subsystem initialisation. + NONSUBSYSTEM_HARD, ///< The subsystem cannot run without this non-subsystem dependency. + NONSUBSYSTEM_SOFT, ///< The subsystem uses this non-subsystem dependency, but can run without it. + PROPERTY ///< The subsystem requires this property to exist to run. }; std::string name;