mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Add sip subclass code for QgsProcessingAlgorithm
This commit is contained in:
parent
326d6f5fc7
commit
2b8e06719e
@ -11,6 +11,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%ModuleHeaderCode
|
||||||
|
#include <qgsprocessingmodelalgorithm.h>
|
||||||
|
%End
|
||||||
|
|
||||||
|
|
||||||
class QgsProcessingAlgorithm
|
class QgsProcessingAlgorithm
|
||||||
{
|
{
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -20,6 +25,13 @@ class QgsProcessingAlgorithm
|
|||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include "qgsprocessingalgorithm.h"
|
#include "qgsprocessingalgorithm.h"
|
||||||
|
%End
|
||||||
|
|
||||||
|
%ConvertToSubClassCode
|
||||||
|
if ( dynamic_cast< QgsProcessingModelAlgorithm * >( sipCpp ) != NULL )
|
||||||
|
sipType = sipType_QgsProcessingModelAlgorithm;
|
||||||
|
else
|
||||||
|
sipType = sipType_QgsProcessingAlgorithm;
|
||||||
%End
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -33,6 +33,13 @@ class QgsFeatureSink;
|
|||||||
class QgsProcessingFeedback;
|
class QgsProcessingFeedback;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SIP_RUN
|
||||||
|
% ModuleHeaderCode
|
||||||
|
#include <qgsprocessingmodelalgorithm.h>
|
||||||
|
% End
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class QgsProcessingAlgorithm
|
* \class QgsProcessingAlgorithm
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
@ -41,6 +48,16 @@ class QgsProcessingFeedback;
|
|||||||
*/
|
*/
|
||||||
class CORE_EXPORT QgsProcessingAlgorithm
|
class CORE_EXPORT QgsProcessingAlgorithm
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef SIP_RUN
|
||||||
|
SIP_CONVERT_TO_SUBCLASS_CODE
|
||||||
|
if ( dynamic_cast< QgsProcessingModelAlgorithm * >( sipCpp ) != NULL )
|
||||||
|
sipType = sipType_QgsProcessingModelAlgorithm;
|
||||||
|
else
|
||||||
|
sipType = sipType_QgsProcessingAlgorithm;
|
||||||
|
SIP_END
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Flags indicating how and when an algorithm operates and should be exposed to users
|
//! Flags indicating how and when an algorithm operates and should be exposed to users
|
||||||
|
Loading…
x
Reference in New Issue
Block a user