[853] | 1 | //
|
---|
| 2 | // C++ Implementation: python_STSelector
|
---|
| 3 | //
|
---|
| 4 | // Description: This file is the boost::python wrapper for asap::STSelector
|
---|
| 5 | //
|
---|
| 6 | //
|
---|
| 7 | // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006
|
---|
| 8 | //
|
---|
| 9 | // Copyright: See COPYING file that comes with this distribution
|
---|
| 10 | //
|
---|
| 11 | //
|
---|
| 12 | #include <boost/python.hpp>
|
---|
| 13 |
|
---|
| 14 | #include "STSelector.h"
|
---|
| 15 |
|
---|
| 16 | using namespace boost::python;
|
---|
| 17 |
|
---|
| 18 | namespace asap {
|
---|
| 19 | namespace python {
|
---|
| 20 |
|
---|
| 21 | void python_STSelector() {
|
---|
| 22 | class_<STSelector>("selector")
|
---|
| 23 | .def( init <> () )
|
---|
[939] | 24 | .def( init < const STSelector& > () )
|
---|
[853] | 25 | .def("_getbeams", &STSelector::getBeams)
|
---|
| 26 | .def("_getifs", &STSelector::getIFs)
|
---|
| 27 | .def("_getpols", &STSelector::getPols)
|
---|
[902] | 28 | .def("_getpoltypes", &STSelector::getPolTypes)
|
---|
[853] | 29 | .def("_getscans", &STSelector::getScans)
|
---|
| 30 | .def("_getcycles", &STSelector::getCycles)
|
---|
[1779] | 31 | .def("_gettypes", &STSelector::getTypes)
|
---|
[939] | 32 | .def("_gettaql", &STSelector::getTaQL)
|
---|
| 33 | .def("_getorder", &STSelector::getSortOrder)
|
---|
[853] | 34 | .def("_reset", &STSelector::reset)
|
---|
| 35 | .def("_setbeams", &STSelector::setBeams)
|
---|
| 36 | .def("_setifs", &STSelector::setIFs)
|
---|
| 37 | .def("_setpols", &STSelector::setPolarizations)
|
---|
[902] | 38 | .def("_setpolstrings", &STSelector::setPolFromStrings)
|
---|
[853] | 39 | .def("_setscans", &STSelector::setScans)
|
---|
| 40 | .def("_setcycles", &STSelector::setCycles)
|
---|
| 41 | .def("_setname", &STSelector::setName)
|
---|
| 42 | .def("_settaql", &STSelector::setTaQL)
|
---|
[902] | 43 | .def("_setorder", &STSelector::setSortOrder)
|
---|
[1779] | 44 | .def("_setrows", &STSelector::setRows)
|
---|
| 45 | .def("_settypes", &STSelector::setTypes)
|
---|
[934] | 46 | .def("_empty", &STSelector::empty)
|
---|
[853] | 47 | ;
|
---|
| 48 | };
|
---|
| 49 | }
|
---|
| 50 | }
|
---|