]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/subsystem_mgr.cxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / subsystem_mgr.cxx
index 05a072059b6d6c686c3dd00f837949415262edcd..f9eb752b8742ba0f7af2e0334052964f61e01fd6 100644 (file)
@@ -333,6 +333,16 @@ SGSubsystemGroup::remove_subsystem (const string &name)
     SG_LOG(SG_GENERAL, SG_WARN, "remove_subsystem: missing:" << name);
 }
 
+//------------------------------------------------------------------------------
+void SGSubsystemGroup::clearSubsystems()
+{
+  for( MemberVec::iterator it = _members.begin();
+                           it != _members.end();
+                         ++it )
+    delete *it;
+  _members.clear();
+}
+
 void
 SGSubsystemGroup::set_fixed_update_time(double dt)
 {
@@ -530,7 +540,7 @@ void
 SGSubsystemMgr::add (const char * name, SGSubsystem * subsystem,
                      GroupType group, double min_time_sec)
 {
-    SG_LOG(SG_GENERAL, SG_INFO, "Adding subsystem " << name);
+    SG_LOG(SG_GENERAL, SG_DEBUG, "Adding subsystem " << name);
     get_group(group)->set_subsystem(name, subsystem, min_time_sec);
 
     if (_subsystem_map.find(name) != _subsystem_map.end()) {