Coverage Report

Created: 2026-07-25 06:50

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/apps/gdalalg_mdim_write.h
Line
Count
Source
1
/******************************************************************************
2
 *
3
 * Project:  GDAL
4
 * Purpose:  "write" step of "mdim pipeline"
5
 * Author:   Even Rouault <even dot rouault at spatialys.com>
6
 *
7
 ******************************************************************************
8
 * Copyright (c) 2026, Even Rouault <even dot rouault at spatialys.com>
9
 *
10
 * SPDX-License-Identifier: MIT
11
 ****************************************************************************/
12
13
#ifndef GDALALG_MDIM_WRITE_INCLUDED
14
#define GDALALG_MDIM_WRITE_INCLUDED
15
16
#include "gdalmdimpipelinestepalgorithm.h"
17
18
//! @cond Doxygen_Suppress
19
20
/************************************************************************/
21
/*                        GDALMdimWriteAlgorithm                        */
22
/************************************************************************/
23
24
class GDALMdimWriteAlgorithm final : public GDALMdimPipelineStepAlgorithm
25
{
26
  public:
27
    static constexpr const char *NAME = "write";
28
    static constexpr const char *DESCRIPTION =
29
        "Write a multidimensional dataset.";
30
    static constexpr const char *HELP_URL = "/programs/gdal_mdim_pipeline.html";
31
32
    GDALMdimWriteAlgorithm();
33
34
    bool CanBeLastStep() const override
35
0
    {
36
0
        return true;
37
0
    }
38
39
    bool GeneratesFilesFromUserInput() const override
40
0
    {
41
0
        return true;
42
0
    }
43
44
    bool IsNativelyStreamingCompatible() const override
45
0
    {
46
0
        return false;
47
0
    }
48
49
  private:
50
    friend class GDALMdimPipelineStepAlgorithm;
51
    bool RunStep(GDALPipelineStepRunContext &ctxt) override;
52
};
53
54
//! @endcond
55
56
#endif /* GDALALG_MDIM_WRITE_INCLUDED */