Changeset 2699 in Sophya for trunk/SophyaLib/HiStats/swppfdtable.h
- Timestamp:
- Apr 27, 2005, 1:48:19 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/swppfdtable.h
r2696 r2699 20 20 SwPPFDataTable(POutPersist & os, sa_size_t segsz=512); 21 21 SwPPFDataTable(SwPPFDataTable const& a); 22 22 23 virtual ~SwPPFDataTable(); 24 23 25 virtual sa_size_t AddColumn(FieldType ft, string const & cnom); 24 26 … … 32 34 33 35 // Pour la gestion de persistance PPF 34 friend class ObjFileIO< SwPPFDataTable> ;36 friend class ObjFileIO<BaseDataTable> ; 35 37 36 38 //! Reset the table content and structure 37 v oid Clear();39 virtual void Clear(); 38 40 /*! This method should be called in order to empty the swapout buffer, 39 41 before saving object to PPF stream … … 56 58 PPFDataSwapper<string> mSSwapper; 57 59 58 POutPersist* mSwOut; 59 PInPersist* mSwIn; 60 // Output swap stream doit etre cree avant l'appel au constructeur 61 // et rester valide (non detruit) tant que l'objet SwPPFDataTable existe 62 POutPersist* mSwOut; 63 // Input swap stream - On cree un input swap stream et on fait 64 // un comptage de reference pour le detruire lorsque tous les tables 65 // l'utilisant sont supprimes 66 typedef struct { PInPersist* pis; uint_4 refcnt; } St_InSwap; 67 St_InSwap * mSwIn; 60 68 }; 61 69 62 70 /*! Writes the object in the POutPersist stream \b os */ 63 71 inline POutPersist& operator << (POutPersist& os, SwPPFDataTable & obj) 64 { obj.SwapOutAll(); ObjFileIO< SwPPFDataTable> fio(&obj); fio.Write(os); return(os); }72 { obj.SwapOutAll(); ObjFileIO<BaseDataTable> fio(&obj); fio.Write(os); return(os); } 65 73 /*! Reads the object from the PInPersist stream \b is */ 66 74 inline PInPersist& operator >> (PInPersist& is, SwPPFDataTable & obj) 67 { ObjFileIO<SwPPFDataTable> fio(&obj); is.SkipToNextObject(); fio.Read(is); return(is); } 68 // Classe pour la gestion de persistance 69 // ObjFileIO<SwPPFDataTable> 75 { ObjFileIO<BaseDataTable> fio(&obj); is.SkipToNextObject(); fio.Read(is); return(is); } 76 70 77 } // namespace SOPHYA 71 78
Note:
See TracChangeset
for help on using the changeset viewer.