GDAL

gdalmultidim_priv.h
1/******************************************************************************
2 * Name: gdalmultidim_priv.h
3 * Project: GDAL Core
4 * Purpose: GDAL private header for multidimensional support
5 * Author: Even Rouault <even.rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2023, Even Rouault <even.rouault at spatialys.com>
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a
11 * copy of this software and associated documentation files (the "Software"),
12 * to deal in the Software without restriction, including without limitation
13 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 * and/or sell copies of the Software, and to permit persons to whom the
15 * Software is furnished to do so, subject to the following conditions:
16 *
17 * The above copyright notice and this permission notice shall be included
18 * in all copies or substantial portions of the Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26 * DEALINGS IN THE SOFTWARE.
27 ****************************************************************************/
28
29#ifndef GDALMULTIDIM_PRIV_INCLUDED
30#define GDALMULTIDIM_PRIV_INCLUDED
31
32#include "gdal_priv.h"
33
35
36// For C API
37
38struct GDALExtendedDataTypeHS
39{
40 std::unique_ptr<GDALExtendedDataType> m_poImpl;
41
42 explicit GDALExtendedDataTypeHS(GDALExtendedDataType *dt) : m_poImpl(dt)
43 {
44 }
45};
46
47struct GDALEDTComponentHS
48{
49 std::unique_ptr<GDALEDTComponent> m_poImpl;
50
51 explicit GDALEDTComponentHS(const GDALEDTComponent &component)
52 : m_poImpl(new GDALEDTComponent(component))
53 {
54 }
55};
56
57struct GDALGroupHS
58{
59 std::shared_ptr<GDALGroup> m_poImpl;
60
61 explicit GDALGroupHS(const std::shared_ptr<GDALGroup> &poGroup)
62 : m_poImpl(poGroup)
63 {
64 }
65};
66
67struct GDALMDArrayHS
68{
69 std::shared_ptr<GDALMDArray> m_poImpl;
70
71 explicit GDALMDArrayHS(const std::shared_ptr<GDALMDArray> &poArray)
72 : m_poImpl(poArray)
73 {
74 }
75};
76
77struct GDALAttributeHS
78{
79 std::shared_ptr<GDALAttribute> m_poImpl;
80
81 explicit GDALAttributeHS(const std::shared_ptr<GDALAttribute> &poAttr)
82 : m_poImpl(poAttr)
83 {
84 }
85};
86
87struct GDALDimensionHS
88{
89 std::shared_ptr<GDALDimension> m_poImpl;
90
91 explicit GDALDimensionHS(const std::shared_ptr<GDALDimension> &poDim)
92 : m_poImpl(poDim)
93 {
94 }
95};
96
98
99#endif // GDALMULTIDIM_PRIV_INCLUDED
GDALEDTComponent
Class for a component of a compound extended data type.
Definition: gdal_priv.h:2677
GDALExtendedDataType
Class used to represent potentially complex data types.
Definition: gdal_priv.h:2541
gdal_priv.h
C++ GDAL entry points.