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/STFrequencies.cpp

    r847 r849  
    3535const String STFrequencies::name_ = "FREQUENCIES";
    3636
    37 STFrequencies::STFrequencies(Table::TableType tt) :
    38   STSubTable( name_, tt )
    39 {
     37STFrequencies::STFrequencies(const Scantable& parent) :
     38  STSubTable(parent, name_)
     39{
     40  cout << "STFrequencies(const Scantable& parent" << endl;
    4041  setup();
    41 }
    42 
     42  cout << "after setup" << endl;
     43}
     44
     45asap::STFrequencies::STFrequencies( casa::Table tab ) :
     46  STSubTable(tab)
     47{
     48  refpixCol_.attach(table_,"REFPIX");
     49  refvalCol_.attach(table_,"REFVAL");
     50  incrCol_.attach(table_,"INCREMENT");
     51
     52}
    4353
    4454STFrequencies::~STFrequencies()
    4555{
     56}
     57
     58STFrequencies & asap::STFrequencies::operator =( const STFrequencies & other )
     59{
     60  if ( this != &other ) {
     61    static_cast<STSubTable&>(*this) = other;
     62    refpixCol_.attach(table_,"REFPIX");
     63    refvalCol_.attach(table_,"REFVAL");
     64    incrCol_.attach(table_,"INCREMENT");
     65  }
     66  return *this;
    4667}
    4768
     
    326347}
    327348
     349
    328350} // namespace
Note: See TracChangeset for help on using the changeset viewer.