Changeset 10995 for trunk/FACT++
- Timestamp:
- 06/10/11 20:47:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r10979 r10995 502 502 int status = 0; 503 503 fits_write_tblbytes(fFile->fitsPointer(), fNumRows, start, size, reinterpret_cast<unsigned char*>(e), &status); 504 if (status) 505 { 506 char text[30];//max length of cfitsio error strings (from doc) 507 fits_get_errstatus(status, text); 508 //ostringstream str; 509 //str << "Writing FITS row " << i << " in " << groupName << ": " << text << " (file_write_tblbytes, rc=" << status << ")"; 510 //Error(str); 511 } 512 504 513 start += size; 505 514 return status; … … 520 529 if (fits_insert_rows(fTable->fitsPointer(), fNumRows, 1, &status)) 521 530 { 522 ostringstream str; 523 str << "Could not insert a row in fits file"; 531 //ostringstream str; 532 //str << "Inserting row into " << fFileName << " failed (fits_insert_rows, rc=" << status << ")"; 533 //fMess->Error(str); 524 534 //TODO pipe this error message to the appropriate error stream 525 535 } … … 969 979 void factStat(int severity, int err, char* message ) 970 980 { 981 if (err!=-1) 982 { 983 factOut(severity, err, message); 984 return; 985 } 986 971 987 static string last; 972 988 if (message==last) 973 989 return; 974 990 975 if (err!=-1)976 factOut(severity, err, message);977 else978 {979 ostringstream str("Status: ");980 str << message;981 EventBuilderWrapper::This->Update(str, severity);982 }983 984 991 last = message; 992 993 ostringstream str("Status: "); 994 str << message; 995 996 EventBuilderWrapper::This->Update(str, severity); 985 997 } 986 998
Note:
See TracChangeset
for help on using the changeset viewer.