GDAL
gdal_utils_priv.h
1 /******************************************************************************
2  * $Id: gdal_utils_priv.h 34921 2016-08-04 22:26:31Z rouault $
3  *
4  * Project: GDAL Utilities
5  * Purpose: GDAL Utilities Private Declarations.
6  * Author: Even Rouault <even.rouault at spatialys.com>
7  *
8  * ****************************************************************************
9  * Copyright (c) 2015, Even Rouault <even.rouault at spatialys.com>
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining a
12  * copy of this software and associated documentation files (the "Software"),
13  * to deal in the Software without restriction, including without limitation
14  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15  * and/or sell copies of the Software, and to permit persons to whom the
16  * Software is furnished to do so, subject to the following conditions:
17  *
18  * The above copyright notice and this permission notice shall be included
19  * in all copies or substantial portions of the Software.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27  * DEALINGS IN THE SOFTWARE.
28  ****************************************************************************/
29 
30 #ifndef GDAL_UTILS_PRIV_H_INCLUDED
31 #define GDAL_UTILS_PRIV_H_INCLUDED
32 
33 #ifndef DOXYGEN_SKIP
34 
35 #include "cpl_port.h"
36 #include "gdal_utils.h"
37 
38 /* This file is only meant at being used by the XXXX_bin.cpp and XXXX_lib.cpp files */
39 
41 
43 {
44  /* Filename to open. */
45  char* pszFilename;
46 
47  /* Open options. */
48  char** papszOpenOptions;
49 
50  /* > for reporting on a particular subdataset */
51  int nSubdataset;
52 };
53 
55 {
56  char* pszSource;
57  char* pszDest;
58  int bQuiet;
59  int bCopySubDatasets;
60  char** papszOpenOptions;
61  int bFormatExplicitlySet;
62  char* pszFormat;
63 };
64 
66 {
67  char** papszSrcFiles;
68  char* pszDstFilename;
69  int bQuiet;
70  char** papszOpenOptions;
71 
73  char **papszDestOpenOptions;
74 
75  int bOverwrite;
76  int bCreateOutput;
77  int bFormatExplicitlySet;
78  char* pszFormat;
79 };
80 
81 /* Access modes */
82 typedef enum
83 {
84  ACCESS_CREATION,
85  ACCESS_UPDATE, /* open existing output datasource in update mode rather than trying to create a new one */
86  ACCESS_APPEND, /* append to existing layer instead of creating new */
87  ACCESS_OVERWRITE /* delete the output layer and recreate it empty */
88 } GDALVectorTranslateAccessMode;
89 
91 {
92  char* pszDataSource;
93  char* pszDestDataSource;
94  int bQuiet;
95  char** papszOpenOptions;
96  int bFormatExplicitlySet;
97  char* pszFormat;
98  GDALVectorTranslateAccessMode eAccessMode;
99 };
100 
102 {
103  char* pszProcessing;
104  char* pszSrcFilename;
105  char* pszColorFilename;
106  char* pszDstFilename;
107  int bQuiet;
108  int bFormatExplicitlySet;
109  char* pszFormat;
110 };
111 
113 {
114  char* pszInFile;
115  char* pszOutFile;
116  int bQuiet;
117  int bFormatExplicitlySet;
118  char* pszFormat;
119 };
120 
122 {
123  char* pszSource;
124  char* pszDest;
125  int bQuiet;
126  int bFormatExplicitlySet;
127  char* pszFormat;
128 };
129 
131 {
132  char* pszSource;
133  char* pszDest;
134  int bQuiet;
135  int bFormatExplicitlySet;
136  char* pszFormat;
137  int bCreateOutput;
138 };
139 
141 {
142  int nSrcFiles;
143  char** papszSrcFiles;
144  char* pszDstFilename;
145  int bQuiet;
146  int bOverwrite;
147 };
148 
149 CPL_C_END
150 
151 #endif /* #ifndef DOXYGEN_SKIP */
152 
153 #endif /* GDAL_UTILS_PRIV_H_INCLUDED */
struct GDALBuildVRTOptionsForBinary GDALBuildVRTOptionsForBinary
Opaque type.
Definition: gdal_utils.h:204
Core portability definitions for CPL.
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:352
struct GDALRasterizeOptionsForBinary GDALRasterizeOptionsForBinary
Opaque type.
Definition: gdal_utils.h:185
struct GDALTranslateOptionsForBinary GDALTranslateOptionsForBinary
Opaque type.
Definition: gdal_utils.h:64
Public (C callable) GDAL Utilities entry points.
struct GDALWarpAppOptionsForBinary GDALWarpAppOptionsForBinary
Opaque type.
Definition: gdal_utils.h:84
struct GDALNearblackOptionsForBinary GDALNearblackOptionsForBinary
Opaque type.
Definition: gdal_utils.h:147
struct GDALGridOptionsForBinary GDALGridOptionsForBinary
Opaque type.
Definition: gdal_utils.h:166
struct GDALDEMProcessingOptionsForBinary GDALDEMProcessingOptionsForBinary
Opaque type.
Definition: gdal_utils.h:125
struct GDALInfoOptionsForBinary GDALInfoOptionsForBinary
Opaque type.
Definition: gdal_utils.h:52
struct GDALVectorTranslateOptionsForBinary GDALVectorTranslateOptionsForBinary
Opaque type.
Definition: gdal_utils.h:106
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:354

Generated for GDAL by doxygen 1.8.8.