You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
/******************************************************************************
|
|
*
|
|
* Project: GDAL
|
|
* Purpose: gdal "dataset delete" subcommand
|
|
* Author: Even Rouault <even dot rouault at spatialys.com>
|
|
*
|
|
******************************************************************************
|
|
* Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
****************************************************************************/
|
|
|
|
#ifndef GDALALG_DATASET_DELETE_INCLUDED
|
|
#define GDALALG_DATASET_DELETE_INCLUDED
|
|
|
|
#include "gdalalgorithm.h"
|
|
|
|
//! @cond Doxygen_Suppress
|
|
|
|
/************************************************************************/
|
|
/* GDALDatasetDeleteAlgorithm */
|
|
/************************************************************************/
|
|
|
|
class GDALDatasetDeleteAlgorithm final : public GDALAlgorithm
|
|
{
|
|
public:
|
|
static constexpr const char *NAME = "delete";
|
|
static constexpr const char *DESCRIPTION = "Delete dataset(s).";
|
|
static constexpr const char *HELP_URL =
|
|
"/programs/gdal_dataset_delete.html";
|
|
|
|
static std::vector<std::string> GetAliasesStatic()
|
|
{
|
|
return {"rm", "remove"};
|
|
}
|
|
|
|
GDALDatasetDeleteAlgorithm();
|
|
|
|
private:
|
|
std::vector<std::string> m_filename{};
|
|
std::string m_format{};
|
|
|
|
bool RunImpl(GDALProgressFunc, void *) override;
|
|
};
|
|
|
|
//! @endcond
|
|
|
|
#endif
|