Changeset 856 for trunk/src


Ignore:
Timestamp:
03/01/06 11:46:16 (19 years ago)
Author:
mar637
Message:

added name()
reworked copy constructor for (Table tab) to also pass name to base class

Location:
trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFocus.cpp

    r849 r856  
    3434}
    3535
    36 asap::STFocus::STFocus( casa::Table tab ) : STSubTable(tab)
     36asap::STFocus::STFocus( casa::Table tab ) : STSubTable(tab, name_)
    3737{
    3838  rotationCol_.attach(table_,"ROTATION");
  • trunk/src/STFocus.h

    r849 r856  
    4343                       casa::Float& ftan, casa::uInt id);
    4444
     45  const casa::String& name() const { return name_; }
     46
    4547private:
    4648  void setup();
  • trunk/src/STFrequencies.cpp

    r849 r856  
    3838  STSubTable(parent, name_)
    3939{
    40   cout << "STFrequencies(const Scantable& parent" << endl;
    4140  setup();
    42   cout << "after setup" << endl;
    4341}
    4442
    4543asap::STFrequencies::STFrequencies( casa::Table tab ) :
    46   STSubTable(tab)
     44  STSubTable(tab, name_)
    4745{
    4846  refpixCol_.attach(table_,"REFPIX");
  • trunk/src/STFrequencies.h

    r849 r856  
    144144  void setInfo( const std::vector<std::string>& theinfo );
    145145
     146  const casa::String& name() const { return name_; }
     147
    146148private:
    147149
  • trunk/src/STMolecules.cpp

    r849 r856  
    3434}
    3535
    36 asap::STMolecules::STMolecules( casa::Table tab ) : STSubTable(tab)
     36asap::STMolecules::STMolecules( casa::Table tab ) : STSubTable(tab, name_)
    3737{
    3838  restfreqCol_.attach(table_,"RESTFREQUENCY");
  • trunk/src/STMolecules.h

    r849 r856  
    4545  std::vector<double> getRestFrequencies() const;
    4646
     47  const casa::String& name() const { return name_; }
     48
    4749private:
    4850  void setup();
  • trunk/src/STTcal.cpp

    r849 r856  
    4646}
    4747
    48 asap::STTcal::STTcal( casa::Table tab ) : STSubTable(tab)
     48asap::STTcal::STTcal( casa::Table tab ) : STSubTable(tab, name_)
    4949{
    5050  timeCol_.attach(table_,"TIME");
  • trunk/src/STTcal.h

    r849 r856  
    4343                 casa::uInt id );
    4444
     45  const casa::String& name() const { return name_; }
     46
    4547private:
    4648  void setup();
  • trunk/src/STWeather.cpp

    r849 r856  
    3535
    3636
    37 asap::STWeather::STWeather( casa::Table tab ) : STSubTable(tab)
     37asap::STWeather::STWeather( casa::Table tab ) : STSubTable(tab, name_)
    3838{
    3939  temperatureCol_.attach(table_,"TEMPERATURE");
  • trunk/src/STWeather.h

    r849 r856  
    4646                       casa::uInt id);
    4747
     48  const casa::String& name() const { return name_; }
     49
    4850private:
    4951  void setup();
Note: See TracChangeset for help on using the changeset viewer.