Changeset 2885 in Sophya for trunk/SophyaLib/NTools


Ignore:
Timestamp:
Jan 4, 2006, 2:36:47 PM (20 years ago)
Author:
ansari
Message:

Modifs (ajout this->) pour compilation avec g++ 4 (V >= 3.4) - Reza 4 Jan 2006

Location:
trunk/SophyaLib/NTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/cimage.cc

    r2870 r2885  
    101101  : FIO_TArray<T>()
    102102{
    103   dobj = new Image<T>(obj, true);
    104   ownobj=true;
     103  this->dobj = new Image<T>(obj, true);
     104  this->ownobj=true;
    105105}
    106106
     
    124124    throw TypeMismatchExc(PExcLongMessage(buff));       
    125125  }
    126   if (ownobj && dobj) delete dobj;
    127   dobj = po; ownobj = false;
     126  if (this->ownobj && this->dobj) delete this->dobj;
     127  this->dobj = po; this->ownobj = false;
    128128}
    129129
     
    131131void FIO_Image<T>::ReadSelf(PInPersist& is)
    132132{
    133   if (dobj == NULL) dobj = new Image<T>;
    134   Image<T> * img = dynamic_cast<Image<T> * > (dobj);
     133  if (this->dobj == NULL) this->dobj = new Image<T>;
     134  Image<T> * img = dynamic_cast<Image<T> * > (this->dobj);
    135135// On lit les 3 premiers uint_4
    136136//  0: Numero de version,  1 : reserve
     
    155155void FIO_Image<T>::WriteSelf(POutPersist& os) const
    156156{
    157   if (dobj == NULL)   return;
    158   Image<T> * img = dynamic_cast<Image<T> * > (dobj);
     157  if (this->dobj == NULL)   return;
     158  Image<T> * img = dynamic_cast<Image<T> * > (this->dobj);
    159159//  On ecrit 3 uint_4 ....
    160160  uint_4 itab[3];
  • trunk/SophyaLib/NTools/cimage.h

    r1390 r2885  
    3333
    3434  //! Returns the image size along X (corresponding to the number of columns) 
    35   inline sa_size_t  XSize() const {return NCols();}
     35  inline sa_size_t  XSize() const {return this->NCols();}
    3636  //! Returns the image size along Y (corresponding to the number of lines) 
    37   inline sa_size_t  YSize() const {return NRows();}
     37  inline sa_size_t  YSize() const {return this->NRows();}
    3838
    3939  //! Returns the X position, for pixel(0,0)
     
    8989  //  virtual ~FIO_Image(); 
    9090  virtual void        SetDataObj(AnyDataObj & o);
    91   inline operator Image<T>() { return(*(dynamic_cast<Image<T> * >(dobj))); }
     91  inline operator Image<T>() { return(*(dynamic_cast<Image<T> * >(this->dobj))); }
    9292protected :
    9393  virtual void ReadSelf(PInPersist&);           
Note: See TracChangeset for help on using the changeset viewer.