Changeset 701 in Sophya for trunk/SophyaLib/Samba/spherepos.h


Ignore:
Timestamp:
Jan 4, 2000, 3:27:29 PM (26 years ago)
Author:
ansari
Message:

mise a jour de persistances par objets delegues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/spherepos.h

    r552 r701  
    77#include <string>
    88#include "unitvector.h"
     9#include "anydataobj.h"
    910
    10 static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.h,v 1.3 1999-11-05 13:10:10 ansari Exp $";
     11static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.h,v 1.4 2000-01-04 14:27:11 ansari Exp $";
    1112
    1213namespace SOPHYA {
     
    1718};
    1819
    19 // We make this class a PPersist class, in order
    20 // to be able to implement easily the persistence
    21 // for pixelmaps
    22 // To be changed later ($CHECK$  Reza 26/10/99)
    2320 
    24 class SphereCoordSys : public PPersist {
     21class SphereCoordSys : public  AnyDataObj {
    2522public:
    2623 
    27                  SphereCoordSys();
     24  SphereCoordSys();
     25  SphereCoordSys(const SphereCoordSys& a);
    2826                 SphereCoordSys(int id, const string& description);
    2927  virtual        ~SphereCoordSys();
     
    3129  virtual int    Id() const {return id_; }
    3230  virtual string description() const {return description_; }
     31  SphereCoordSys& operator = (const SphereCoordSys& a);
    3332
    34     // METHODS FOR PERSISTENCE TO FOLLOW:
    35 protected:
    36   virtual void       ReadSelf(PInPersist&);
    37   virtual void       WriteSelf(POutPersist&) const;
    3833
    3934private:
    4035  int id_;
    4136  string description_;
     37};
     38
     39// Classe pour la gestion de persistance
     40
     41class FIO_SphereCoordSys : public  PPersist  {
     42public:
     43  FIO_SphereCoordSys();
     44  FIO_SphereCoordSys(string const & filename);
     45  FIO_SphereCoordSys(const SphereCoordSys & obj);
     46  FIO_SphereCoordSys(SphereCoordSys * obj);
     47  virtual ~FIO_SphereCoordSys();
     48  virtual AnyDataObj* DataObj();
     49  inline operator SphereCoordSys() { return(*dobj); }
     50protected :
     51  virtual void       ReadSelf(PInPersist&);
     52  virtual void       WriteSelf(POutPersist&) const; 
     53  SphereCoordSys * dobj;
     54  bool ownobj;
    4255};
    4356
Note: See TracChangeset for help on using the changeset viewer.