LCOV - code coverage report
Current view: top level - analysis/vector/geometry_checker - qgsvectordataproviderfeaturepool.h (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 1 1 100.0 %
Date: 2021-04-10 08:29:14 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /***************************************************************************
       2                 :            :                       qgsvectordataproviderfeaturepool.h
       3                 :            :                      --------------------------------------
       4                 :            : Date                 : 3.9.2018
       5                 :            : Copyright            : (C) 2018 by Matthias Kuhn
       6                 :            : email                : matthias@opengis.ch
       7                 :            :  ***************************************************************************
       8                 :            :  *                                                                         *
       9                 :            :  *   This program is free software; you can redistribute it and/or modify  *
      10                 :            :  *   it under the terms of the GNU General Public License as published by  *
      11                 :            :  *   the Free Software Foundation; either version 2 of the License, or     *
      12                 :            :  *   (at your option) any later version.                                   *
      13                 :            :  *                                                                         *
      14                 :            :  ***************************************************************************/
      15                 :            : 
      16                 :            : #ifndef QGSVECTORDATAPROVIDERFEATUREPOOL_H
      17                 :            : #define QGSVECTORDATAPROVIDERFEATUREPOOL_H
      18                 :            : 
      19                 :            : #include "qgsfeaturepool.h"
      20                 :            : #include "qgsvectorlayer.h"
      21                 :            : 
      22                 :            : #define SIP_NO_FILE
      23                 :            : 
      24                 :            : /**
      25                 :            :  * \ingroup analysis
      26                 :            :  * \brief A feature pool based on a vector data provider.
      27                 :            :  *
      28                 :            :  * \since QGIS 3.4
      29                 :            :  */
      30                 :        122 : class ANALYSIS_EXPORT QgsVectorDataProviderFeaturePool : public QgsFeaturePool
      31                 :            : {
      32                 :            :   public:
      33                 :            : 
      34                 :            :     /**
      35                 :            :      * Creates a new feature pool for the data provider of \a layer.
      36                 :            :      * If \a selectedOnly is set to TRUE, only selected features will be managed by the pool.
      37                 :            :      */
      38                 :            :     QgsVectorDataProviderFeaturePool( QgsVectorLayer *layer, bool selectedOnly = false );
      39                 :            : 
      40                 :            :     bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
      41                 :            :     bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) override;
      42                 :            :     void updateFeature( QgsFeature &feature ) override;
      43                 :            :     void deleteFeature( QgsFeatureId fid ) override;
      44                 :            : 
      45                 :            :   private:
      46                 :            :     bool mSelectedOnly = false;
      47                 :            : };
      48                 :            : 
      49                 :            : #endif // QGSVECTORDATAPROVIDERFEATUREPOOL_H

Generated by: LCOV version 1.14