Ignore:
Timestamp:
12/15/11 10:17:04 (13 years ago)
Author:
lyard
Message:
added a few accessor functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r12714 r12722  
    342342        }
    343343
     344        bool HasColumn(const string& col) const
     345        {
     346            return cols.find(col)!=cols.end();
     347        }
     348
     349        const Columns& getColumns() const
     350        {
     351            return cols;
     352        }
     353
     354        const Keys& getKeys() const
     355        {
     356            return keys;
     357        }
     358
     359
     360
    344361            // Values of keys are always signed
    345362        template<typename T>
     
    697714
    698715    bool     HasKey(const string &key) const { return fTable.HasKey(key); }
     716    bool     HasColumn(const string& col) const { return fTable.HasColumn(col);}
     717    const Table::Columns& getColumns() const { return fTable.getColumns();}
     718    const Table::Keys& getKeys() const { return fTable.getKeys();}
     719
    699720    int64_t  GetInt(const string &key) const { return fTable.Get<int64_t>(key); }
    700721    uint64_t GetUInt(const string &key) const { return fTable.Get<uint64_t>(key); }
Note: See TracChangeset for help on using the changeset viewer.