Changeset 12519 for issm/trunk-jpl/src/c/objects/KML
- Timestamp:
- 06/22/12 17:27:12 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/objects/KML
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/KML/KMLFileReadUtils.cpp
r12515 r12519 127 127 128 128 // if (itag) 129 // if(true)_pprintLine_("tag buffer (length=" << ibuf << "):");129 // _pprintLine_("tag buffer (length=" << ibuf << "):"); 130 130 // else if (ifield) 131 // if(true)_pprintLine_("field buffer (length=" << ibuf << "):");132 // if(true)_pprintLine_("" << buffer);131 // _pprintLine_("field buffer (length=" << ibuf << "):"); 132 // _pprintLine_("" << buffer); 133 133 134 134 if (!ibuf) … … 193 193 } 194 194 195 // if(true)_pprintLine_("comment buffer (length=" << ibuf << "):");196 // if(true)_pprintLine_("" << buffer);195 // _pprintLine_("comment buffer (length=" << ibuf << "):"); 196 // _pprintLine_("" << buffer); 197 197 198 198 if (!ibuf) … … 254 254 255 255 ktokn=strtok(ktagi,"< >"); 256 // if(true)_pprintLine_("KMLFileTagName -- initial token=\"" << ktokn << "\".");256 // _pprintLine_("KMLFileTagName -- initial token=\"" << ktokn << "\"."); 257 257 258 258 if (!pname) { … … 264 264 265 265 if (maxlen && (maxlen < strlen(ktokn))) { 266 if(true)_pprintLine_("KMLFileTagName -- string field too short for " << ktag << ".");267 if(true)_pprintLine_("KMLFileTagName -- \"" << ktokn << "\" truncated to " << maxlen << " characters.");266 _pprintLine_("KMLFileTagName -- string field too short for " << ktag << "."); 267 _pprintLine_("KMLFileTagName -- \"" << ktokn << "\" truncated to " << maxlen << " characters."); 268 268 strncpy(pname,ktokn,maxlen); 269 269 } … … 300 300 /* return first non blank and move past subsequent blank */ 301 301 ktokn=strtok(ktagi," "); 302 // if(true)_pprintLine_("KMLFileTagAttrib -- initial token=\"" << ktokn << "\".");302 // _pprintLine_("KMLFileTagAttrib -- initial token=\"" << ktokn << "\"."); 303 303 304 304 /* return next non " =?/>" and move past subsequent " =?/>" */ … … 307 307 /* return next non quote and move past subsequent quote */ 308 308 ktokv=strtok(NULL,quote); 309 // if(true)_pprintLine_("KMLFileTagAttrib -- attribute " << ktokn << "=\"" << ktokv << "\".");309 // _pprintLine_("KMLFileTagAttrib -- attribute " << ktokn << "=\"" << ktokv << "\"."); 310 310 311 311 /* add the attribute to the dataset */ … … 323 323 (!strncmp(&ktag[0],"<" ,1) && !strncmp(&ktag[strlen(ktag)-2],"/>",2))) 324 324 isolo=1; 325 // if(true)_pprintLine_("KMLFileTagAttrib -- isolo=" << isolo << ".");325 // _pprintLine_("KMLFileTagAttrib -- isolo=" << isolo << "."); 326 326 327 327 return(isolo); … … 357 357 xfree((void**)&kstr); 358 358 359 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pival << ".");359 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pival << "."); 360 360 361 361 return(0); … … 391 391 xfree((void**)&kstr); 392 392 393 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=" << (*pbval ? "true" : "false") << ".");393 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << (*pbval ? "true" : "false") << "."); 394 394 395 395 return(0); … … 428 428 429 429 if (maxlen && (maxlen < strlen(kstr))) { 430 if(true)_pprintLine_("KMLFileTokenParse -- string field too short for " << ktag << ".");431 if(true)_pprintLine_("KMLFileTokenParse -- \"" << kstr << "\" truncated to " << maxlen << " characters.");430 _pprintLine_("KMLFileTokenParse -- string field too short for " << ktag << "."); 431 _pprintLine_("KMLFileTokenParse -- \"" << kstr << "\" truncated to " << maxlen << " characters."); 432 432 strncpy(pstr,kstr,maxlen); 433 433 } … … 452 452 xfree((void**)&kstr); 453 453 454 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=\"" << pstr << "\".");454 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=\"" << pstr << "\"."); 455 455 456 456 return(pstr); … … 486 486 xfree((void**)&kstr); 487 487 488 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pfval << ".");488 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pfval << "."); 489 489 490 490 return(0); … … 520 520 xfree((void**)&kstr); 521 521 522 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pdval << ".");522 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=" << *pdval << "."); 523 523 524 524 return(0); … … 578 578 xfree((void**)&kstr); 579 579 580 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=...");580 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=..."); 581 581 // for (j=0; j<=i; j++) 582 // if(true)_pprintLine_(" [" << j << "]: " << (*pdval)[j] << "g");582 // _pprintLine_(" [" << j << "]: " << (*pdval)[j] << "g"); 583 583 584 584 return(0); … … 631 631 632 632 if (j != 2) 633 if(true)_pprintLine_("KMLFileTokenParse -- Double [m x 3] field for " << ktag << " does not have multiple of 3 values.");633 _pprintLine_("KMLFileTokenParse -- Double [m x 3] field for " << ktag << " does not have multiple of 3 values."); 634 634 635 635 /* get additional token and compare to closing tag */ … … 645 645 xfree((void**)&kstr); 646 646 647 // if(true)_pprintLine_("KMLFileTokenParse -- " << ktag << "=...");647 // _pprintLine_("KMLFileTokenParse -- " << ktag << "=..."); 648 648 // for (j=0; j<=i; j++) 649 // if(true)_pprintLine_(" [" << j << "][0-2]: " << (*pdval3)[j][0] << "g," << (*pdval3)[j][1] << "g," << (*pdval3)[j][2] << "g");649 // _pprintLine_(" [" << j << "][0-2]: " << (*pdval3)[j][0] << "g," << (*pdval3)[j][1] << "g," << (*pdval3)[j][2] << "g"); 650 650 651 651 return(0); … … 661 661 opening tag, must find corresponding closing tag */ 662 662 663 if(true)_pprintLine_("KMLFileTagSkip -- input tag " << ktag << ".");663 _pprintLine_("KMLFileTagSkip -- input tag " << ktag << "."); 664 664 665 665 /* if next token is a closing tag, compare to input */ … … 670 670 (kstr[1] == '/') && 671 671 (!strncmp(&(kstr[2]),&(ktag[1]),(strcspn(ktag," >")-1)/sizeof(char)))) { 672 if(true)_pprintLine_("KMLFileTagSkip -- closing tag " << kstr << ".");672 _pprintLine_("KMLFileTagSkip -- closing tag " << kstr << "."); 673 673 xfree((void**)&kstr); 674 674 return(0); … … 679 679 else if ((kstr[0] == '<') && 680 680 (kstr[1] != '/')) { 681 if(true)_pprintLine_("KMLFileTagSkip -- opening tag " << kstr << ".");681 _pprintLine_("KMLFileTagSkip -- opening tag " << kstr << "."); 682 682 KMLFileTagSkip(kstr, 683 683 fid); -
issm/trunk-jpl/src/c/objects/KML/KML_Object.cpp
r12515 r12519 253 253 254 254 else if (!strncmp(kstr,"<",1)) { 255 if(true)_pprintLine_("KML_Object::Read -- Unrecognized opening tag " << kstr << ".");255 _pprintLine_("KML_Object::Read -- Unrecognized opening tag " << kstr << "."); 256 256 // KMLFileTagSkip(kstr, 257 257 // fid); -
issm/trunk-jpl/src/c/objects/KML/KML_Unknown.cpp
r12515 r12519 139 139 name=KMLFileTagName(NULL, 140 140 kstr); 141 // if(true)_pprintLine_("KML_Unknown::Read -- opening name=" << name << ".");141 // _pprintLine_("KML_Unknown::Read -- opening name=" << name << "."); 142 142 143 143 /* get object attributes and check for solo tag */ … … 151 151 while (kstri=KMLFileToken(fid, 152 152 &ncom,&pcom)) { 153 // if(true)_pprintLine_("KML_Unknown::Read -- kstri=" << kstri << ".");153 // _pprintLine_("KML_Unknown::Read -- kstri=" << kstri << "."); 154 154 if (!strncmp(&kstri[0],"</", 2) && 155 155 !strncmp(&kstri[2],name,strlen(name))) { 156 // if(true)_pprintLine_("KML_Unknown::Read -- closing name=" << name << ".");156 // _pprintLine_("KML_Unknown::Read -- closing name=" << name << "."); 157 157 xfree((void**)&kstri); 158 158 break;
Note:
See TracChangeset
for help on using the changeset viewer.