Changeset 1077 for trunk


Ignore:
Timestamp:
07/06/06 11:28:10 (18 years ago)
Author:
mar637
Message:

enabled another constructor to handle disk based tables; chnaged this interface to be int instead of string.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r1068 r1077  
    3737public:
    3838  ScantableWrapper( const std::string& name,
    39                     const std::string& type="")
     39                    int type=0)
    4040  {
    4141    casa::Table::TableType tp = casa::Table::Memory;
    42     if ( type == "disk") tp = casa::Table::Plain;
     42    if ( type == 1 ) tp = casa::Table::Plain;
    4343    table_ = new Scantable(name, tp);
    4444  }
    4545
    46   ScantableWrapper(const std::string& type="")
     46  ScantableWrapper(int type=0)
    4747  {
    4848    casa::Table::TableType tp = casa::Table::Memory;
    49     if ( type == "disk") tp = casa::Table::Plain;
     49    if ( type == 1) tp = casa::Table::Plain;
    5050    table_= new Scantable(tp);
    5151  }
  • trunk/src/python_STFiller.cpp

    r895 r1077  
    2727//#                        AUSTRALIA
    2828//#
    29 //# $Id:
     29//# $Id:$
    3030//#---------------------------------------------------------------------------
    3131#include <boost/python.hpp>
    3232
     33#include "ScantableWrapper.h"
    3334#include "STFillerWrapper.h"
    3435
     
    4041    void python_STFiller() {
    4142      class_<STFillerWrapper>("stfiller")
     43        .def( init < ScantableWrapper > () )
    4244        .def( init < std::string, int, int > () )
    4345        .def("_open", &STFillerWrapper::open)
  • trunk/src/python_Scantable.cpp

    r1068 r1077  
    4444  class_<ScantableWrapper>("Scantable")
    4545    //.def( init <> () )
    46     .def( init < const std::string&, const std::string& > () )
     46    .def( init < int > () )
     47    .def( init < const std::string&, int > () )
    4748    .def( init < const ScantableWrapper& > () )
    4849    .def("_copy", &ScantableWrapper::copy)
Note: See TracChangeset for help on using the changeset viewer.