Changeset 2459 in Sophya for trunk/SophyaLib/BaseTools/ppersist.h


Ignore:
Timestamp:
Nov 22, 2003, 6:45:23 PM (22 years ago)
Author:
ansari
Message:

Suite modifications PPersist - en particulier, utilisation des RawInOutStream - Reza 22 Nov 2003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ppersist.h

    r2441 r2459  
    1313#include "pexceptions.h"
    1414#include "gnumd5.h"
     15#include "rawstream.h"
    1516
    1617
     
    3940  public:
    4041    virtual           ~PPersist() {}
    41 // J'ajoute cette fonction pour assurer la compatibilite
    42 // avec l'ancien PPersist d'Eros     (Reza 23/04/99)
    43     virtual int_4      ClassId() const { return(0); }
    4442
    4543    void               Write(string const& fn) const;
     
    116114          PPS_NAMETAG_MARK = 7,     // To have a name tag, position marker in a file
    117115          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)
    119117          PPS_SIMPLE = 16,          // 16 + number of bytes, up to 8 bytes
    120118          PPS_SIMPLE_ARRAY4 = 32,   // 32 + number of bytes, up to 8 bytes, then 4 bytes of length
     
    146144    bool   GotoPositionTag(int_8 pos);
    147145    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
    151148    string GetTagName(int itag);  // 0..NbTags-1
    152149    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();
    154154
    155155    // Lecture donnees de base et tableaux de donnees de base
     
    247247    void   Scan();
    248248
    249     istream* s;
     249    RawInOutStream* s;
    250250
    251251    bool bigEndian;
     
    342342
    343343  protected:
    344     ostream* s;
     344    RawInOutStream* s;
    345345    bool bigEndian;
    346346
Note: See TracChangeset for help on using the changeset viewer.