Ignore:
Timestamp:
Apr 27, 2005, 1:48:19 PM (20 years ago)
Author:
ansari
Message:

1/ Corrections diverses ds BaseDataTable, en particulier GetSegment() -> GetCstSegment(), et ameliorations/debug divers
2/ Classe SWPPFDataTable debugge, rendu +/- operationnelle
3/ Gestionnaire PPersist de DataTable et SWPPFDataTable fusionnee en une seule
classe ObjFileIO<BaseDataTable> - mis ds fio_dtable.cc
4/ mis a jour histats.h avec swppfdtable.h, objlist.list et histinit.cc

Reza, 27 Avril 2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/swppfdtable.h

    r2696 r2699  
    2020  SwPPFDataTable(POutPersist & os, sa_size_t segsz=512);
    2121  SwPPFDataTable(SwPPFDataTable const& a);
    22  
     22
     23  virtual ~SwPPFDataTable();
     24
    2325  virtual sa_size_t AddColumn(FieldType ft, string const & cnom);
    2426
     
    3234
    3335  //  Pour la gestion de persistance PPF
    34   friend class ObjFileIO<SwPPFDataTable> ;
     36  friend class ObjFileIO<BaseDataTable> ;
    3537 
    3638  //! Reset the table content and structure
    37   void Clear();
     39  virtual void Clear();
    3840  /*! This method should be called in order to empty the swapout buffer,
    3941     before saving object to PPF stream
     
    5658  PPFDataSwapper<string> mSSwapper;
    5759 
    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;
    6068};
    6169 
    6270/*! Writes the object in the POutPersist stream \b os */
    6371inline 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); }
    6573/*! Reads the object from the PInPersist stream \b is */
    6674inline 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
    7077} // namespace SOPHYA
    7178
Note: See TracChangeset for help on using the changeset viewer.