Changeset 849 for trunk/src/STTcal.cpp


Ignore:
Timestamp:
02/28/06 10:47:19 (18 years ago)
Author:
mar637
Message:

added assignment operator and additional constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STTcal.cpp

    r830 r849  
     1
    12//
    23// C++ Implementation: STTcal
     
    2930const casa::String STTcal::name_ = "TCAL";
    3031
    31 STTcal::STTcal(casa::Table::TableType tt) :
    32   STSubTable( name_, tt )
     32STTcal::STTcal(const Scantable& parent) :
     33  STSubTable( parent, name_ )
    3334{
    3435  setup();
    3536}
    3637
     38STTcal& asap::STTcal::operator =( const STTcal & other )
     39{
     40  if ( this != &other ) {
     41    static_cast<STSubTable&>(*this) = other;
     42    timeCol_.attach(table_,"TIME");
     43    tcalCol_.attach(table_,"TCAL");
     44  }
     45  return *this;
     46}
     47
     48asap::STTcal::STTcal( casa::Table tab ) : STSubTable(tab)
     49{
     50  timeCol_.attach(table_,"TIME");
     51  tcalCol_.attach(table_,"TCAL");
     52
     53}
    3754
    3855STTcal::~STTcal()
     
    91108
    92109} //namespace
    93 
Note: See TracChangeset for help on using the changeset viewer.