Changeset 3426 in Sophya
- Timestamp:
- Dec 8, 2007, 11:28:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.cc
r2805 r3426 523 523 return object; 524 524 } 525 else if (ppstype == PPS_REFERENCE) 526 return ReadReference(); 527 525 else if (ppstype == PPS_REFERENCE) { 526 PPersist* ppr = ReadReference(); 527 PPersist* pprc = ppr->CloneSharedReference(); 528 if (po) { // We have to read it into an object 529 pprc->SetDataObj(*po); 530 pprc->ShareDataReference(*ppr); // On met a jour la reference de pprc 531 } 532 return pprc; 533 } 528 534 else throw FileFormatExc("PInPersist::ReadObject invalide Tag Type !"); 529 535 } … … 578 584 if (seqread) throw FileFormatExc("PInPersist::KeepOId() already present PPS_ObjectId "); 579 585 PPersist *pp = (*objList.find(oid)).second; 580 ppo.ShareDataReference(*pp); 586 ppo.ShareDataReference(*pp); // On met a jour la reference des donnees de ppo 581 587 } 582 588 else { … … 649 655 ClassCreatorFunc f = FindCreatorFunc(getDataObjClassId(o)); 650 656 if (!f) 651 throw NotFoundExc("P InPersist::PutObject() class not registered");657 throw NotFoundExc("POutPersist::PutObject() class not registered"); 652 658 PPersist* ppo = f(); 653 659 ppo->SetDataObj(o);
Note:
See TracChangeset
for help on using the changeset viewer.