Changeset 57
- Timestamp:
- 07/15/04 16:07:17 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python_SDReader.cc
r2 r57 31 31 #include <boost/python.hpp> 32 32 33 #include "SD MemTableWrapper.h"33 #include "SDReaderWrapper.h" 34 34 35 35 using namespace boost::python; … … 38 38 namespace python { 39 39 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 }; 49 50 50 } 51 } 51 } //namespace python 52 } // namespace atnf_sd 53
Note:
See TracChangeset
for help on using the changeset viewer.