QGIS/python/core/auto_generated/classification/qgsclassificationmethodregistry.sip.in
2019-09-02 10:16:21 +02:00

56 lines
1.8 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/classification/qgsclassificationmethodregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsClassificationMethodRegistry
{
%Docstring
This class manages all known classification methods
QgsClassificationMethodRegistry is not usually directly created, but rather accessed through
:py:func:`QgsApplication.classificationMethodRegistry()`
.. versionadded:: 3.10
%End
%TypeHeaderCode
#include "qgsclassificationmethodregistry.h"
%End
public:
QgsClassificationMethodRegistry();
bool addMethod( QgsClassificationMethod *method /Transfer/ );
%Docstring
Adds a method to the registry
Returns false if a method with same id already exists.
%End
QgsClassificationMethod *method( const QString &id ) /Factory/;
%Docstring
Returns a new instance of the method for the given id
%End
QMap<QString, QString> methodNames() const;
%Docstring
Returns a map <id, name> of all registered methods
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/classification/qgsclassificationmethodregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/