- Timestamp:
- 04/07/11 08:42:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Converter.cc
r10289 r10293 48 48 strict argument in the constructor. 49 49 50 @remark Note that all values are interpreted as signed, except the single 51 char (e.g. C:5) 52 50 53 */ 51 54 // ************************************************************************** … … 528 531 switch (i->first.first->name()[0]) 529 532 { 530 case 'c': // Skip whitespaces when checking for characters531 if (j>0)532 line >> noskipws;533 GetBinImp(data, Get<char>(line));534 line >> skipws;535 break;536 533 case 'b': GetBinImp(data, GetBool(line)); break; 537 534 case 's': GetBinImp(data, Get<short> (line)); break; … … 541 538 case 'd': GetBinImp(data, Get<double> (line)); break; 542 539 case 'x': GetBinImp(data, Get<long long>(line)); break; 540 case 'c': 541 if (line.peek()==-1) 542 { 543 line.clear(ios::failbit|ios::eofbit); 544 break; 545 } 546 GetBinImp(data, Get<unsigned char>(line)); 547 if (line.peek()==-1) 548 line.clear(ios::eofbit); 549 break; 543 550 case 'N': 544 551 GetBinString(data, GetString(line)); … … 554 561 } 555 562 556 //wout << "{" << line.eof() << line.good() << line.fail() << "}";557 563 if (!line) 558 564 break;
Note:
See TracChangeset
for help on using the changeset viewer.