Changeset 17274 for trunk/Mars/mcore/factfits.h
- Timestamp:
- 10/20/13 17:28:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/factfits.h
r17264 r17274 135 135 if (calib.bad()) 136 136 { 137 clear(rdstate()| ios::badbit);137 clear(rdstate()|std::ios::badbit); 138 138 return; 139 139 } … … 145 145 if (calib.GetNumRows() != 1) 146 146 { 147 clear(rdstate()| ios::badbit);148 #ifdef __EXCEPTIONS 149 throw runtime_error("Table 'ZDrsCellOffsets' found, but not with one row as expected");147 clear(rdstate()|std::ios::badbit); 148 #ifdef __EXCEPTIONS 149 throw std::runtime_error("Table 'ZDrsCellOffsets' found, but not with one row as expected"); 150 150 #else 151 151 gLog << ___err___ << "ERROR - Table 'ZDrsCellOffsets' found, but not with one row as expected" << endl; … … 155 155 if (calib.GetStr("TTYPE1") != "OffsetCalibration") 156 156 { 157 clear(rdstate()| ios::badbit);158 #ifdef __EXCEPTIONS 159 throw runtime_error("Table 'DrsCalib' found, but first column is not the one expected");157 clear(rdstate()|std::ios::badbit); 158 #ifdef __EXCEPTIONS 159 throw std::runtime_error("Table 'DrsCalib' found, but first column is not the one expected"); 160 160 #else 161 161 gLog << ___err___ << "ERROR - Table 'DrsCalib' found, but first column is not the one expected" << endl; … … 165 165 if (calib.GetStr("TFORM1") != "1474560I") // 1024*1440 166 166 { 167 clear(rdstate()| ios::badbit);168 #ifdef __EXCEPTIONS 169 throw runtime_error("Table 'DrsCalib' has wrong column format (TFROM1)");167 clear(rdstate()|std::ios::badbit); 168 #ifdef __EXCEPTIONS 169 throw std::runtime_error("Table 'DrsCalib' has wrong column format (TFROM1)"); 170 170 #else 171 171 gLog << ___err___ << "ERROR - Table 'DrsCalib' has wrong column format (TFORM1)" << endl; … … 180 180 return; 181 181 182 clear(rdstate()| ios::badbit);183 184 #ifdef __EXCEPTIONS 185 throw runtime_error("Reading column 'OffsetCalibration' failed.");182 clear(rdstate()|std::ios::badbit); 183 184 #ifdef __EXCEPTIONS 185 throw std::runtime_error("Reading column 'OffsetCalibration' failed."); 186 186 #else 187 187 gLog << ___err___ << "ERROR - Reading column 'OffsetCalibration' failed." << endl; … … 190 190 } 191 191 192 vector<int16_t> fOffsetCalibration; ///< integer values of the drs calibration used for compression192 std::vector<int16_t> fOffsetCalibration; ///< integer values of the drs calibration used for compression 193 193 194 194 size_t fOffsetStartCellData;
Note:
See TracChangeset
for help on using the changeset viewer.