Changeset 2477 in Sophya for trunk/SophyaLib/BaseTools/ppersist.cc
- Timestamp:
- Dec 7, 2003, 12:56:36 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/ppersist.cc
r2476 r2477 560 560 // ou PPersist::PPS_BIG_ENDIAN. 561 561 //-- 562 POutPersist::POutPersist(RawInOutStream* os, bool ad, int endianness) 563 : PPFBinaryOutputStream(os, ad, endianness) 564 { 565 pps_OId = 0; 566 wobj_level = 0; 567 } 568 562 569 POutPersist::POutPersist(string const& flnm, int endianness) 563 570 : PPFBinaryOutputStream(flnm, endianness) … … 565 572 // PPS (POutPersist stream) Object Id initialisation 566 573 pps_OId = 0; 574 wobj_level = 0; 567 575 } 568 576 … … 599 607 uint_8 oid = assignObjectId(obj); // We assing a PPS Object Id 600 608 PutRawUByte(PPS_OBJECT); // We write the Object Tag 609 wobj_level++; // Niveau d'imbrication d'ecriture d'objets 601 610 PutRawU8(getPPClassId(*obj)); // Writing the PPersist ClassId 602 611 PutRawU8(oid); // Write the PPS Object Id 603 612 obj->WriteSelf(*this); 613 // Comptage d'objets ecrits 614 _nbobjs++; 615 if (wobj_level == 1) _nbtlobjs++; 616 wobj_level--; 604 617 PutRawUByte(PPS_ENDOBJECT); // We write the End-Of-Object Tag 605 618 PutRawU8(oid); // and again its PPS Object Id
Note:
See TracChangeset
for help on using the changeset viewer.