Changeset 849 for trunk/src/STFocus.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/STFocus.cpp

    r839 r849  
    2828const casa::String STFocus::name_ = "FOCUS";
    2929
    30 STFocus::STFocus(casa::Table::TableType tt) :
    31   STSubTable( name_, tt )
     30STFocus::STFocus(const Scantable& parent ) :
     31  STSubTable( parent, name_ )
    3232{
    3333  setup();
    3434}
    3535
     36asap::STFocus::STFocus( casa::Table tab ) : STSubTable(tab)
     37{
     38  rotationCol_.attach(table_,"ROTATION");
     39  angleCol_.attach(table_,"ANGLE");
     40  tanCol_.attach(table_,"TAN");
     41}
    3642
    3743STFocus::~STFocus()
     
    3945}
    4046
     47STFocus & asap::STFocus::operator =( const STFocus & other )
     48{
     49  if (this != &other) {
     50    static_cast<STSubTable&>(*this) = other;
     51    rotationCol_.attach(table_,"ROTATION");
     52    angleCol_.attach(table_,"ANGLE");
     53    tanCol_.attach(table_,"TAN");
     54  }
     55  return *this;
     56}
    4157void asap::STFocus::setup( )
    4258{
     
    92108}
    93109
     110
    94111}
Note: See TracChangeset for help on using the changeset viewer.