Changeset 1350


Ignore:
Timestamp:
04/26/07 14:45:56 (18 years ago)
Author:
mar637
Message:

added scantable.get_inttime as per ticket #106

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r1295 r1350  
    7272   * Default constructor
    7373   */
    74   Scantable(casa::Table::TableType ttype = casa::Table::Memory);
     74  explicit Scantable(casa::Table::TableType ttype = casa::Table::Memory);
    7575
    7676  /**
     
    330330  std::string summary(bool verbose=false);
    331331  std::string getTime(int whichrow=-1, bool showdate=true) const;
     332  double getIntTime(int whichrow) const { return integrCol_(whichrow); }
    332333
    333334  // returns unit, conversion frame, doppler, base-frame
  • trunk/src/ScantableWrapper.h

    r1189 r1350  
    4444  }
    4545
    46   ScantableWrapper(int type=0)
     46  explicit ScantableWrapper(int type=0)
    4747  {
    4848    casa::Table::TableType tp = casa::Table::Memory;
     
    5151  }
    5252
    53   ScantableWrapper(casa::CountedPtr<Scantable> cp) : table_(cp) {;}
     53  explicit ScantableWrapper(casa::CountedPtr<Scantable> cp) : table_(cp) {;}
    5454
    5555  ScantableWrapper(const ScantableWrapper& mt) :
     
    8484  std::string getTime(int whichrow=0) const
    8585    { return table_->getTime(whichrow); }
     86
     87  double getIntTime(int whichrow=0) const
     88    { return table_->getIntTime(whichrow); }
    8689
    8790  std::string getDirectionString(int whichrow=0) const
  • trunk/src/python_Scantable.cpp

    r1259 r1350  
    9898    .def("_gettime", &ScantableWrapper::getTime,
    9999         (boost::python::arg("whichrow")=0) )
     100    .def("_getinttime", &ScantableWrapper::getIntTime,
     101         (boost::python::arg("whichrow")=0) )
    100102    .def("_getdirection", &ScantableWrapper::getDirectionString,
    101103         (boost::python::arg("whichrow")=0) )
Note: See TracChangeset for help on using the changeset viewer.