/** This is ALMOST the same as the assignment operator. The difference is that this method augments its local list of operations with those passed in rather than replacing them. */ void COperations::CopyFrom(const HeeksObj *object) { if (object->GetType() == GetType()) { COperations *rhs = (COperations*)object; for (HeeksObj *child = rhs->GetFirstChild(); child != NULL; child = rhs->GetNextChild()) { child->SetID( heeksCAD->GetNextID(child->GetType()) ); Add(child, NULL); } // End for } }