Changeset 11744 for trunk


Ignore:
Timestamp:
08/02/11 20:21:41 (13 years ago)
Author:
tbretz
Message:
Set fNumRows to 0 in OpenFile; added ResetColumns function
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r11738 r11744  
    132132    fIsOwner = true;
    133133
     134    return true;
     135}
     136
     137void FitsFile::ResetColumns()
     138{
    134139    fColNames.clear();
    135140    fColTypes.clear();
    136141    fColUnits.clear();
    137 
    138     return true;
    139142}
    140143
     
    152155    fFile = file;
    153156    fIsOwner = false;
    154 
    155     fColNames.clear();
    156     fColTypes.clear();
    157     fColUnits.clear();
    158157
    159158    return true;
     
    193192    // Set this as last - we use it for IsOpen()
    194193    fTable = table;
     194    fNumRows = 0;
    195195
    196196    return true;
  • trunk/FACT++/src/FitsFile.h

    r11738 r11744  
    4444        AddColumn(type, name, 1, unit);
    4545    }
     46
     47    void ResetColumns();
    4648
    4749    bool OpenFile(const string &filename, bool allow_open=false);
Note: See TracChangeset for help on using the changeset viewer.