}
}
+void DynamicObject::DeactivateObjects(void)
+{
+ DynamicObject::TypeMap::iterator tt;
+ for (tt = GetAllObjects().begin(); tt != GetAllObjects().end(); tt++) {
+ DynamicObject::NameMap::iterator nt;
+
+ while ((nt = tt->second.begin()) != tt->second.end()) {
+ DynamicObject::Ptr object = nt->second;
+
+ object->Unregister();
+ }
+ }
+}
+
DynamicObject::TypeMap& DynamicObject::GetAllObjects(void)
{
static TypeMap objects;
static void DumpObjects(const String& filename);
static void RestoreObjects(const String& filename);
+ static void DeactivateObjects(void);
static void RegisterClass(const String& type, Factory factory);
static bool ClassExists(const String& type);