Changeset 278 in Sophya for trunk/SophyaLib/NTools/dvlist.h
- Timestamp:
- Apr 28, 1999, 3:36:50 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/dvlist.h
r220 r278 6 6 #define DVLIST_H_SEEN 7 7 8 #include " ppersist.h"8 #include "objfio.h" 9 9 10 10 #include <stdio.h> … … 21 21 #include <map.h> 22 22 #endif 23 24 namespace PlanckDPC { 23 25 24 26 // Classe utilitaire pour manipuler des variables typees … … 66 68 // Classe liste de variables Dynamic Variable List 67 69 68 class DVList : public PPersist{70 class DVList : public AnyDataObj { 69 71 public: 70 enum {classId = ClassId_DVList };72 // enum {classId = ClassId_DVList }; 71 73 72 74 DVList(); … … 97 99 inline void Print() const { Print(cout); } 98 100 virtual void Print(ostream& os) const; 101 102 typedef map<string, MuTyV, less<string> > ValList; 103 inline ValList::const_iterator Begin() { return(mvlist.begin()); } 104 inline ValList::const_iterator End() { return(mvlist.end()); } 99 105 100 int_4 ClassId() const { return classId; }101 static PPersist* Create() { return new DVList;}106 // int_4 ClassId() const { return classId; } 107 // static PPersist* Create() { return new DVList;} 102 108 103 virtual void WriteSelf(POutPersist&) const;104 virtual void ReadSelf(PInPersist&);109 // virtual void WriteSelf(POutPersist&) const; 110 // virtual void ReadSelf(PInPersist&); 105 111 106 112 private: 107 typedef map<string, MuTyV, less<string> > ValList;108 113 109 114 ValList mvlist; … … 114 119 { dvl.Print(s); return(s); } 115 120 121 inline POutPersist& operator << (POutPersist& os, DVList & obj) 122 { ObjFileIO<DVList> fio(&obj); fio.Write(os); return(os); } 123 inline PInPersist& operator >> (PInPersist& is, DVList & obj) 124 { ObjFileIO<DVList> fio(&obj); fio.Read(is); return(is); } 125 126 // Classe pour la gestion de persistance 127 // ObjFileIO<DVList> 128 129 } // namespace PlanckDPC 130 116 131 #endif /* DVLIST_H__SEEN */ 117 132
Note:
See TracChangeset
for help on using the changeset viewer.