Coverage Report

Created: 2026-02-14 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/apps/gdalalg_dataset.h
Line
Count
Source
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
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
    bool RunImpl(GDALProgressFunc, void *) override
36
0
    {
37
0
        CPLError(CE_Failure, CPLE_AppDefined,
38
0
                 "The Run() method should not be called directly on the \"gdal "
39
0
                 "dataset\" program.");
40
0
        return false;
41
0
    }
42
};
43
44
//! @endcond
45
46
#endif