Last change
on this file since 3037 was 2526, checked in by Malte Marquarding, 13 years ago |
OS X 10.7 gcc fails when stl's are included before boost
|
File size:
1018 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 | #include <boost/python.hpp>
|
---|
13 | #include <string>
|
---|
14 |
|
---|
15 | #include "LineCatalog.h"
|
---|
16 |
|
---|
17 | using namespace boost::python;
|
---|
18 |
|
---|
19 | namespace asap {
|
---|
20 | namespace python {
|
---|
21 |
|
---|
22 | void python_LineCatalog() {
|
---|
23 | class_<LineCatalog>("linecatalog")
|
---|
24 | .def( init < const std::string& > () )
|
---|
25 | .def("summary", &LineCatalog::summary)
|
---|
26 | .def("get_name", &LineCatalog::getName)
|
---|
27 | .def("get_frequency", &LineCatalog::getFrequency)
|
---|
28 | .def("set_frequency_limits", &LineCatalog::setFrequencyLimits)
|
---|
29 | .def("set_strength_limits", &LineCatalog::setStrengthLimits)
|
---|
30 | .def("set_name", &LineCatalog::setPattern)
|
---|
31 | .def("save", &LineCatalog::save)
|
---|
32 | .def("reset", &LineCatalog::reset)
|
---|
33 | .def("nrow", &LineCatalog::nrow)
|
---|
34 | ;
|
---|
35 | };
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.