Ignore:
Timestamp:
Apr 7, 2005, 11:49:11 AM (20 years ago)
Author:
ansari
Message:

1/ Ajout de la classe PPFWrapperSTLVector<T> pour gestion de persistence
PPF des vecteurs de STL (fichier ppfwrapstlv.h)
2/ Ajout de la classe SegDataBlock<T> (et l'interface SegDBInterface<T>)
pour la gestion de blocs de donnees segmentes (segdatablock.h) et son
gestionnaire PPF FIO_SegDataBlock<T> (fichier fiosegdb.h )
3/ Ajout de la classe SwSegDataBlock<T> (Data bloc segmente avec gestion
de swap) et la classe swapper PPF PPFDataSwapper<T> (fichiers
ppfswapper.h et swsegdb.h)
4/ Ajout de la classes utilitaire PPF_TPointer_IO<T> (fichier
ppftpointer.h)
5/ Enregistrement des classes handler PPF ds sophyainit.cc
6/ Amelioration de l'impression ds AnalyseTags (ppfbinstream.cc)
7/ MAJ Makefile et objlist.list (ajout de TimeStamp.cc en particulier)

Reza , 7 Avril 2005

File:
1 edited

Legend:

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

    r2615 r2660  
    10071007  char * buff;
    10081008  string str;
    1009  
     1009  // Pour indenter lors de l'impression
     1010  #define _MXINDENT_ 10
     1011  char * indents[_MXINDENT_+1] = {"","  ", "    ", "      ", "        ", "          ",
     1012                                    "            ", "              ", "                ",
     1013                                    "                  ", "                    "};
     1014  int idxindent = 0;
     1015  int idxind = 0;
    10101016  cout << "\n ---------------------------------------------------------- " << endl;
    10111017  cout << " PPFBinaryInputStream::AnalyseTags(Level= " << lev << ")" << endl;
     
    10411047
    10421048      case PPS_NULL :
    1043         if (lev > 1)  cout << "<PPS_NULL> tag at position " << hex << cpos << dec << endl;
     1049        if (lev > 1)  cout << indents[idxindent]
     1050                           << "<PPS_NULL> tag at position " << hex << cpos << dec << endl;
    10441051        break;
    10451052
    10461053      case PPS_STRING :
    10471054        GetRawI4(i4);
    1048         if (lev > 1)  cout << "<PPS_STRING> tag at position " << hex << cpos << dec
     1055        if (lev > 1)  cout << indents[idxindent]
     1056                           << "<PPS_STRING> tag at position " << hex << cpos << dec
    10491057                           << " Length=" << i4 << endl;
    10501058        s->seekg(i4,ios::cur);
     
    10541062        GetRawU8(cid);
    10551063        GetRawU8(oid);
    1056         cout << "<PPS_OBJECT> tag at position " << hex << cpos << " ClassId= " << cid
     1064        cout << indents[idxindent]
     1065             << "<PPS_OBJECT> tag at position " << hex << cpos << " ClassId= " << cid
    10571066             << "  ObjectId= " << oid << dec << endl;
     1067        idxind++;
     1068        idxindent = (idxind <= _MXINDENT_) ? idxind : _MXINDENT_;
    10581069        break;
    10591070
     
    10611072        GetRawU8(oid);
    10621073        GetRawI8(i8);
    1063         cout << "<PPS_REFERENCE> tag at position " << hex << cpos << "  ObjectId= "
     1074        cout << indents[idxindent]
     1075             << "<PPS_REFERENCE> tag at position " << hex << cpos << "  ObjectId= "
    10641076             << oid << "  OrigPos=" << i8 << dec << endl;
    10651077        break;
    10661078
    10671079      case PPS_NAMETAG_MARK :
    1068         cout << "<PPS_NAMETAG_MARK> tag at position " << hex << cpos << dec << endl;
     1080        cout << indents[idxindent]
     1081             << "<PPS_NAMETAG_MARK> tag at position " << hex << cpos << dec << endl;
    10691082        break;
    10701083
    10711084      case PPS_POSTAG_MARK :
    10721085        GetRawI8(i8);   
    1073         cout << "<PPS_POSTAG_MARK> tag at position " << hex << cpos
     1086        cout << indents[idxindent]
     1087             << "<PPS_POSTAG_MARK> tag at position " << hex << cpos
    10741088             << " TPos=" << i8 << dec << endl;
    10751089        break;
     
    10771091      case PPS_ENDOBJECT :
    10781092        GetRawU8(oid);
    1079         cout << "<PPS_ENDOBJECT> tag at position " << hex << cpos << "  ObjectId= "
     1093        cout << indents[idxindent]
     1094             << "<PPS_ENDOBJECT> tag at position " << hex << cpos << "  ObjectId= "
    10801095             << oid << dec << endl;
     1096        idxind--;
     1097        idxindent = (idxind >= 0) ? idxind : 0;
    10811098        break;
    10821099
     
    10841101        GetRawI4(i4);
    10851102        for(int kkt=0; kkt<i4; kkt++)  GetRawI8(i8);   
    1086         cout << "<PPS_POSTAG_TABLE> tag at position " << hex << cpos << dec << endl;
     1103        cout << indents[idxindent]
     1104             << "<PPS_POSTAG_TABLE> tag at position " << hex << cpos << dec << endl;
    10871105        break;
    10881106
     
    10951113          buff[i4] = '\0';  str = buff;
    10961114          delete[] buff;
    1097           cout << "<PPS_NAMETAG_TABLE> tag at position " << hex << cpos << dec
     1115          cout << indents[idxindent]
     1116               << "<PPS_NAMETAG_TABLE> tag at position " << hex << cpos << dec
    10981117               << " Name= " << str << endl;
    10991118        }
    11001119        else {
    1101           cout << "<PPS_NAMETAG_TABLE> tag at position " << hex << cpos << dec << endl;
     1120          cout << indents[idxindent]
     1121               << "<PPS_NAMETAG_TABLE> tag at position " << hex << cpos << dec << endl;
    11021122          int_8 stats[8];
    11031123          GetI8s(stats,8);
     
    11171137      case PPS_EOF :
    11181138        if (Version() < 3) GetRawI8(i8);       
    1119         cout << "<PPS_EOF> tag at position " << hex << cpos 
     1139        cout << indents[idxindent]
     1140             << "<PPS_EOF> tag at position " << hex << cpos 
    11201141             << " TagPos=" << i8 << dec << endl;
    11211142        eofok = true;
     
    11481169
    11491170      case PPS_SIMPLE :
    1150         if (lev > 2)  cout << "<PPS_SIMPLE> tag at position " << hex << cpos << dec
     1171        if (lev > 2)  cout << indents[idxindent]
     1172                           << "<PPS_SIMPLE> tag at position " << hex << cpos << dec
    11511173                           << " DataType=" << dtype << endl;
    11521174        s->seekg(dsizeskip, ios::cur);
     
    11551177      case PPS_SIMPLE_ARRAY4 :
    11561178        GetRawI4(i4);
    1157         if (lev > 0)  cout << "<PPS_SIMPLE_ARRAY4> tag at position " << hex << cpos << dec
     1179        if (lev > 0)  cout << indents[idxindent]
     1180                           << "<PPS_SIMPLE_ARRAY4> tag at position " << hex << cpos << dec
    11581181                           << " DataType=" << dtype << " NElts= " << i4 << endl;
    11591182        s->seekg(dsizeskip*(int_8)i4, ios::cur);
     
    11621185      case PPS_SIMPLE_ARRAY8 :
    11631186        GetRawU8(ui8);
    1164         if (lev > 0)  cout << "<PPS_SIMPLE_ARRAY8> tag at position " << hex << cpos << dec
     1187        if (lev > 0)  cout << indents[idxindent]
     1188                           << "<PPS_SIMPLE_ARRAY8> tag at position " << hex << cpos << dec
    11651189                           << " DataType=" << dtype << " NElts= " << ui8 << endl;
    11661190        s->seekg(dsizeskip*ui8, ios::cur);
Note: See TracChangeset for help on using the changeset viewer.