Changeset 10762 for trunk/FACT++/src


Ignore:
Timestamp:
05/20/11 13:13:00 (13 years ago)
Author:
lyard
Message:
Fixed output messages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/FitsLoader.cc

    r10759 r10762  
    167167    targetFile.precision(fStreamPrecision);
    168168    map<string, CCfits::Column*>::iterator it;
    169     stringstream str;
    170     str << "Size of fColMap: " << fColMap.size() << " size of offsets: " << offsets.size();
    171     Debug(str.str());
    172     for (it=fColMap.begin(); it != fColMap.end(); it++)
     169   for (it=fColMap.begin(); it != fColMap.end(); it++)
    173170    {
    174171        bool found = false;
     
    183180        if (!found)
    184181            continue;
    185         str.str("");
    186         int offset = offsets[it->second->index()-1];
    187         str << "Offset: " << offset;
    188         Debug(str.str());
    189         const char* charSrc = reinterpret_cast<char*>(&fitsBuffer[offset]);
     182       int offset = offsets[it->second->index()-1];
     183       const char* charSrc = reinterpret_cast<char*>(&fitsBuffer[offset]);
    190184        unsigned char copyBuffer[30];//max size of a single variable
    191185        for (int width = 0; width<it->second->width(); width++)
     
    288282    {
    289283        int width = it->second->width();
    290         stringstream str;
    291         str << "Width of " << it->first << ": " << it->second->width() << " size: " << size;
    292         Message(str.str());
    293284        switch (it->second->type())
    294285        {
     
    552543        {
    553544            stringstream str;
    554             str << "An error occurred while reading fits row #" << i << " error code: " << status << " " << fTable->rows() << " " << size << " " << sizeof(double);
     545            str << "An error occurred while reading fits row #" << i << " error code: " << status;
    555546            Error(str.str());
    556547            str.str("");
     
    561552        writeValuesFromFits(offsets, targetFile, fitsBuffer);
    562553    }
     554    delete[] fitsBuffer;
    563555    return GetCurrentState();
    564556}
Note: See TracChangeset for help on using the changeset viewer.