Changeset 960 for trunk/src/python_STFitEntry.cpp
- Timestamp:
- 03/31/06 17:07:57 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python_STFitEntry.cpp
r956 r960 1 1 //#--------------------------------------------------------------------------- 2 //# python_S DFitTable.cc: python exposure of c++ SDFitTableclass2 //# python_STFitEntry: python exposure of c++ STFitEntry class 3 3 //#--------------------------------------------------------------------------- 4 //# Copyright (C) 200 44 //# Copyright (C) 2006 5 5 //# ATNF 6 6 //# … … 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id: 29 //# $Id:$ 30 30 //#--------------------------------------------------------------------------- 31 31 #include <boost/python.hpp> 32 32 33 #include "S DFitTable.h"33 #include "STFitEntry.h" 34 34 35 35 using namespace boost::python; … … 38 38 namespace python { 39 39 40 void python_S DFitTable() {41 class_<S DFitTable>("sdfit")40 void python_STFitEntry() { 41 class_<STFitEntry>("fitentry") 42 42 .def( init <> () ) 43 .def( init < const SDFitTable& > () ) 44 .def("__len__", &SDFitTable::STLlength) 45 .def("getfixedparameters", &SDFitTable::getSTLParameterMask) 46 .def("getparameters", &SDFitTable::getSTLParameters) 47 .def("getfunctions", &SDFitTable::getSTLFunctions) 48 .def("getcomponents", &SDFitTable::getSTLComponents) 49 .def("getframeinfo", &SDFitTable::getSTLFrameInfo) 43 .def("getfixedparameters", &STFitEntry::getParmasks) 44 .def("getparameters", &STFitEntry::getParameters) 45 .def("getfunctions", &STFitEntry::getFunctions) 46 .def("getcomponents", &STFitEntry::getComponents) 47 .def("getframeinfo", &STFitEntry::getFrameinfo) 50 48 ; 51 49 };
Note: See TracChangeset
for help on using the changeset viewer.