Changeset 57


Ignore:
Timestamp:
07/15/04 16:07:17 (20 years ago)
Author:
mmarquar
Message:

Changes to reflect split up of SDMemTableWrapper.h. Added new function and constructor wrapper. Also renamed gettable to getdata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_SDReader.cc

    r2 r57  
    3131#include <boost/python.hpp>
    3232
    33 #include "SDMemTableWrapper.h"
     33#include "SDReaderWrapper.h"
    3434
    3535using namespace boost::python;
     
    3838  namespace python {
    3939
    40 void python_SDReader() {
    41   class_<SDReaderWrapper>("sdreader")
    42     //.def( init < SDMemTableWrapper > () )
    43     .def("open", &SDReaderWrapper::open)
    44     .def("read", &SDReaderWrapper::read)
    45     .def("gettable", &SDReaderWrapper::getSDMemTable)
    46     .def("header",  &SDReaderWrapper::pseudoHeader);
    47   ;
    48 };
     40    void python_SDReader() {
     41      class_<SDReaderWrapper>("sdreader")
     42        .def( init < std::string > () )
     43        .def("open", &SDReaderWrapper::open)
     44        .def("read", &SDReaderWrapper::read)
     45        .def("close", &SDReaderWrapper::close)
     46        .def("getdata", &SDReaderWrapper::getSDMemTable)
     47        .def("header",  &SDReaderWrapper::pseudoHeader);
     48      ;
     49    };
    4950
    50   }
    51 }
     51  } //namespace python
     52} // namespace atnf_sd
     53
Note: See TracChangeset for help on using the changeset viewer.