GDAL
gdalalg_dataset.h
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
17
18#include "gdalalgorithm.h"
19
20/************************************************************************/
21/* GDALDatasetAlgorithm */
22/************************************************************************/
23
24class 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 {
37 CPLError(CE_Failure, CPLE_AppDefined,
38 "The Run() method should not be called directly on the \"gdal "
39 "dataset\" program.");
40 return false;
41 }
42};
43
45
46#endif
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261
#define CPLE_AppDefined
Application defined error.
Definition cpl_error.h:85