Added ownership functionality and made the thing non-copyable

This commit is contained in:
mac 2000-06-13 14:31:53 +00:00
commit 570397e89e
2 changed files with 34 additions and 0 deletions

View file

@ -13,6 +13,8 @@
using namespace std;
void removeComment(string& str, string comment)
{
string::size_type pos = str.find(comment);
@ -41,6 +43,14 @@ bool is_section(const string& str, string& name)
return true;
}
eoState::~eoState(void)
{
for (unsigned i = 0; i < ownedObjects.size(); ++i)
{
delete ownedObjects[i];
}
}
void eoState::registerObject(eoPersistent& registrant)
{