Changeset 490 in Sophya for trunk/SophyaLib/NTools/hisprof.cc


Ignore:
Timestamp:
Oct 21, 1999, 5:25:53 PM (26 years ago)
Author:
ansari
Message:

Merge avec PEIDA++ (~V 3.8) et nettoyage pour nouveau PPersist Reza+cmv 21/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/hisprof.cc

    r308 r490  
    303303///////////////////////////////////////////////////////////
    304304
    305 FIO_HProf::FIO_HProf()
    306 {
    307 dobj=new HProf;
    308 ownobj=true;
    309 }
    310 
    311 FIO_HProf::FIO_HProf(string const & filename)
    312 {
    313 dobj=new HProf;
    314 ownobj=true;
    315 Read(filename);
    316 }
    317 
    318 FIO_HProf::FIO_HProf(const HProf & obj)
    319 {
    320 dobj = new HProf(obj);
    321 ownobj=true;
    322 }
    323 
    324 FIO_HProf::FIO_HProf(HProf * obj)
    325 {
    326 dobj = obj;
    327 ownobj=false;
    328 }
    329 
    330 FIO_HProf::~FIO_HProf()
    331 {
    332 if (ownobj && dobj) delete dobj;
    333 }
    334 
    335 AnyDataObj* FIO_HProf::DataObj()
    336 {
    337 return(dobj);
    338 }
    339 
    340 void FIO_HProf::ReadSelf(PInPersist& is)
     305
     306void ObjFileIO<HProf>::ReadSelf(PInPersist& is)
    341307{
    342308char strg[256];
     
    365331
    366332// Ecriture de l'histogramme
    367 FIO_Histo fio_h((Histo&)*dobj);
    368 fio_h.Read(is);
    369 
     333is >> (Histo&)(*dobj);
    370334return;
    371335}
    372336
    373 void FIO_HProf::WriteSelf(POutPersist& os) const
     337void ObjFileIO<HProf>::WriteSelf(POutPersist& os) const
    374338{
    375339if (dobj == NULL)   return;
     
    396360
    397361// Ecriture de l'histogramme
    398 FIO_Histo fio_h((Histo&)*dobj);
    399 fio_h.Write(os);
     362// FIO_Histo fio_h((Histo&)*dobj);
     363// fio_h.Write(os);
     364os << (Histo&)(*dobj);
    400365
    401366return;
    402367}
     368
     369#ifdef __CXX_PRAGMA_TEMPLATES__
     370#pragma define_template ObjFileIO<HProf>
     371#endif
     372
     373#if defined(ANSI_TEMPLATES) || defined(GNU_TEMPLATES)
     374template class ObjFileIO<HProf>;
     375#endif
Note: See TracChangeset for help on using the changeset viewer.