13#ifndef GDALALG_MANAGE_IDENTIFY_INCLUDED
14#define GDALALG_MANAGE_IDENTIFY_INCLUDED
16#include "gdalalgorithm.h"
18#include "cpl_json_streaming_writer.h"
26class GDALDatasetIdentifyAlgorithm final :
public GDALAlgorithm
29 static constexpr const char *NAME =
"identify";
30 static constexpr const char *DESCRIPTION =
31 "Identify driver opening dataset(s).";
32 static constexpr const char *HELP_URL =
33 "/programs/gdal_dataset_identify.html";
35 GDALDatasetIdentifyAlgorithm();
38 std::vector<std::string> m_filename{};
39 std::string m_format{};
40 CPLJSonStreamingWriter m_oWriter;
41 std::string m_output{};
42 bool m_recursive =
false;
43 bool m_forceRecursive =
false;
44 bool m_reportFailures =
false;
45 bool m_stdout =
false;
47 bool RunImpl(GDALProgressFunc,
void *)
override;
48 void Print(
const char *str);
49 bool Process(
const char *pszTarget,
CSLConstList papszSiblingList,
50 GDALProgressFunc pfnProgress,
void *pProgressData);
51 static void JSONPrint(
const char *pszTxt,
void *pUserData);
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1087