forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgdalmultidim_priv.h
83 lines (65 loc) · 1.79 KB
/
gdalmultidim_priv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/******************************************************************************
* Name: gdalmultidim_priv.h
* Project: GDAL Core
* Purpose: GDAL private header for multidimensional support
* Author: Even Rouault <even.rouault at spatialys.com>
*
******************************************************************************
* Copyright (c) 2023, Even Rouault <even.rouault at spatialys.com>
*
* SPDX-License-Identifier: MIT
****************************************************************************/
#ifndef GDALMULTIDIM_PRIV_INCLUDED
#define GDALMULTIDIM_PRIV_INCLUDED
#include "gdal_priv.h"
//! @cond Doxygen_Suppress
// For C API
struct GDALExtendedDataTypeHS
{
std::unique_ptr<GDALExtendedDataType> m_poImpl;
explicit GDALExtendedDataTypeHS(GDALExtendedDataType *dt) : m_poImpl(dt)
{
}
};
struct GDALEDTComponentHS
{
std::unique_ptr<GDALEDTComponent> m_poImpl;
explicit GDALEDTComponentHS(const GDALEDTComponent &component)
: m_poImpl(new GDALEDTComponent(component))
{
}
};
struct GDALGroupHS
{
std::shared_ptr<GDALGroup> m_poImpl;
explicit GDALGroupHS(const std::shared_ptr<GDALGroup> &poGroup)
: m_poImpl(poGroup)
{
}
};
struct GDALMDArrayHS
{
std::shared_ptr<GDALMDArray> m_poImpl;
explicit GDALMDArrayHS(const std::shared_ptr<GDALMDArray> &poArray)
: m_poImpl(poArray)
{
}
};
struct GDALAttributeHS
{
std::shared_ptr<GDALAttribute> m_poImpl;
explicit GDALAttributeHS(const std::shared_ptr<GDALAttribute> &poAttr)
: m_poImpl(poAttr)
{
}
};
struct GDALDimensionHS
{
std::shared_ptr<GDALDimension> m_poImpl;
explicit GDALDimensionHS(const std::shared_ptr<GDALDimension> &poDim)
: m_poImpl(poDim)
{
}
};
//! @endcond
#endif // GDALMULTIDIM_PRIV_INCLUDED