Ignore:
Timestamp:
Dec 7, 2003, 12:56:36 AM (22 years ago)
Author:
ansari
Message:

Suite et presque fin de l'extension des fonctionalites de la persistence PPF - fonctionalite pour le swap en particulier - Reza 7 Dec 2003

File:
1 edited

Legend:

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

    r2476 r2477  
    5555  };
    5656 
    57   PPFBinaryIOStream() { }
    58   virtual ~PPFBinaryIOStream() { }
    59   int    Version() {return version;}  // PIn/OutPersist version number
    60  
     57  PPFBinaryIOStream();
     58  virtual ~PPFBinaryIOStream();
     59
     60  inline int    Version() {return version;}  // PIn/OutPersist version number
     61  inline time_t CreationDate() { return creationdate; }
     62  string        CreationDateStr();
     63  string        InfoString();
     64
     65  inline int_8  NbPosTags() {return _nbpostag; }
     66  inline int_8  NbNameTags() {return tags.size(); }
     67  inline int_8  NbObjects() {return _nbobjs; }
     68  inline int_8  NbTopLevelObjects() {return _nbtlobjs; }
     69
     70  string GetTagName(int itag);  // 0..NbTags-1
     71  vector<string> const &  GetNameTags(); 
     72
    6173protected:
    62  
     74  // La liste des NameTag ds le flot 
    6375  map<string, int_8> tags;
    6476  int version;     // PPersist(In/Out) version
     77  time_t creationdate;   // Date de creation du fichier
     78
     79  // Variables pour garder le compte des objets et des tags
     80  // Le nombre d'objets a l'ecriture est mis a jour par la classe
     81  // derivee POutPersist
     82  int_8 _nbpostag;     // Nb de tag de positionnement
     83  int_8 _nbobjs;       // Nb total d'objets
     84  int_8 _nbtlobjs;     // Nb d'objets de niveau 1
    6585};
    6686 
     
    7898  bool   GotoPositionTag(int_8 pos);
    7999  bool   GotoNameTag(string const& name);
    80   int    NbNameTags();
    81100  bool   GotoNameTagNum(int itag);  // 0..NbTags-1
    82   string GetTagName(int itag);  // 0..NbTags-1
    83   vector<string> const &  GetNameTags(); 
    84101 
    85102  // Saut jusqu'au prochain objet
     
    154171  void    GetPosTagTable(vector<int_8>&);
    155172 
    156   time_t CreationDate() { return creationdate; }
    157   string CreationDateStr();
    158  
    159173  void   AnalyseTags(int lev=0);   // List (all or some) tags ...
    160174 
     
    164178  void   ReadNameTagTable();
    165179
    166   void   SkipItem(bool fgrdi, char itag);
     180  void   SkipItem(bool fgrdi=true, unsigned char itag=0);
    167181
    168182  void   CheckTag   (short datasz, short datatype);
     
    181195 
    182196  bool bigEndian;
    183   time_t creationdate;
    184197  // Si on a fait une lecture non sequentielle  -> seqread = false
    185198  bool seqread;
     
    281294
    282295  bool bigEndian;
    283 
    284296};
    285297 
Note: See TracChangeset for help on using the changeset viewer.