Changeset 2459 in Sophya for trunk/SophyaLib/BaseTools/ppersist.h
- Timestamp:
- Nov 22, 2003, 6:45:23 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.h
r2441 r2459 13 13 #include "pexceptions.h" 14 14 #include "gnumd5.h" 15 #include "rawstream.h" 15 16 16 17 … … 39 40 public: 40 41 virtual ~PPersist() {} 41 // J'ajoute cette fonction pour assurer la compatibilite42 // avec l'ancien PPersist d'Eros (Reza 23/04/99)43 virtual int_4 ClassId() const { return(0); }44 42 45 43 void Write(string const& fn) const; … … 116 114 PPS_NAMETAG_MARK = 7, // To have a name tag, position marker in a file 117 115 PPS_POSTAG_MARK = 8, // Position tag mark + 8 bytes (=stream position) 118 PPS_POSTAG_TABLE = 40,// Position tag table + 8 bytes (=stream position)116 PPS_POSTAG_TABLE = 9, // Position tag table + 8 bytes (=stream position) 119 117 PPS_SIMPLE = 16, // 16 + number of bytes, up to 8 bytes 120 118 PPS_SIMPLE_ARRAY4 = 32, // 32 + number of bytes, up to 8 bytes, then 4 bytes of length … … 146 144 bool GotoPositionTag(int_8 pos); 147 145 bool GotoNameTag(string const& name); 148 inline bool GotoTag(string const& name) { return GotoNameTag(name); } 149 int NbTags(); 150 bool GotoTagNum(int itag); // 0..NbTags-1 146 int NbNameTags(); 147 bool GotoNameTagNum(int itag); // 0..NbTags-1 151 148 string GetTagName(int itag); // 0..NbTags-1 152 149 string GetTagClassName(int itag); // 0..NbTags-1 153 vector<string> const & GetTagNames(); 150 vector<string> const & GetNameTags(); 151 152 // Saut jusqu'au prochain objet 153 bool SkipToNextObject(); 154 154 155 155 // Lecture donnees de base et tableaux de donnees de base … … 247 247 void Scan(); 248 248 249 istream* s;249 RawInOutStream* s; 250 250 251 251 bool bigEndian; … … 342 342 343 343 protected: 344 ostream* s;344 RawInOutStream* s; 345 345 bool bigEndian; 346 346
Note:
See TracChangeset
for help on using the changeset viewer.