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

    r830 r849  
    2828const casa::String STWeather::name_ = "WEATHER";
    2929
    30 STWeather::STWeather(casa::Table::TableType tt) :
    31   STSubTable( name_, tt )
     30STWeather::STWeather(const Scantable& parent) :
     31  STSubTable( parent, name_ )
    3232{
    3333  setup();
     
    3535
    3636
     37asap::STWeather::STWeather( casa::Table tab ) : STSubTable(tab)
     38{
     39  temperatureCol_.attach(table_,"TEMPERATURE");
     40  pressureCol_.attach(table_,"PRESSURE");
     41  humidityCol_.attach(table_,"HUMIDITY");
     42  windspeedCol_.attach(table_,"WINDSPEED");
     43  windazCol_.attach(table_,"WINDAZ");
     44
     45}
     46
    3747STWeather::~STWeather()
    3848{
    3949}
     50
     51STWeather & asap::STWeather::operator =( const STWeather & other )
     52{
     53  if ( this != &other ) {
     54    static_cast<STSubTable&>(*this) = other;
     55    temperatureCol_.attach(table_,"TEMPERATURE");
     56    pressureCol_.attach(table_,"PRESSURE");
     57    humidityCol_.attach(table_,"HUMIDITY");
     58    windspeedCol_.attach(table_,"WINDSPEED");
     59    windazCol_.attach(table_,"WINDAZ");
     60  }
     61  return *this;
     62}
     63
    4064
    4165void asap::STWeather::setup( )
Note: See TracChangeset for help on using the changeset viewer.