GDAL

vrt_priv.h
1/******************************************************************************
2 * Project: Virtual GDAL Datasets
3 * Purpose: Declaration of VRT private stuff
4 * Author: Even Rouault <even dot rouault at spatialys.com>
5 *
6 ******************************************************************************
7 * Copyright (c) 2023, Even Rouault <even dot rouault at spatialys.com>
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 * DEALINGS IN THE SOFTWARE.
26 ****************************************************************************/
27
28#ifndef VRT_PRIV_H_INCLUDED
29#define VRT_PRIV_H_INCLUDED
30
31#ifndef DOXYGEN_SKIP
32
33#include "cpl_port.h"
34#include "gdal_priv.h"
35
36#include <string>
37#include <vector>
38
39struct CPL_DLL GTISourceDesc
40{
41 std::string osFilename{};
42 int nDstXOff = 0;
43 int nDstYOff = 0;
44 int nDstXSize = 0;
45 int nDstYSize = 0;
46};
47
48class GDALTileIndexDataset;
49
50GDALTileIndexDataset CPL_DLL *GDALDatasetCastToGTIDataset(GDALDataset *poDS);
51
52std::vector<GTISourceDesc> CPL_DLL
53GTIGetSourcesMoreRecentThan(GDALTileIndexDataset *poDS, int64_t mTime);
54
55 CPLStringList VRTParseCategoryNames(const CPLXMLNode *psCategoryNames);
56
57std::unique_ptr<GDALColorTable>
58VRTParseColorTable(const CPLXMLNode *psColorTable);
59
60#endif
61
62#endif // VRT_PRIV_H_INCLUDED
CPLStringList
String list class designed around our use of C "char**" string lists.
Definition: cpl_string.h:449
GDALDataset
A set of associated raster bands, usually from one file.
Definition: gdal_priv.h:490
cpl_port.h
Core portability definitions for CPL.
gdal_priv.h
C++ GDAL entry points.
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:71