| 237 | } |
| 238 | |
| 239 | void PersistenceManager::saveObject() |
| 240 | { |
| 241 | // Now that we have all of the data attempt to |
| 242 | // find the corresponding SimObject |
| 243 | mCurrentObject->simObject = Sim::findObject(mCurrentFile, mCurrentObject->endLine + 1); |
| 244 | |
| 245 | // Save this object |
| 246 | mObjectBuffer.push_back(mCurrentObject); |
| 247 | |
| 248 | mCurrentObject = NULL; |
| 249 | |
| 250 | // If there is an object in the stack restore it |
| 251 | if (mObjectStack.size() > 0) |
| 252 | { |
| 253 | mCurrentObject = mObjectStack.last(); |
| 254 | mObjectStack.pop_back(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | void PersistenceManager::parseObject() |
| 259 | { |
nothing calls this directly
no test coverage detected