Skip to content
Permalink
Browse files

Add sip subclass code for QgsProcessingAlgorithm

  • Loading branch information
nyalldawson committed Jul 10, 2017
1 parent 326d6f5 commit 2b8e06719e3fac61e24dfd8fde063872143fe275
Showing with 29 additions and 0 deletions.
  1. +12 −0 python/core/processing/qgsprocessingalgorithm.sip
  2. +17 −0 src/core/processing/qgsprocessingalgorithm.h
@@ -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

0 comments on commit 2b8e067

Please sign in to comment.
You can’t perform that action at this time.