- Timestamp:
- 08/25/11 11:06:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsdump.cc
r11911 r11912 576 576 out << "## --------------------------------------------------------------------------\n"; 577 577 out << "#\n"; 578 for (vector<string>::const_iterator it=listNamesOnly.begin(); it!=listNamesOnly.end(); it++) 578 //vector<pair<int, int> >::const_iterator rangesIt = ranges.begin(); 579 //the above is soooo yesterday ;) let's try the new auto feature of c++0x 580 auto rangesIt = ranges.begin(); 581 for (vector<string>::const_iterator it=listNamesOnly.begin(); it!=listNamesOnly.end(); it++, rangesIt++) 579 582 { 580 583 const MyColumn *col = static_cast<MyColumn*>(fTable->column()[*it]); 581 out << "# " << col->name() << "[" << col->width() << "]: " << col->unit(); 584 if (rangesIt->first != 0 || rangesIt->second != col->width()) 585 { 586 out << "#"; 587 for (int i=rangesIt->first; i<rangesIt->second; i++) 588 out << " " << col->name() << "[" << i << "]"; 589 out << ": " << col->unit(); 590 } 591 else 592 out << "# " << col->name() << "[" << col->width() << "]: " << col->unit(); 593 582 594 if (!col->comment().empty()) 583 595 out << " (" <<col->comment() << ")";
Note:
See TracChangeset
for help on using the changeset viewer.