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

1/ Simplification de la classe gestionnairee PPersist ObjFile<T> (objfio.h)
2/ Ajout DECL_TEMP_SPEC ds ppftpointerio.h
3/ Nom specifique pour methode SegDBInterface::GetSegment() const devenu
SegDBInterface::GetCstSegment() const pour eviter l'appel a la methode non const
et adapatation classes derivees (segdatablock.h et swsegdb.h)
4/ Ajout SkipToNextObjet() ds PInPersist::ReadObject() (ppersist.cc) et protection contre pointeur NULL -> new DVList pour la lecture PPersist de DVList

Reza - 27 Avril 2005

File:
1 edited

Legend:

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

    r2695 r2698  
    2727  PPFDataSwapper(PInPersist & is) { ppfos = NULL; ppfis = &is;}
    2828  PPFDataSwapper(PInPersist & is, POutPersist & os) { ppfos = &os; ppfis = &is;}
     29
     30  inline PInPersist & InStream() { return *ppfis; }
     31  inline PInPersist & OutStream() { return *ppfos; }
     32  inline void SetInStream(PInPersist & is) { ppfis = &is; }
     33  inline void SetOutStream(POutPersist & os) { ppfos = &os; }
     34
     35  // Operateur = , on recopie les pointeurs des streams
     36  inline PPFDataSwapper& operator = (PPFDataSwapper const & a)
     37  { ppfis = a.ppfis;  ppfos = a.ppfos; return *this; }
     38
    2939  virtual int_8 WriteToSwap(const T * d, size_t sz, int_8 idx, int_8 oswp=0, bool osw=false)
    3040  {
Note: See TracChangeset for help on using the changeset viewer.