GDAL
gdal_utils_priv.h
1 /******************************************************************************
2  * $Id$
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 #include "cpl_port.h"
34 #include "gdal_utils.h"
35 
36 /* This file is only meant at being used by the XXXX_bin.cpp and XXXX_lib.cpp files */
37 
38 CPL_C_START
39 
41 {
42  /* Filename to open. */
43  char* pszFilename;
44 
45  /* Open options. */
46  char** papszOpenOptions;
47 
48  /* > for reporting on a particular subdataset */
49  int nSubdataset;
50 };
51 
53 {
54  char* pszSource;
55  char* pszDest;
56  int bQuiet;
57  int bCopySubDatasets;
58  char** papszOpenOptions;
59  int bFormatExplicitlySet;
60  char* pszFormat;
61 };
62 
64 {
65  char** papszSrcFiles;
66  char* pszDstFilename;
67  int bQuiet;
68  char** papszOpenOptions;
69 
72 
73  int bOverwrite;
74  int bCreateOutput;
75  int bFormatExplicitlySet;
76  char* pszFormat;
77 };
78 
79 /* Access modes */
80 typedef enum
81 {
82  ACCESS_CREATION,
83  ACCESS_UPDATE, /* open existing output datasource in update mode rather than trying to create a new one */
84  ACCESS_APPEND, /* append to existing layer instead of creating new */
85  ACCESS_OVERWRITE /* delete the output layer and recreate it empty */
86 } GDALVectorTranslateAccessMode;
87 
89 {
90  char* pszDataSource;
91  char* pszDestDataSource;
92  int bQuiet;
93  char** papszOpenOptions;
94  int bFormatExplicitlySet;
95  char* pszFormat;
96  GDALVectorTranslateAccessMode eAccessMode;
97 };
98 
100 {
101  char* pszProcessing;
102  char* pszSrcFilename;
103  char* pszColorFilename;
104  char* pszDstFilename;
105  int bQuiet;
106  int bFormatExplicitlySet;
107  char* pszFormat;
108 };
109 
111 {
112  char* pszInFile;
113  char* pszOutFile;
114  int bQuiet;
115  int bFormatExplicitlySet;
116  char* pszFormat;
117 };
118 
120 {
121  char* pszSource;
122  char* pszDest;
123  int bQuiet;
124  int bFormatExplicitlySet;
125  char* pszFormat;
126 };
127 
129 {
130  char* pszSource;
131  char* pszDest;
132  int bQuiet;
133  int bFormatExplicitlySet;
134  char* pszFormat;
135  int bCreateOutput;
136 };
137 
139 {
140  int nSrcFiles;
141  char** papszSrcFiles;
142  char* pszDstFilename;
143  int bQuiet;
144  int bOverwrite;
145 };
146 
147 CPL_C_END
148 
149 #endif /* GDAL_UTILS_PRIV_H_INCLUDED */
Definition: gdal_utils_priv.h:119
Core portability definitions for CPL.
Definition: gdal_utils_priv.h:88
Definition: gdal_utils_priv.h:138
Public (C callable) GDAL Utilities entry points.
Definition: gdal_utils_priv.h:110
Definition: gdal_utils_priv.h:99
Definition: gdal_utils_priv.h:40
Definition: gdal_utils_priv.h:63
char ** papszDestOpenOptions
Definition: gdal_utils_priv.h:71
Definition: gdal_utils_priv.h:52
Definition: gdal_utils_priv.h:128

Generated for GDAL by doxygen 1.8.11.