Changeset 701 in Sophya for trunk/SophyaLib/Samba/spherepos.h
- Timestamp:
- Jan 4, 2000, 3:27:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spherepos.h
r552 r701 7 7 #include <string> 8 8 #include "unitvector.h" 9 #include "anydataobj.h" 9 10 10 static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.h,v 1. 3 1999-11-05 13:10:10ansari Exp $";11 static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/Samba/spherepos.h,v 1.4 2000-01-04 14:27:11 ansari Exp $"; 11 12 12 13 namespace SOPHYA { … … 17 18 }; 18 19 19 // We make this class a PPersist class, in order20 // to be able to implement easily the persistence21 // for pixelmaps22 // To be changed later ($CHECK$ Reza 26/10/99)23 20 24 class SphereCoordSys : public PPersist{21 class SphereCoordSys : public AnyDataObj { 25 22 public: 26 23 27 SphereCoordSys(); 24 SphereCoordSys(); 25 SphereCoordSys(const SphereCoordSys& a); 28 26 SphereCoordSys(int id, const string& description); 29 27 virtual ~SphereCoordSys(); … … 31 29 virtual int Id() const {return id_; } 32 30 virtual string description() const {return description_; } 31 SphereCoordSys& operator = (const SphereCoordSys& a); 33 32 34 // METHODS FOR PERSISTENCE TO FOLLOW:35 protected:36 virtual void ReadSelf(PInPersist&);37 virtual void WriteSelf(POutPersist&) const;38 33 39 34 private: 40 35 int id_; 41 36 string description_; 37 }; 38 39 // Classe pour la gestion de persistance 40 41 class FIO_SphereCoordSys : public PPersist { 42 public: 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); } 50 protected : 51 virtual void ReadSelf(PInPersist&); 52 virtual void WriteSelf(POutPersist&) const; 53 SphereCoordSys * dobj; 54 bool ownobj; 42 55 }; 43 56
Note:
See TracChangeset
for help on using the changeset viewer.