Changeset 361 in Sophya for trunk/SophyaPI/PIext/nomhistadapter.cc
- Timestamp:
- Aug 6, 1999, 7:16:22 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomhistadapter.cc
r344 r361 298 298 } 299 299 300 300 //------------------------------------------------------------------------- 301 // Class Adaptateur d'objet (Pour NamedObjMgr) d'objet XNTuple 302 //------------------------------------------------------------------------- 303 304 /* --Methode-- */ 305 NOMAdapter_XNTuple::NOMAdapter_XNTuple(XNTuple* o) 306 : NObjMgrAdapter(o) 307 { 308 mNt = o; 309 } 310 311 /* --Methode-- */ 312 NOMAdapter_XNTuple::~NOMAdapter_XNTuple() 313 { 314 } 315 316 /* --Methode-- */ 317 NObjMgrAdapter* NOMAdapter_XNTuple::Clone(AnyDataObj* o) 318 { 319 XNTuple* nt = dynamic_cast<XNTuple *>(o); 320 if (nt) return ( new NOMAdapter_XNTuple(nt) ); 321 return ( new NObjMgrAdapter(o) ); 322 } 323 324 325 /* --Methode-- */ 326 void NOMAdapter_XNTuple::SavePPF(POutPersist& pos, string const & nom) 327 { 328 #ifdef SANS_EVOLPLANCK 329 // PEIDA-EROS L'histo est lui-meme PPersist 330 string tag = nom; // A cause de const 331 mNt->Write(pos,0,tag); 332 #else 333 string s = typeid(*mObj).name(); 334 cout << "NOMAdapter_XNTuple::SavePPF() - Error : Not supported for " << s << endl; 335 #endif 336 } 337 338 /* --Methode-- */ 339 void NOMAdapter_XNTuple::Print(ostream& os) 340 { 341 // os << mNt->Info(); 342 mNt->Show(os); 343 } 344 345 346 /* --Methode-- */ 347 NTupleInterface* NOMAdapter_XNTuple::GetNTupleInterface(bool& adel) 348 { 349 adel = false; 350 return(mNt); 351 } 352 353
Note:
See TracChangeset
for help on using the changeset viewer.