aboutsummaryrefslogtreecommitdiffstats
path: root/src/emc/rs274ngc/paramclass.hh
blob: 2e22bad06bbab3ea57e017c41972cc4fe228212d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*    This is a component of LinuxCNC
 *    Copyright 2013 Michael Haberler <git@mah.priv.at>
 *
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef PARAM_CLASS_HH
#define PARAM_CLASS_HH
#include <interp_fwd.hh>

#ifndef BOOST_PYTHON_MAX_ARITY
#define BOOST_PYTHON_MAX_ARITY 4
#endif
#include <boost/python/list.hpp>

struct ParamClass {

    Interp &interp;

    ParamClass(Interp &i);
    double getitem( boost::python::object sub);
    double setitem(boost::python::object sub, double dvalue);
    boost::python::list namelist(context &c) const;
    boost::python::list locals();
    boost::python::list globals();
    boost::python::list operator()() const;
    int length();
};

extern void export_ParamClass();

#endif
bues.ch cgit interface