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/ppersist.cc

    r2476 r2477  
    560560//      ou PPersist::PPS_BIG_ENDIAN.
    561561//--
     562POutPersist::POutPersist(RawInOutStream* os, bool ad, int endianness)
     563  : PPFBinaryOutputStream(os, ad, endianness)
     564{
     565  pps_OId = 0;
     566  wobj_level = 0;
     567}
     568
    562569POutPersist::POutPersist(string const& flnm, int endianness)
    563570  : PPFBinaryOutputStream(flnm, endianness)
     
    565572  // PPS (POutPersist stream) Object Id initialisation
    566573  pps_OId = 0;
     574  wobj_level = 0;
    567575}
    568576
     
    599607  uint_8 oid = assignObjectId(obj);       // We assing a PPS Object Id
    600608  PutRawUByte(PPS_OBJECT);         // We write the Object Tag
     609  wobj_level++;  // Niveau d'imbrication d'ecriture d'objets
    601610  PutRawU8(getPPClassId(*obj));    // Writing the PPersist ClassId
    602611  PutRawU8(oid);                   // Write the PPS Object Id
    603612  obj->WriteSelf(*this);
     613  //  Comptage d'objets ecrits
     614  _nbobjs++;
     615  if (wobj_level == 1) _nbtlobjs++;
     616  wobj_level--; 
    604617  PutRawUByte(PPS_ENDOBJECT);      // We write the End-Of-Object Tag
    605618  PutRawU8(oid);                   // and again its PPS Object Id
Note: See TracChangeset for help on using the changeset viewer.