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

    r847 r849  
    2828const casa::String STMolecules::name_ = "MOLECULES";
    2929
    30 STMolecules::STMolecules(casa::Table::TableType tt) :
    31   STSubTable( name_, tt )
     30STMolecules::STMolecules(const Scantable& parent) :
     31  STSubTable( parent, name_ )
    3232{
    3333  setup();
    3434}
    3535
     36asap::STMolecules::STMolecules( casa::Table tab ) : STSubTable(tab)
     37{
     38  restfreqCol_.attach(table_,"RESTFREQUENCY");
     39  nameCol_.attach(table_,"NAME");
     40  formattednameCol_.attach(table_,"FORMATTEDNAME");
     41}
    3642
    3743STMolecules::~STMolecules()
    3844{
     45}
     46
     47STMolecules & asap::STMolecules::operator =( const STMolecules & other )
     48{
     49  if ( this != &other ) {
     50    static_cast<STSubTable&>(*this) = other;
     51    restfreqCol_.attach(table_,"RESTFREQUENCY");
     52    nameCol_.attach(table_,"NAME");
     53    formattednameCol_.attach(table_,"FORMATTEDNAME");
     54  }
     55  return *this;
    3956}
    4057
     
    101118}
    102119
    103 } //namespace
     120
     121}//namespace
     122
Note: See TracChangeset for help on using the changeset viewer.