Finalized Checkpointing, see t-eoCheckpointing for a test

This commit is contained in:
mac 2000-03-31 10:02:18 +00:00
commit 9bcf9d95f8
12 changed files with 558 additions and 11 deletions

View file

@ -115,7 +115,7 @@ void eoState::load(const string& _filename)
}
void eoState::save(const string& filename)
void eoState::save(const string& filename) const
{ // saves in order of insertion
ofstream os(filename.c_str());
@ -125,7 +125,7 @@ void eoState::save(const string& filename)
throw runtime_error(msg);
}
for (vector<ObjectMap::iterator>::iterator it = creationOrder.begin(); it != creationOrder.end(); ++it)
for (vector<ObjectMap::iterator>::const_iterator it = creationOrder.begin(); it != creationOrder.end(); ++it)
{
os << "\\section{" << (*it)->first << "}\n";
(*it)->second->printOn(os);