Ignore:
Timestamp:
10/04/16 18:20:50 (8 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes/No?

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r3085 r3106  
    4545  {
    4646    GILHandler scopedRelease;
    47     casa::Table::TableType tp = casa::Table::Memory;
    48     if ( type == 1 ) tp = casa::Table::Plain;
     47    casacore::Table::TableType tp = casacore::Table::Memory;
     48    if ( type == 1 ) tp = casacore::Table::Plain;
    4949    table_ = new Scantable(name, tp);
    5050  }
     
    5353  {
    5454    GILHandler scopedRelease;
    55     casa::Table::TableType tp = casa::Table::Memory;
    56     if ( type == 1) tp = casa::Table::Plain;
     55    casacore::Table::TableType tp = casacore::Table::Memory;
     56    if ( type == 1) tp = casacore::Table::Plain;
    5757    table_= new Scantable(tp);
    5858  }
    5959
    60   explicit ScantableWrapper(casa::CountedPtr<Scantable> cp) : table_(cp) {;}
     60  explicit ScantableWrapper(casacore::CountedPtr<Scantable> cp) : table_(cp) {;}
    6161
    6262  ScantableWrapper(const ScantableWrapper& mt) :
     
    105105  //  { return table_->getTime(whichrow); }
    106106  std::string getTime(int whichrow=0, int prec = 0) const
    107     { return table_->getTime(whichrow, true, casa::uInt(prec)); }
     107    { return table_->getTime(whichrow, true, casacore::uInt(prec)); }
    108108
    109109  double getIntTime(int whichrow=0) const
     
    134134    { table_->flag(whichrow, msk, unflag); }
    135135
    136   void flagRow(const std::vector<casa::uInt>& rows=std::vector<casa::uInt>(), bool unflag=false)
     136  void flagRow(const std::vector<casacore::uInt>& rows=std::vector<casacore::uInt>(), bool unflag=false)
    137137    { table_->flagRow(rows, unflag); }
    138138
     
    140140    { return table_->getFlagRow(whichrow); }
    141141
    142   void clip(const casa::Float uthres, const casa::Float dthres, bool clipoutside=true, bool unflag=false)
     142  void clip(const casacore::Float uthres, const casacore::Float dthres, bool clipoutside=true, bool unflag=false)
    143143    { table_->clip(uthres, dthres, clipoutside, unflag); }
    144144
    145   std::vector<bool> getClipMask(int whichrow, const casa::Float uthres, const casa::Float dthres, bool clipoutside, bool unflag) const
     145  std::vector<bool> getClipMask(int whichrow, const casacore::Float uthres, const casacore::Float dthres, bool clipoutside, bool unflag) const
    146146    { return table_->getClipMask(whichrow, uthres, dthres, clipoutside, unflag); }
    147147
     
    236236    { table_->setDirectionRefString(refstr); }
    237237
    238   casa::CountedPtr<Scantable> getCP() const {return table_;}
     238  casacore::CountedPtr<Scantable> getCP() const {return table_;}
    239239  Scantable* getPtr() {return &(*table_);}
    240240
     
    343343
    344344  bool isAllChannelsFlagged(int whichrow=0) const
    345   { return table_->isAllChannelsFlagged(casa::uInt(whichrow)); }
     345  { return table_->isAllChannelsFlagged(casacore::uInt(whichrow)); }
    346346
    347347  std::vector<float> execFFT(int whichrow, const std::vector<bool>& mask, bool getRealImag=false, bool getAmplitudeOnly=false)
     
    362362
    363363private:
    364   casa::CountedPtr<Scantable> table_;
     364  casacore::CountedPtr<Scantable> table_;
    365365};
    366366
Note: See TracChangeset for help on using the changeset viewer.