Changeset 972 for trunk/src/STFit.cpp
- Timestamp:
- 04/03/06 15:07:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFit.cpp
r960 r972 84 84 { 85 85 uInt rno = table_.nrow(); 86 uInt resultid ;86 uInt resultid = 0; 87 87 bool foundentry = false; 88 // replace 88 89 if ( id > -1 ) { 89 90 Table t = table_(table_.col("ID") == id ); … … 94 95 } 95 96 } 97 // doesn't exist 96 98 if ( rno > 0 && !foundentry ) { 97 99 idCol_.get(rno-1, resultid); 98 100 resultid++; 99 101 } 100 if ( !foundentry )table_.addRow(); 101 102 // add new row if new id 103 if ( !foundentry ) table_.addRow(); 104 cout << rno << " " << resultid << endl; 102 105 funcCol_.put(rno, mathutil::toVectorString(fit.getFunctions())); 103 106 compCol_.put(rno, Vector<Int>(fit.getComponents())); … … 109 112 } 110 113 111 void STFit::getEntry( STFitEntry& fit, uInt id ) 114 void STFit::getEntry( STFitEntry& fit, uInt id ) const 112 115 { 113 116 Table t = table_(table_.col("ID") == Int(id) );
Note: See TracChangeset
for help on using the changeset viewer.