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


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.h

    r307 r490  
    1111
    1212class HProf : public Histo {
    13   friend class FIO_HProf;
     13  friend class ObjFileIO<HProf>;
    1414public:
    1515
     
    6565};
    6666
    67 /////////////////////////////////////////////////////////////////////////
     67
     68inline POutPersist& operator << (POutPersist& os, HProf & obj)
     69{ ObjFileIO<HProf> fio(&obj);  fio.Write(os);  return(os); }
     70inline PInPersist& operator >> (PInPersist& is, HProf & obj)
     71{ ObjFileIO<HProf> fio(&obj);  fio.Read(is);  return(is); }
    6872// Classe pour la gestion de persistance
    69 class FIO_HProf : public  PPersist  {
    70 public:
    71   FIO_HProf();
    72   FIO_HProf(string const & filename);
    73   FIO_HProf(const HProf & obj);
    74   FIO_HProf(HProf * obj);
    75   virtual ~FIO_HProf();
    76   virtual AnyDataObj* DataObj();
    77   inline operator HProf() { return(*dobj); }
    78 protected :
    79   virtual void ReadSelf(PInPersist&);           
    80   virtual void WriteSelf(POutPersist&) const; 
    81   HProf * dobj;
    82   bool ownobj;
    83 };
     73// ObjFileIO<HProf>
     74
    8475
    8576} // Fin du namespace
Note: See TracChangeset for help on using the changeset viewer.