Changeset 490 in Sophya for trunk/SophyaLib/NTools/hisprof.h
- Timestamp:
- Oct 21, 1999, 5:25:53 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/hisprof.h
r307 r490 11 11 12 12 class HProf : public Histo { 13 friend class FIO_HProf;13 friend class ObjFileIO<HProf>; 14 14 public: 15 15 … … 65 65 }; 66 66 67 ///////////////////////////////////////////////////////////////////////// 67 68 inline POutPersist& operator << (POutPersist& os, HProf & obj) 69 { ObjFileIO<HProf> fio(&obj); fio.Write(os); return(os); } 70 inline PInPersist& operator >> (PInPersist& is, HProf & obj) 71 { ObjFileIO<HProf> fio(&obj); fio.Read(is); return(is); } 68 72 // 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 84 75 85 76 } // Fin du namespace
Note:
See TracChangeset
for help on using the changeset viewer.