LCOV - code coverage report
Current view: top level - apps - gdalalg_dataset.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 4 4 100.0 %
Date: 2026-01-11 15:50:51 Functions: 3 3 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  gdal "dataset" subcommand
       5             :  * Author:   Even Rouault <even dot rouault at spatialys.com>
       6             :  *
       7             :  ******************************************************************************
       8             :  * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
       9             :  *
      10             :  * SPDX-License-Identifier: MIT
      11             :  ****************************************************************************/
      12             : 
      13             : #ifndef GDALALG_DATASET_INCLUDED
      14             : #define GDALALG_DATASET_INCLUDED
      15             : 
      16             : //! @cond Doxygen_Suppress
      17             : 
      18             : #include "gdalalgorithm.h"
      19             : 
      20             : /************************************************************************/
      21             : /*                         GDALDatasetAlgorithm                         */
      22             : /************************************************************************/
      23             : 
      24         156 : class GDALDatasetAlgorithm final : public GDALAlgorithm
      25             : {
      26             :   public:
      27             :     static constexpr const char *NAME = "dataset";
      28             :     static constexpr const char *DESCRIPTION = "Commands to manage datasets.";
      29             :     static constexpr const char *HELP_URL = "/programs/gdal_dataset.html";
      30             : 
      31             :     GDALDatasetAlgorithm();
      32             :     ~GDALDatasetAlgorithm() override;
      33             : 
      34             :   private:
      35           1 :     bool RunImpl(GDALProgressFunc, void *) override
      36             :     {
      37           1 :         CPLError(CE_Failure, CPLE_AppDefined,
      38             :                  "The Run() method should not be called directly on the \"gdal "
      39             :                  "dataset\" program.");
      40           1 :         return false;
      41             :     }
      42             : };
      43             : 
      44             : //! @endcond
      45             : 
      46             : #endif

Generated by: LCOV version 1.14