Last change
on this file since 1292 was 1156, checked in by mar637, 18 years ago |
changed name set_freq_limits to set_frequency_limits
|
File size:
1020 bytes
|
Line | |
---|
1 | //
|
---|
2 | // C++ Implementation: python_LineCatalog
|
---|
3 | //
|
---|
4 | // Description: This file is the boost::python wrapper for asap::LineCatalog
|
---|
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 |
|
---|
13 | #include <string>
|
---|
14 |
|
---|
15 | #include <boost/python.hpp>
|
---|
16 |
|
---|
17 | #include "LineCatalog.h"
|
---|
18 |
|
---|
19 | using namespace boost::python;
|
---|
20 |
|
---|
21 | namespace asap {
|
---|
22 | namespace python {
|
---|
23 |
|
---|
24 | void python_LineCatalog() {
|
---|
25 | class_<LineCatalog>("linecatalog")
|
---|
26 | .def( init < const std::string& > () )
|
---|
27 | .def("summary", &LineCatalog::summary)
|
---|
28 | .def("get_name", &LineCatalog::getName)
|
---|
29 | .def("get_frequency", &LineCatalog::getFrequency)
|
---|
30 | .def("set_frequency_limits", &LineCatalog::setFrequencyLimits)
|
---|
31 | .def("set_strength_limits", &LineCatalog::setStrengthLimits)
|
---|
32 | .def("set_name", &LineCatalog::setPattern)
|
---|
33 | .def("save", &LineCatalog::save)
|
---|
34 | .def("reset", &LineCatalog::reset)
|
---|
35 | .def("nrow", &LineCatalog::nrow)
|
---|
36 | ;
|
---|
37 | };
|
---|
38 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.