Line data Source code
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 : 34 : //! @cond Doxygen_Suppress 35 : 36 : // For C API 37 : 38 : struct GDALExtendedDataTypeHS 39 : { 40 : std::unique_ptr<GDALExtendedDataType> m_poImpl; 41 : 42 6395 : explicit GDALExtendedDataTypeHS(GDALExtendedDataType *dt) : m_poImpl(dt) 43 : { 44 6395 : } 45 : }; 46 : 47 : struct GDALEDTComponentHS 48 : { 49 : std::unique_ptr<GDALEDTComponent> m_poImpl; 50 : 51 107 : explicit GDALEDTComponentHS(const GDALEDTComponent &component) 52 107 : : m_poImpl(new GDALEDTComponent(component)) 53 : { 54 107 : } 55 : }; 56 : 57 : struct GDALGroupHS 58 : { 59 : std::shared_ptr<GDALGroup> m_poImpl; 60 : 61 1379 : explicit GDALGroupHS(const std::shared_ptr<GDALGroup> &poGroup) 62 1379 : : m_poImpl(poGroup) 63 : { 64 1379 : } 65 : }; 66 : 67 : struct GDALMDArrayHS 68 : { 69 : std::shared_ptr<GDALMDArray> m_poImpl; 70 : 71 1939 : explicit GDALMDArrayHS(const std::shared_ptr<GDALMDArray> &poArray) 72 1939 : : m_poImpl(poArray) 73 : { 74 1939 : } 75 : }; 76 : 77 : struct GDALAttributeHS 78 : { 79 : std::shared_ptr<GDALAttribute> m_poImpl; 80 : 81 680 : explicit GDALAttributeHS(const std::shared_ptr<GDALAttribute> &poAttr) 82 680 : : m_poImpl(poAttr) 83 : { 84 680 : } 85 : }; 86 : 87 : struct GDALDimensionHS 88 : { 89 : std::shared_ptr<GDALDimension> m_poImpl; 90 : 91 4802 : explicit GDALDimensionHS(const std::shared_ptr<GDALDimension> &poDim) 92 4802 : : m_poImpl(poDim) 93 : { 94 4802 : } 95 : }; 96 : 97 : //! @endcond 98 : 99 : #endif // GDALMULTIDIM_PRIV_INCLUDED