00001 00010 #pragma once 00011 00012 #include "BaseObjectEventHandler.h" 00013 #include "IObjectManager.h" 00014 00021 class ObjectManagerDocument: public BaseObjectEventHandler 00022 { 00023 public: 00024 bool changed; 00025 char path[1024]; 00026 IObjectManager *objectManager; 00027 00028 void ChildChanged(IManagedObject *inTarget, void *inChild) 00029 { 00030 changed = true; 00031 } 00032 00033 void save() 00034 { 00035 objectManager->saveToFile(path); 00036 changed = false; 00037 } 00038 };