mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -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
|
||||
{
|
||||
%Docstring
|
||||
@ -20,6 +25,13 @@ class QgsProcessingAlgorithm
|
||||
|
||||
%TypeHeaderCode
|
||||
#include "qgsprocessingalgorithm.h"
|
||||
%End
|
||||
|
||||
%ConvertToSubClassCode
|
||||
if ( dynamic_cast< QgsProcessingModelAlgorithm * >( sipCpp ) != NULL )
|
||||
sipType = sipType_QgsProcessingModelAlgorithm;
|
||||
else
|
||||
sipType = sipType_QgsProcessingAlgorithm;
|
||||
%End
|
||||
public:
|
||||
|
||||
|
@ -33,6 +33,13 @@ class QgsFeatureSink;
|
||||
class QgsProcessingFeedback;
|
||||
|
||||
|
||||
#ifdef SIP_RUN
|
||||
% ModuleHeaderCode
|
||||
#include <qgsprocessingmodelalgorithm.h>
|
||||
% End
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* \class QgsProcessingAlgorithm
|
||||
* \ingroup core
|
||||
@ -41,6 +48,16 @@ class QgsProcessingFeedback;
|
||||
*/
|
||||
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:
|
||||
|
||||
//! Flags indicating how and when an algorithm operates and should be exposed to users
|
||||
|
Loading…
x
Reference in New Issue
Block a user