LCOV - code coverage report
Current view: top level - apps - gdalalg_raster_overview_add.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 2 2 100.0 %
Date: 2025-01-18 12:42:00 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  gdal "raster overview add" 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_RASTER_OVERVIEW_ADD_INCLUDED
      14             : #define GDALALG_RASTER_OVERVIEW_ADD_INCLUDED
      15             : 
      16             : #include "gdalalgorithm.h"
      17             : 
      18             : //! @cond Doxygen_Suppress
      19             : 
      20             : /************************************************************************/
      21             : /*                    GDALRasterOverviewAlgorithmAdd                    */
      22             : /************************************************************************/
      23             : 
      24             : class GDALRasterOverviewAlgorithmAdd final : public GDALAlgorithm
      25             : {
      26             :   public:
      27             :     static constexpr const char *NAME = "add";
      28             :     static constexpr const char *DESCRIPTION = "Adding overviews.";
      29             :     static constexpr const char *HELP_URL =
      30             :         "/programs/gdal_raster_overview_add.html";
      31             : 
      32          13 :     static std::vector<std::string> GetAliases()
      33             :     {
      34          13 :         return {};
      35             :     }
      36             : 
      37             :     GDALRasterOverviewAlgorithmAdd();
      38             : 
      39             :   private:
      40             :     bool RunImpl(GDALProgressFunc, void *) override;
      41             : 
      42             :     GDALArgDatasetValue m_dataset{};
      43             :     std::vector<std::string> m_openOptions{};
      44             :     std::vector<std::string> m_inputFormats{};
      45             :     std::string m_resampling{};
      46             :     std::vector<int> m_levels{};
      47             :     int m_minSize = 256;
      48             :     bool m_readOnly = false;
      49             : };
      50             : 
      51             : //! @endcond
      52             : 
      53             : #endif

Generated by: LCOV version 1.14