13#ifndef GDALALG_MAIN_INCLUDED
14#define GDALALG_MAIN_INCLUDED
16#include "gdalalgorithm.h"
27 static constexpr const char *NAME =
29 static constexpr const char *DESCRIPTION =
"Main gdal entry point.";
30 static constexpr const char *HELP_URL =
"/programs/index.html";
38 const UsageOptions &usageOptions)
const override;
41 std::unique_ptr<GDALAlgorithm> m_subAlg{};
42 std::string m_output{};
43 bool m_showUsage =
true;
44 bool m_drivers =
false;
45 bool m_version =
false;
47 bool RunImpl(GDALProgressFunc,
void *)
override;
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261
virtual std::string GetUsageForCLI(bool shortUsage, const UsageOptions &usageOptions=UsageOptions()) const
Return the usage as a string appropriate for command-line interface --help output.
Definition gdalalgorithm.cpp:5909
virtual bool ParseCommandLineArguments(const std::vector< std::string > &args)
Parse a command line argument, which does not include the algorithm name, to set the value of corresp...
Definition gdalalgorithm.cpp:2003
static constexpr const char * ROOT_ALG_NAME
Name of the root "gdal" algorithm.
Definition gdalalgorithm_cpp.h:3123