Add sip subclass code for QgsProcessingAlgorithm

This commit is contained in:
Nyall Dawson 2017-07-10 17:09:42 +10:00
parent 326d6f5fc7
commit 2b8e06719e
2 changed files with 29 additions and 0 deletions

View File

@ -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:

View File

@ -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