Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Project: GDAL 4 : * Purpose: gdal "vsi sozip" 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_VSI_SOZIP_INCLUDED 14 : #define GDALALG_VSI_SOZIP_INCLUDED 15 : 16 : #include "gdalalgorithm.h" 17 : 18 : //! @cond Doxygen_Suppress 19 : 20 : /************************************************************************/ 21 : /* GDALVSISOZIPAlgorithm */ 22 : /************************************************************************/ 23 : 24 : class GDALVSISOZIPAlgorithm final : public GDALAlgorithm 25 : { 26 : public: 27 : static constexpr const char *NAME = "sozip"; 28 : static constexpr const char *DESCRIPTION = 29 : "Seek-optimized ZIP (SOZIP) commands."; 30 : static constexpr const char *HELP_URL = "/programs/gdal_vsi_sozip.html"; 31 : 32 : GDALVSISOZIPAlgorithm(); 33 : 34 : private: 35 1 : bool RunImpl(GDALProgressFunc, void *) override 36 : { 37 1 : CPLError(CE_Failure, CPLE_AppDefined, 38 : "The Run() method should not be called directly on the \"gdal " 39 : "sozip\" program."); 40 1 : return false; 41 : } 42 : }; 43 : 44 : //! @endcond 45 : 46 : #endif