itom  4.1.0
pythontParamConversion.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5  Universitaet Stuttgart, Germany
6 
7  This file is part of itom.
8 
9  itom is free software; you can redistribute it and/or modify it
10  under the terms of the GNU Library General Public Licence as published by
11  the Free Software Foundation; either version 2 of the Licence, or (at
12  your option) any later version.
13 
14  itom is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17  General Public Licence for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with itom. If not, see <http://www.gnu.org/licenses/>.
21 *********************************************************************** */
22 
23 #ifndef PYTHONPARAMCONVERSION_H
24 #define PYTHONPARAMCONVERSION_H
25 
26 #ifndef Q_MOC_RUN
27  //python
28  // see http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7f3f750596a105d48ea84ebfe1b1c4ca03e0bab3
29  #if (defined _DEBUG) && (defined WIN32)
30  #undef _DEBUG
31  #include "python/pythonWrapper.h"
32  #define _DEBUG
33  #else
34  #include "python/pythonWrapper.h"
35  #endif
36 #endif
37 
38 #include "../../common/sharedStructures.h"
39 #include "../global.h"
40 
41 namespace ito
42 {
43 
45 {
46 public:
47 
48  static PyObject *ParamBaseToPyObject(const ito::ParamBase &param);
49  static SharedParamBasePointer PyObjectToParamBase(PyObject* obj, const char *name, ito::RetVal &retVal, int paramBaseType = 0, bool strict = true);
50 
51 private:
52  static void PyObjectToParamBaseDeleter(ito::ParamBase *param);
53 
54 
55 };
56 
57 } //namespace ito
58 
59 
60 #endif
Class for managing status values (like errors or warning)
Definition: retVal.h:54
Definition: apiFunctionsGraph.cpp:39
Definition: pythontParamConversion.h:44
Definition: param.h:67