Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple c++ base class for processing algorithms
- Loading branch information
1 parent
e462bfb
commit 52cc002
Showing
6 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class QgsProcessingAlgorithm | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsprocessingalgorithm.h> | ||
%End | ||
|
||
public: | ||
|
||
QgsProcessingAlgorithm(); | ||
virtual ~QgsProcessingAlgorithm(); | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*************************************************************************** | ||
qgsprocessingalgorithm.cpp | ||
-------------------------- | ||
begin : December 2016 | ||
copyright : (C) 2016 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "qgsprocessingalgorithm.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/*************************************************************************** | ||
qgsprocessingalgorithm.h | ||
------------------------ | ||
begin : December 2016 | ||
copyright : (C) 2016 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSPROCESSINGALGORITHM_H | ||
#define QGSPROCESSINGALGORITHM_H | ||
|
||
#include "qgis_core.h" | ||
#include <QString> | ||
#include <QVariant> | ||
#include <QIcon> | ||
|
||
/** | ||
* \class QgsProcessingAlgorithm | ||
* \ingroup core | ||
* Abstract base class for processing algorithms. | ||
* \note added in QGIS 3.0 | ||
*/ | ||
class CORE_EXPORT QgsProcessingAlgorithm | ||
{ | ||
public: | ||
|
||
/** | ||
* Constructor for QgsProcessingAlgorithm. | ||
*/ | ||
QgsProcessingAlgorithm() = default; | ||
|
||
virtual ~QgsProcessingAlgorithm() = default; | ||
|
||
}; | ||
|
||
#endif // QGSPROCESSINGALGORITHM_H | ||
|
||
|