Ignore:
Timestamp:
Jan 2, 2006, 2:38:54 PM (20 years ago)
Author:
ansari
Message:

Correction bug latent ds SwSegDataBlock<T> (operateur = et constructeur de copie) par ajout / appel methode Clone() dans DataSwapperInterface<T> - Reza 2 Jan 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ppfswapper.h

    r2805 r2863  
    4343  virtual int_8 WriteToSwap(const T * d, size_t sz, int_8 idx, int_8 oswp=0, bool osw=false)
    4444  {
    45     if (ppfos == NULL) throw NotAvailableOperation("PPFDataSwapper<T>::WriteToSwap() - No POutPersist stream !");
     45    if (ppfos == NULL)
     46      throw NotAvailableOperation("PPFDataSwapper<T>::WriteToSwap() - No POutPersist stream !");
    4647    int_8 tag = ppfos->WritePositionTag();
    4748    PPF_TPointer_IO<T>::Write(*ppfos, d, sz);
     
    5051  virtual void  ReadFromSwap(int_8 idx, int_8 swp, T* d, size_t sz)
    5152  {
    52     if (ppfis == NULL) throw NotAvailableOperation("PPFDataSwapper<T>::ReadFromSwap() - No PInPersist stream !");
     53    if (ppfis == NULL)
     54      throw NotAvailableOperation("PPFDataSwapper<T>::ReadFromSwap() - No PInPersist stream !");
    5355    bool ok = ppfis->GotoPositionTag(swp);
    5456    PPF_TPointer_IO<T>::Read(*ppfis, d, sz);
    5557    return;
     58  }
     59  virtual DataSwapperInterface<T>* Clone()
     60  {
     61    PPFDataSwapper<T> * rsw = new PPFDataSwapper<T> ;
     62    (*rsw) = *this;
     63    return rsw;
    5664  }
    5765protected:
Note: See TracChangeset for help on using the changeset viewer.