source: branches/casa-prerelease/pre-asap/src/python_STSelector.cpp@ 2307

Last change on this file since 2307 was 1930, checked in by Takeshi Nakazato, 14 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  1. Added selector.get_row().
  2. Constructor allows to set rows and types.
  3. Selection summary string contains SRCTYPE and ROW selection.


File size: 1.6 KB
Line 
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
16using namespace boost::python;
17
18namespace asap {
19 namespace python {
20
21 void python_STSelector() {
22 class_<STSelector>("selector")
23 .def( init <> () )
24 .def( init < const STSelector& > () )
25 .def("_getbeams", &STSelector::getBeams)
26 .def("_getifs", &STSelector::getIFs)
27 .def("_getpols", &STSelector::getPols)
28 .def("_getpoltypes", &STSelector::getPolTypes)
29 .def("_getscans", &STSelector::getScans)
30 .def("_getcycles", &STSelector::getCycles)
31 .def("_gettypes", &STSelector::getTypes)
32 .def("_getrows", &STSelector::getRows)
33 .def("_gettaql", &STSelector::getTaQL)
34 .def("_getorder", &STSelector::getSortOrder)
35 .def("_reset", &STSelector::reset)
36 .def("_setbeams", &STSelector::setBeams)
37 .def("_setifs", &STSelector::setIFs)
38 .def("_setpols", &STSelector::setPolarizations)
39 .def("_setpolstrings", &STSelector::setPolFromStrings)
40 .def("_setscans", &STSelector::setScans)
41 .def("_setcycles", &STSelector::setCycles)
42 .def("_setname", &STSelector::setName)
43 .def("_settaql", &STSelector::setTaQL)
44 .def("_setorder", &STSelector::setSortOrder)
45 .def("_setrows", &STSelector::setRows)
46 .def("_settypes", &STSelector::setTypes)
47 .def("_empty", &STSelector::empty)
48 ;
49 };
50 }
51}
Note: See TracBrowser for help on using the repository browser.