Changeset 860 for trunk/src/Scantable.h


Ignore:
Timestamp:
03/01/06 14:00:04 (18 years ago)
Author:
mar637
Message:

reworked history table
added STHistory class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r859 r860  
    3838#include "STMolecules.h"
    3939#include "STSelector.h"
     40#include "STHistory.h"
    4041
    4142
     
    253254  void makePersistent(const std::string& filename);
    254255
    255   std::vector<std::string> getHistory() const;
    256   void addHistory(const std::string& hist);
    257 
    258   casa::Table getHistoryTable() const;
    259   void appendToHistoryTable(const casa::Table& otherHist);
     256  std::vector<std::string> getHistory() const
     257    { return historyTable_.getHistory(); };
     258
     259  void addHistory(const std::string& hist) { historyTable_.addEntry(hist); }
     260
     261  void appendToHistoryTable(const STHistory& otherhist)
     262    { historyTable_.append(otherhist); }
    260263
    261264  std::string summary(bool verbose=false);
     
    287290  STTcal& tcal() { return tcalTable_; }
    288291  STMolecules& molecules() { return moleculeTable_; }
     292  STHistory& history() { return historyTable_; }
    289293
    290294private:
     
    322326  void setupMainTable();
    323327
    324   void setupHistoryTable();
    325   void setupMoleculeTable();
    326328  void setupFitTable();
    327329
     
    349351  STFocus focusTable_;
    350352  STMolecules moleculeTable_;
     353  STHistory historyTable_;
     354
    351355  casa::Table fitTable_;
    352   casa::Table historyTable_;
    353356
    354357  // Cached Columns to avoid reconstructing them for each row get/put
Note: See TracChangeset for help on using the changeset viewer.