QGIS API Documentation 3.43.0-Master (261ee7da134)
qgssiputils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssiputils.h
3
4 -------------------
5 begin : May 2025
6 copyright : (C) 2025 by Nyall Dawson
7 email : nyall dot dawson at gmail dot com
8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#ifndef QGSSIPUTILS_H
20#define QGSSIPUTILS_H
21#include "qgis_core.h"
22#include "qgis_sip.h"
23
30class CORE_EXPORT QgsSipUtils
31{
32 public:
33
34#ifdef SIP_RUN
41 static bool isPyOwned( SIP_PYOBJECT SIP_GETWRAPPER );
42 % MethodCode
43 if ( sipIsOwnedByPython( ( sipSimpleWrapper * )a0Wrapper ) )
44 {
45 sipRes = true;
46 }
47 else
48 {
49 sipRes = false;
50 }
51 % End
52#endif
53
54};
55
56#endif //QGSSIPUTILS_H
Contains utilities for working with SIP Python objects.
Definition qgssiputils.h:31
#define SIP_GETWRAPPER
Definition qgis_sip.h:43