void EClassManager::realise() { if (_realised) { return; // nothing to do anymore } _realised = true; parseDefFiles(); resolveInheritance(); }
void EClassManager::reloadDefs() { // greebo: Leave all current entityclasses as they are, just invoke the // FileLoader again. It will parse the files again, and look up // the eclass names in the existing map. If found, the eclass // will be asked to clear itself and re-parse from the tokens. // This is to assure that any IEntityClassPtrs remain intakt during // the process, only the class contents change. parseDefFiles(); // Resolve the eclass inheritance again resolveInheritance(); _defsReloadedSignal.emit(); }
void EClassManager::reloadDefs() { // greebo: Leave all current entityclasses as they are, just invoke the // FileLoader again. It will parse the files again, and look up // the eclass names in the existing map. If found, the eclass // will be asked to clear itself and re-parse from the tokens. // This is to assure that any IEntityClassPtrs remain intakt during // the process, only the class contents change. parseDefFiles(); // Resolve the eclass inheritance again resolveInheritance(); for (Observers::const_iterator i = _observers.begin(); i != _observers.end(); ++i) { (*i)->onEClassReload(); } }