Changeset 1077
- Timestamp:
- 07/06/06 11:28:10 (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ScantableWrapper.h
r1068 r1077 37 37 public: 38 38 ScantableWrapper( const std::string& name, 39 const std::string& type="")39 int type=0) 40 40 { 41 41 casa::Table::TableType tp = casa::Table::Memory; 42 if ( type == "disk") tp = casa::Table::Plain;42 if ( type == 1 ) tp = casa::Table::Plain; 43 43 table_ = new Scantable(name, tp); 44 44 } 45 45 46 ScantableWrapper( const std::string& type="")46 ScantableWrapper(int type=0) 47 47 { 48 48 casa::Table::TableType tp = casa::Table::Memory; 49 if ( type == "disk") tp = casa::Table::Plain;49 if ( type == 1) tp = casa::Table::Plain; 50 50 table_= new Scantable(tp); 51 51 } -
trunk/src/python_STFiller.cpp
r895 r1077 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id: 29 //# $Id:$ 30 30 //#--------------------------------------------------------------------------- 31 31 #include <boost/python.hpp> 32 32 33 #include "ScantableWrapper.h" 33 34 #include "STFillerWrapper.h" 34 35 … … 40 41 void python_STFiller() { 41 42 class_<STFillerWrapper>("stfiller") 43 .def( init < ScantableWrapper > () ) 42 44 .def( init < std::string, int, int > () ) 43 45 .def("_open", &STFillerWrapper::open) -
trunk/src/python_Scantable.cpp
r1068 r1077 44 44 class_<ScantableWrapper>("Scantable") 45 45 //.def( init <> () ) 46 .def( init < const std::string&, const std::string& > () ) 46 .def( init < int > () ) 47 .def( init < const std::string&, int > () ) 47 48 .def( init < const ScantableWrapper& > () ) 48 49 .def("_copy", &ScantableWrapper::copy)
Note:
See TracChangeset
for help on using the changeset viewer.