Changeset 988 for trunk/src/python_STWriter.cpp
- Timestamp:
- 04/05/06 14:31:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python_STWriter.cpp
r892 r988 1 1 //#--------------------------------------------------------------------------- 2 //# python_S DWriter.cc: Python binding to C++ SDWriter class.2 //# python_STWriter.cc: Python binding to C++ SDWriter class. 3 3 //#--------------------------------------------------------------------------- 4 4 //# Copyright (C) 2004 … … 31 31 #include <boost/python.hpp> 32 32 33 #include "S DWriterWrapper.h"33 #include "STWriterWrapper.h" 34 34 35 35 using namespace boost::python; … … 38 38 namespace python { 39 39 40 void python_SDWriter() { 41 class_<SDWriterWrapper>("sdwriter") 42 .def(init <> ()) 43 .def(init <std::string> ()) 44 .def("setformat", &SDWriterWrapper::setFormat, 45 (boost::python::arg("format")="SDFITS")) 46 .def("write", &SDWriterWrapper::write); 47 ; 48 }; 49 40 void python_STWriter() { 41 class_<STWriterWrapper>("stwriter") 42 .def(init <> ()) 43 .def(init <std::string> ()) 44 .def("setformat", &STWriterWrapper::setFormat, 45 (boost::python::arg("format")="STFITS")) 46 .def("write", &STWriterWrapper::write); 47 ; 48 }; 50 49 } // namespace python 51 50 } // namespace asap
Note: See TracChangeset
for help on using the changeset viewer.