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 
39 struct 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 
48 class GDALTileIndexDataset;
49 
50 GDALTileIndexDataset CPL_DLL *GDALDatasetCastToGTIDataset(GDALDataset *poDS);
51 
52 std::vector<GTISourceDesc> CPL_DLL
53 GTIGetSourcesMoreRecentThan(GDALTileIndexDataset *poDS, int64_t mTime);
54 
55 CPLStringList VRTParseCategoryNames(const CPLXMLNode *psCategoryNames);
56 
57 std::unique_ptr<GDALColorTable>
58 VRTParseColorTable(const CPLXMLNode *psColorTable);
59 
60 #endif
61 
62 #endif // VRT_PRIV_H_INCLUDED
String list class designed around our use of C "char**" string lists.
Definition: cpl_string.h:449
A set of associated raster bands, usually from one file.
Definition: gdal_priv.h:503
Core portability definitions for CPL.
C++ GDAL entry points.
Document node structure.
Definition: cpl_minixml.h:71