Ignore:
Timestamp:
02/21/05 11:36:17 (19 years ago)
Author:
mar637
Message:
  • added merging of history tables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r483 r488  
    4747#include <tables/Tables/TableParse.h>
    4848#include <tables/Tables/TableDesc.h>
     49#include <tables/Tables/TableCopy.h>
    4950#include <tables/Tables/SetupNewTab.h>
    5051#include <tables/Tables/ScaColDesc.h>
     
    15091510}
    15101511
     1512Table SDMemTable::getHistoryTable() const
     1513{
     1514  return table_.keywordSet().asTable("HISTORY");
     1515}
     1516
     1517void SDMemTable::appendToHistoryTable(const Table& otherHist)
     1518{
     1519  Table t = table_.rwKeywordSet().asTable("HISTORY");
     1520  const String sep = "--------------------------------------------------------------------------------";
     1521  addHistory(sep);
     1522  TableCopy::copyRows(t, otherHist, t.nrow(), 0, otherHist.nrow());
     1523  addHistory(sep);
     1524}
     1525
    15111526void SDMemTable::addHistory(const std::string& hist)
    15121527{
     
    15321547  return stlout;
    15331548}
     1549
     1550
    15341551/*
    15351552  void SDMemTable::maskChannels(const std::vector<Int>& whichChans ) {
Note: See TracChangeset for help on using the changeset viewer.