Changeset 915


Ignore:
Timestamp:
03/22/06 21:36:05 (18 years ago)
Author:
mar637
Message:

added Scantable::getTimeReference(). Using other.table_.endianFormat() to crete new scnatable in copy ctor. Also had to copy subtables in case of memory table too.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r913 r915  
    127127        table_ = other.table_.copyToMemoryTable(newname);
    128128  } else {
    129       other.table_.deepCopy(newname, Table::New, False, Table::AipsrcEndian,
     129      other.table_.deepCopy(newname, Table::New, False,
     130                            other.table_.endianFormat(),
    130131                            Bool(clear));
    131132      table_ = Table(newname, Table::Update);
    132       if ( clear ) copySubtables(other);
    133133      table_.markForDelete();
    134134  }
    135135
     136  if ( clear ) copySubtables(other);
    136137  attachSubtables();
    137138  originalTable_ = table_;
     
    897898}
    898899
     900casa::MEpoch::Types asap::Scantable::getTimeReference( ) const
     901{
     902  return MEpoch::castType(timeCol_.getMeasRef().getType());
     903  }
     904
     905
    899906} //namespace asap
  • trunk/src/Scantable.h

    r905 r915  
    142142
    143143  //casa::MDirection::Types getDirectionReference() const;
    144   //casa::MEpoch::Types getTimeReference() const;
     144  casa::MEpoch::Types getTimeReference() const;
    145145
    146146  /**
Note: See TracChangeset for help on using the changeset viewer.