/src/gdal/apps/gdalalg_vsi.cpp
Line | Count | Source |
1 | | /****************************************************************************** |
2 | | * |
3 | | * Project: GDAL |
4 | | * Purpose: gdal "vsi" 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 | | //! @cond Doxygen_Suppress |
14 | | |
15 | | #include "gdalalg_vsi.h" |
16 | | |
17 | | #include "gdalalg_vsi_copy.h" |
18 | | #include "gdalalg_vsi_delete.h" |
19 | | #include "gdalalg_vsi_list.h" |
20 | | #include "gdalalg_vsi_move.h" |
21 | | #include "gdalalg_vsi_sync.h" |
22 | | #include "gdalalg_vsi_sozip.h" |
23 | | |
24 | | /************************************************************************/ |
25 | | /* GDALVSIAlgorithm */ |
26 | | /************************************************************************/ |
27 | | |
28 | | GDALVSIAlgorithm::GDALVSIAlgorithm() |
29 | 0 | : GDALAlgorithm(NAME, DESCRIPTION, HELP_URL) |
30 | 0 | { |
31 | 0 | RegisterSubAlgorithm<GDALVSICopyAlgorithm>(); |
32 | 0 | RegisterSubAlgorithm<GDALVSIDeleteAlgorithm>(); |
33 | 0 | RegisterSubAlgorithm<GDALVSIListAlgorithm>(); |
34 | 0 | RegisterSubAlgorithm<GDALVSIMoveAlgorithm>(); |
35 | 0 | RegisterSubAlgorithm<GDALVSISyncAlgorithm>(); |
36 | 0 | RegisterSubAlgorithm<GDALVSISOZIPAlgorithm>(); |
37 | 0 | } |
38 | | |
39 | | bool GDALVSIAlgorithm::RunImpl(GDALProgressFunc, void *) |
40 | 0 | { |
41 | 0 | CPLError(CE_Failure, CPLE_AppDefined, |
42 | 0 | "The Run() method should not be called directly on the \"gdal " |
43 | 0 | "vsi\" program."); |
44 | 0 | return false; |
45 | 0 | } |
46 | | |
47 | | //! @endcond |