Changeset 1224 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc
- Timestamp:
- Oct 11, 2000, 7:26:43 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r1207 r1224 204 204 #endif 205 205 myVars->SetS(key, val); 206 // cout << " DEBUG::SetVar " << *myVars << endl; 206 207 return(fg); 207 208 } … … 230 231 string NamedObjMgr::GetVar(string const & key) 231 232 { 233 // cout << " DEBUG::GetVar " << *myVars << endl; 232 234 return(myVars->GetS(key)); 233 235 } … … 236 238 DVList& NamedObjMgr::GetVarList() 237 239 { 240 // cout << " DEBUG::GetVarList " << *myVars << endl; 238 241 return(*myVars); 239 242 } … … 526 529 } 527 530 531 bool NamedObjMgr::AddObj(AnyDataObj& obj, string & nom, bool crd) 532 { 533 NObjMgrAdapter* adap = GetServiceObj()->GetAdapter(&obj); 534 if (adap == NULL) { 535 cout << "NamedObjMgr::AddObj() No Adapter ! " << nom << endl; 536 return(false); 537 } 538 AnyDataObj * cloneobj = adap->CloneDataObj(); 539 delete adap; 540 if (cloneobj == NULL) { 541 cout << "NamedObjMgr::AddObj() Pb cloning object ! " << nom << endl; 542 return(false); 543 } 544 return ( AddObj(cloneobj , nom, crd) ); 545 } 546 528 547 /* --Methode-- */ 529 548 bool NamedObjMgr::RenameObj(string & nom, string& nomnew)
Note:
See TracChangeset
for help on using the changeset viewer.