LCOV - code coverage report
Current view: top level - apps - gdalalg_dataset_rename.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 3 3 100.0 %
Date: 2025-06-19 12:30:01 Functions: 3 3 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL
       4             :  * Purpose:  gdal "dataset rename" 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_RENAME_INCLUDED
      14             : #define GDALALG_DATASET_RENAME_INCLUDED
      15             : 
      16             : #include "gdalalgorithm.h"
      17             : #include "gdalalg_dataset_copy.h"
      18             : 
      19             : //! @cond Doxygen_Suppress
      20             : 
      21             : /************************************************************************/
      22             : /*                       GDALDatasetRenameAlgorithm                     */
      23             : /************************************************************************/
      24             : 
      25           6 : class GDALDatasetRenameAlgorithm final
      26             :     : public GDALDatasetCopyRenameCommonAlgorithm
      27             : {
      28             :   public:
      29             :     static constexpr const char *NAME = "rename";
      30             :     static constexpr const char *DESCRIPTION = "Rename files of a dataset.";
      31             :     static constexpr const char *HELP_URL =
      32             :         "/programs/gdal_dataset_rename.html";
      33             : 
      34          29 :     static std::vector<std::string> GetAliasesStatic()
      35             :     {
      36          87 :         return {"ren", "mv"};
      37             :     }
      38             : 
      39             :     GDALDatasetRenameAlgorithm();
      40             :     ~GDALDatasetRenameAlgorithm() override;
      41             : };
      42             : 
      43             : //! @endcond
      44             : 
      45             : #endif

Generated by: LCOV version 1.14