15#ifndef CPL_CONV_H_INCLUDED
16#define CPL_CONV_H_INCLUDED
22#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
39void CPL_DLL CPLVerifyConfiguration(
void);
48const char CPL_DLL *CPL_STDCALL
52 const char *pszValue);
54 const char *pszDefinition);
67void CPL_DLL CPL_STDCALL CPLFreeConfig(
void);
75 int bOverrideEnvVars);
90#define CPLFree VSIFree
95char CPL_DLL *
CPLFGets(
char *,
int, FILE *);
105double CPL_DLL
CPLAtof(
const char *);
107double CPL_DLL
CPLStrtod(
const char *,
char **);
108double CPL_DLL
CPLStrtodM(
const char *,
char **);
110float CPL_DLL
CPLStrtof(
const char *,
char **);
117double CPL_DLL
CPLAtofM(
const char *);
135int CPL_DLL CPLPrintString(
char *,
const char *,
int);
136int CPL_DLL CPLPrintStringFill(
char *,
const char *,
int);
139int CPL_DLL
CPLPrintDouble(
char *,
const char *,
double,
const char *);
140int CPL_DLL
CPLPrintTime(
char *,
int,
const char *,
const struct tm *,
144#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
167#if defined(DOXYGEN_SKIP) || !defined(__cplusplus) || \
168 !defined(GDAL_COMPILATION) || \
169 (defined(__cplusplus) && defined(ALLOW_DEPRECATED_CPL_PATH_FUNCTIONS))
179 const char *pszPath,
const char *pszBasename,
182 const char *pszPath,
const char *pszBasename,
187 const char *pszSecondaryFilename)
213#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
223 const char *pszPath,
const char *pszBasename,
226 const
char *pszPath, const
char *pszBasename,
231 const
char *pszProjectDir,
242#if defined(GDAL_COMPILATION) || __cplusplus >= 201703L
243 std::string CPL_DLL CPLLexicallyNormalize(std::string_view svPath,
244 char sep1,
char sep2 = 0)
259typedef char const *(*CPLFileFinder)(
const char *,
const char *);
261const char CPL_DLL *
CPLFindFile(
const char *pszClass,
const char *pszBasename);
263 const char *pszBasename);
295void CPL_DLL CPLCleanupSharedFileMutex(
void);
302const char CPL_DLL *
CPLDecToDMS(
double dfAngle,
const char *pszAxis,
314int CPL_DLL
CPLCopyFile(
const char *pszNewPath,
const char *pszOldPath);
315int CPL_DLL
CPLCopyTree(
const char *pszNewPath,
const char *pszOldPath);
316int CPL_DLL
CPLMoveFile(
const char *pszNewPath,
const char *pszOldPath);
317int CPL_DLL
CPLSymlink(
const char *pszOldPath,
const char *pszNewPath,
349#define CPL_ZIP_API_OFFERED
351void CPL_DLL *
CPLCreateZip(
const char *pszZipFilename,
char **papszOptions);
353 char **papszOptions);
358 const char *pszInputFilename,
VSILFILE *fpInput,
360 GDALProgressFunc pProgressFunc,
361 void *pProgressData);
368void CPL_DLL *
CPLZLibDeflate(
const void *ptr,
size_t nBytes,
int nLevel,
369 void *outptr,
size_t nOutAvailableBytes,
371void CPL_DLL *
CPLZLibInflate(
const void *ptr,
size_t nBytes,
void *outptr,
372 size_t nOutAvailableBytes,
size_t *pnOutBytes);
374 size_t nOutAvailableBytes,
375 bool bAllowResizeOutptr,
size_t *pnOutBytes);
381 const char *pszXSDFilename,
389void CPLCleanupSetlocaleMutex(
void);
412#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
416 class CPL_DLL CPLLocaleC
431 class CPLThreadLocaleCPrivate;
433 class CPL_DLL CPLThreadLocaleC
442 CPLThreadLocaleCPrivate *m_private;
454#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
458 class CPL_DLL CPLConfigOptionSetter
462 CPLConfigOptionSetter(
const char *pszKey,
const char *pszValue,
463 bool bSetOnlyIfUndefined);
464 ~CPLConfigOptionSetter();
469 bool m_bRestoreOldValue;
476#if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
482#include <type_traits>
496 template <
typename To,
typename From>
inline To
down_cast(From *f)
499 (std::is_base_of<From,
500 typename std::remove_pointer<To>::type>::value),
501 "target type not derived from source type");
502 CPLAssert(f ==
nullptr ||
dynamic_cast<To
>(f) !=
nullptr);
503 return static_cast<To
>(f);
509 return a / b + (((a % b) == 0) ? 0 : 1);
std::string CPLFormatReadableFileSize(uint64_t nSizeInBytes)
Return a file size in a human readable way.
Definition cpl_conv.cpp:3956
std::string CPLGenerateTempFilenameSafe(const char *pszStem)
Generate temporary file name.
Definition cpl_path.cpp:1459
const char * CPLGetHomeDir(void)
Return the path to the home directory.
Definition cpl_path.cpp:1576
const char * CPLExpandTilde(const char *pszFilename)
Expands ~/ at start of filename.
Definition cpl_path.cpp:1555
void CPLDeclareKnownConfigOption(const char *pszKey, const char *pszDefinition)
Declare that the specified configuration option is known.
Definition cpl_conv.cpp:1974
void(* CPLSetConfigOptionSubscriber)(const char *pszKey, const char *pszValue, bool bThreadLocal, void *pUserData)
Callback for CPLSubscribeToSetConfigOption().
Definition cpl_conv.h:58
void * CPLCreateZip(const char *pszZipFilename, char **papszOptions)
Create ZIP file.
Definition cpl_conv.cpp:3607
double CPLAtofDelim(const char *, char)
Converts ASCII string to floating point number.
Definition cpl_strtod.cpp:58
void * CPLGetSymbol(const char *, const char *)
Fetch a function pointer from a shared library / DLL.
Definition cplgetsymbol.cpp:74
int CPLIsFilenameRelative(const char *pszFilename)
Is filename relative or absolute?
Definition cpl_path.cpp:1116
std::string CPLFormCIFilenameSafe(const char *pszPath, const char *pszBasename, const char *pszExtension=nullptr)
Case insensitive file searching, returning full path.
Definition cpl_path.cpp:899
const char * CPLReadLine2L(VSILFILE *, int, CSLConstList)
Simplified line reading from text file.
Definition cpl_conv.cpp:680
std::string CPLLaunderForFilenameSafe(const char *pszName, const char *pszOutputPath)
Launder a string to be compatible of a filename.
Definition cpl_path.cpp:1601
int CPLPrintUIntBig(char *, GUIntBig, int)
Print GUIntBig value into specified string buffer.
Definition cpl_conv.cpp:1357
std::string CPLProjectRelativeFilenameSafe(const char *pszProjectDir, const char *pszSecondaryFilename)
Find a file relative to a project file.
Definition cpl_path.cpp:1038
int CPLCopyTree(const char *pszNewPath, const char *pszOldPath)
Recursively copy a tree.
Definition cpl_conv.cpp:3221
void CPLCloseShared(FILE *)
Close shared file.
Definition cpl_conv.cpp:2978
float CPLStrtof(const char *, char **)
Converts ASCII string to floating point number.
Definition cpl_strtod.cpp:496
char * CPLsetlocale(int category, const char *locale)
Prevents parallel executions of setlocale().
Definition cpl_conv.cpp:3508
const char * CPLReadLine3L(VSILFILE *, int, int *, CSLConstList)
Simplified line reading from text file.
Definition cpl_conv.cpp:707
double CPLStrtod(const char *, char **)
Converts ASCII string to floating point number.
Definition cpl_strtod.cpp:388
T div_round_up(T a, U b)
Computes ceil(a/b) where a and b are integers.
Definition cpl_conv.h:507
struct CPLLockFileStruct * CPLLockFileHandle
Handle type returned by CPLLockFileEx().
Definition cpl_conv.h:336
const char * CPLGetExtension(const char *)
Extract filename extension from full filename.
Definition cpl_path.cpp:549
void CPLLoadConfigOptionsFromFile(const char *pszFilename, int bOverrideEnvVars)
Load configuration from a given configuration file.
Definition cpl_conv.cpp:2293
int CPLMoveFile(const char *pszNewPath, const char *pszOldPath)
Move a file.
Definition cpl_conv.cpp:3296
std::string CPLGetExtensionSafe(const char *)
Extract filename extension from full filename.
Definition cpl_path.cpp:498
std::string CPLResetExtensionSafe(const char *, const char *)
Replace the extension with the provided one.
Definition cpl_path.cpp:620
std::string CPLExpandTildeSafe(const char *pszFilename)
Expands ~/ at start of filename.
Definition cpl_path.cpp:1525
std::string CPLGetBasenameSafe(const char *)
Extract basename (non-directory, non-extension) portion of filename.
Definition cpl_path.cpp:423
char ** CPLGetThreadLocalConfigOptions(void)
Return the list of thread local configuration options as KEY=VALUE pairs.
Definition cpl_conv.cpp:2173
CPLLockFileStatus CPLLockFileEx(const char *pszLockFileName, CPLLockFileHandle *phLockFileHandle, CSLConstList papszOptions)
Create and acquire a lock file.
Definition cpl_conv.cpp:3775
int CPLPrintInt32(char *, GInt32, int)
Copy the string pointed to by pszSrc, NOT including the terminating `\0' character,...
Definition cpl_conv.cpp:1318
long CPLScanLong(const char *, int)
Scan up to a maximum number of characters from a string and convert the result to a long.
Definition cpl_conv.cpp:936
std::string CPLGetDirnameSafe(const char *)
Extract directory path portion of filename.
Definition cpl_path.cpp:274
void CPLSetConfigOptions(const char *const *papszConfigOptions)
Replace the full list of configuration options with the passed list of KEY=VALUE pairs.
Definition cpl_conv.cpp:1771
void * CPLRealloc(void *, size_t)
Safe version of realloc().
Definition cpl_conv.cpp:247
char const *(* CPLFileFinder)(const char *, const char *)
Callback for CPLPushFileFinder.
Definition cpl_conv.h:259
float CPLStrtofDelim(const char *, char **, char)
Converts ASCII string to floating point number using specified delimiter.
Definition cpl_strtod.cpp:452
char ** CPLCorrespondingPaths(const char *pszOldFilename, const char *pszNewFilename, CSLConstList papszFileList)
Identify corresponding paths.
Definition cpl_path.cpp:1320
void * CPLZLibInflate(const void *ptr, size_t nBytes, void *outptr, size_t nOutAvailableBytes, size_t *pnOutBytes)
Uncompress a buffer compressed with ZLib compression.
Definition cpl_conv.cpp:3643
int CPLSymlink(const char *pszOldPath, const char *pszNewPath, CSLConstList papszOptions)
Create a symbolic link.
Definition cpl_conv.cpp:3326
const char * CPLGetBasename(const char *)
Extract basename (non-directory, non-extension) portion of filename.
Definition cpl_path.cpp:468
const char * CPLLaunderForFilename(const char *pszName, const char *pszOutputPath)
Launder a string to be compatible of a filename.
Definition cpl_path.cpp:1634
void * CPLMalloc(size_t)
Safe version of malloc().
Definition cpl_conv.cpp:192
const char * CPLGetDirname(const char *)
Extract directory path portion of filename.
Definition cpl_path.cpp:362
CPLErr CPLAddFileInZip(void *hZip, const char *pszArchiveFilename, const char *pszInputFilename, VSILFILE *fpInput, CSLConstList papszOptions, GDALProgressFunc pProgressFunc, void *pProgressData)
Add a file inside a ZIP file opened/created with CPLCreateZip().
Definition cpl_minizip_zip.cpp:2360
int CPLGetExecPath(char *pszPathBuf, int nMaxLength)
Fetch path of executable.
Definition cpl_getexecpath.cpp:51
bool CPLHasPathTraversal(const char *pszFilename)
Return whether the filename contains a path traversal pattern.
Definition cpl_path.cpp:1660
const char * CPLFormCIFilename(const char *pszPath, const char *pszBasename, const char *pszExtension)
Case insensitive file searching, returning full path.
Definition cpl_path.cpp:998
char * CPLScanString(const char *, int, int, int)
Scan up to a maximum number of characters from a given string, allocate a buffer for a new string and...
Definition cpl_conv.cpp:876
bool CPLIsDebugEnabled(void)
Returns whether CPL_DEBUG is enabled.
Definition cpl_conv.cpp:1934
int CPLPrintTime(char *, int, const char *, const struct tm *, const char *)
Print specified time value accordingly to the format options and specified locale name.
Definition cpl_conv.cpp:1507
void CPLFinderClean(void)
CPLFinderClean.
Definition cpl_findfile.cpp:117
bool CPLHasUnbalancedPathTraversal(const char *pszFilename)
Return whether the filename contains a unbalanced path traversal pattern.
Definition cpl_path.cpp:1702
void * CPLCalloc(size_t, size_t)
Safe version of calloc().
Definition cpl_conv.cpp:162
GIntBig CPLAtoGIntBigEx(const char *pszString, int bWarn, int *pbOverflow)
Convert a string to a 64 bit signed integer.
Definition cpl_conv.cpp:1064
void * CPLScanPointer(const char *, int)
Extract pointer from string.
Definition cpl_conv.cpp:1112
const char * CPLGenerateTempFilename(const char *pszStem)
Generate temporary file name.
Definition cpl_path.cpp:1502
const char * CPLGetPath(const char *)
Extract directory path portion of filename.
Definition cpl_path.cpp:242
CPLErr CPLStringToComplex(const char *pszString, double *pdfReal, double *pdfImag)
Fetch the real and imaginary part of a serialized complex number.
Definition cpl_conv.cpp:2805
char * CPLStrdup(const char *)
Safe version of strdup() function.
Definition cpl_conv.cpp:315
CPLErr CPLCreateFileInZip(void *hZip, const char *pszFilename, char **papszOptions)
Create a file in a ZIP file.
Definition cpl_conv.cpp:3615
std::string CPLFormFilenameSafe(const char *pszPath, const char *pszBasename, const char *pszExtension=nullptr)
Build a full file path from a passed path, file basename and extension.
Definition cpl_path.cpp:709
void CPLLoadConfigOptionsFromPredefinedFiles(void)
Load configuration from a set of predefined files.
Definition cpl_conv.cpp:2489
char ** CPLGetConfigOptions(void)
Return the list of configuration options as KEY=VALUE pairs.
Definition cpl_conv.cpp:1746
double CPLStrtodM(const char *, char **)
Converts ASCII string to floating point number.
Definition cpl_strtod.cpp:415
double CPLDMSToDec(const char *is)
CPLDMSToDec.
Definition cpl_conv.cpp:2579
int CPLCheckForFile(char *pszFilename, CSLConstList papszSiblingList)
Check for file existence.
Definition cpl_conv.cpp:3569
const char * CPLCleanTrailingSlash(const char *)
Remove trailing forward/backward slash from the path for UNIX/Windows resp.
Definition cpl_path.cpp:1285
const char * CPLReadLineL(VSILFILE *)
Simplified line reading from text file.
Definition cpl_conv.cpp:656
const char * CPLReadLine(FILE *)
Simplified line reading from text file.
Definition cpl_conv.cpp:588
bool CPLIsInteractive(FILE *f)
Returns whether the provided file refers to a terminal.
Definition cpl_conv.cpp:3709
int CPLValidateXML(const char *pszXMLFilename, const char *pszXSDFilename, CSLConstList papszOptions)
Validate a XML file against a XML schema.
Definition cpl_xml_validate.cpp:1038
CPLErr CPLCloseZip(void *hZip)
Close ZIP file.
Definition cpl_conv.cpp:3630
std::string CPLGetPathSafe(const char *)
Extract directory path portion of filename.
Definition cpl_path.cpp:152
const char * CPLGetGlobalConfigOption(const char *, const char *)
Same as CPLGetConfigOption() but excludes environment variables and options set with CPLSetThreadLoca...
Definition cpl_conv.cpp:1816
const char * CPLResetExtension(const char *, const char *)
Replace the extension with the provided one.
Definition cpl_path.cpp:669
std::string CPLCleanTrailingSlashSafe(const char *pszPath)
Remove trailing forward/backward slash from the path for UNIX/Windows resp.
Definition cpl_path.cpp:1249
FILE * CPLOpenShared(const char *, const char *, int)
Open a shared file handle.
Definition cpl_conv.cpp:2906
void CPLPushFinderLocation(const char *)
CPLPushFinderLocation.
Definition cpl_findfile.cpp:235
char * CPLGetCurrentDir(void)
Get the current working directory name.
Definition cpl_path.cpp:599
void CPLPushFileFinder(CPLFileFinder pfnFinder)
CPLPushFileFinder.
Definition cpl_findfile.cpp:187
int CPLStat(const char *, VSIStatBuf *)
Same as VSIStat() except it works on "C:" as if it were "C:\".
Definition cpl_conv.cpp:2530
void CPLUnsubscribeToSetConfigOption(int nSubscriberId)
Remove a subscriber installed with CPLSubscribeToSetConfigOption().
Definition cpl_conv.cpp:1880
double CPLDecToPackedDMS(double dfDec)
Convert decimal degrees into packed DMS value (DDDMMMSSS.SS).
Definition cpl_conv.cpp:2788
const char * CPLExtractRelativePath(const char *, const char *, int *)
Get relative path from directory to target file.
Definition cpl_path.cpp:1158
const char * CPLGetThreadLocalConfigOption(const char *, const char *)
Same as CPLGetConfigOption() but only with options set with CPLSetThreadLocalConfigOption().
Definition cpl_conv.cpp:1785
void CPLPopFinderLocation(void)
CPLPopFinderLocation.
Definition cpl_findfile.cpp:274
double CPLAtofM(const char *)
Converts ASCII string to floating point number using any numeric locale.
Definition cpl_strtod.cpp:127
void CPLSetConfigOption(const char *, const char *)
Set a configuration option for GDAL/OGR use.
Definition cpl_conv.cpp:2075
char * CPLFGets(char *, int, FILE *)
Reads in at most one less than nBufferSize characters from the fp stream and stores them into the buf...
Definition cpl_conv.cpp:387
GIntBig CPLAtoGIntBig(const char *pszString)
Convert a string to a 64 bit signed integer.
Definition cpl_conv.cpp:1019
double CPLPackedDMSToDec(double)
Convert a packed DMS value (DDDMMMSSS.SS) into decimal degrees.
Definition cpl_conv.cpp:2754
void CPLDumpSharedList(FILE *)
Report open shared files.
Definition cpl_conv.cpp:3091
int CPLUnlinkTree(const char *)
Recursively unlink a directory.
Definition cpl_conv.cpp:3125
int CPLSubscribeToSetConfigOption(CPLSetConfigOptionSubscriber pfnCallback, void *pUserData)
Install a callback that will be notified of calls to CPLSetConfigOption()/ CPLSetThreadLocalConfigOpt...
Definition cpl_conv.cpp:1848
const char * CPLProjectRelativeFilename(const char *pszProjectDir, const char *pszSecondaryFilename)
Find a file relative to a project file.
Definition cpl_path.cpp:1091
GUIntBig CPLScanUIntBig(const char *, int)
Extract big integer from string.
Definition cpl_conv.cpp:994
const char * CPLDecToDMS(double dfAngle, const char *pszAxis, int nPrecision)
Translate a decimal degrees value to a DMS string with hemisphere.
Definition cpl_conv.cpp:2664
const char * CPLFindFile(const char *pszClass, const char *pszBasename)
CPLFindFile.
Definition cpl_findfile.cpp:164
double CPLScanDouble(const char *, int)
Extract double from string.
Definition cpl_conv.cpp:1178
int CPLIsPowerOfTwo(unsigned int i)
Definition cpl_conv.cpp:3534
const char * CPLGetConfigOption(const char *, const char *)
Get the value of a configuration option.
Definition cpl_conv.cpp:1697
unsigned long CPLScanULong(const char *, int)
Scan up to a maximum number of characters from a string and convert the result to a unsigned long.
Definition cpl_conv.cpp:964
void CPLSetThreadLocalConfigOption(const char *pszKey, const char *pszValue)
Set a configuration option for GDAL/OGR use.
Definition cpl_conv.cpp:2131
double CPLStrtodDelim(const char *, char **, char)
Converts ASCII string to floating point number using specified delimiter.
Definition cpl_strtod.cpp:218
void CPLUnlockFileEx(CPLLockFileHandle hLockFileHandle)
Release and delete a lock file.
Definition cpl_conv.cpp:3900
To down_cast(From *f)
Use cpl::down_cast<Derived*>(pointer_to_base) as equivalent of static_cast<Derived*>(pointer_to_base)...
Definition cpl_conv.h:496
int CPLGetRemainingFileDescriptorCount(void)
Return the number of file descriptors that can still be opened by the current process.
Definition cpl_conv.cpp:4017
const char * CPLGetFilename(const char *)
Extract non-directory portion of filename.
Definition cpl_path.cpp:391
char * CPLStrlwr(char *)
Convert each characters of the string to lower case.
Definition cpl_conv.cpp:341
CPLLockFileStatus
Return code of CPLLockFileEx().
Definition cpl_conv.h:327
@ CLFS_OK
CPLLockFileEx() succeeded.
Definition cpl_conv.h:328
@ CLFS_LOCK_BUSY
Lock already taken (and still alive).
Definition cpl_conv.h:330
@ CLFS_CANNOT_CREATE_LOCK
Lock file creation failed.
Definition cpl_conv.h:329
@ CLFS_API_MISUSE
API misuse.
Definition cpl_conv.h:331
@ CLFS_THREAD_CREATION_FAILED
Thread creation failed.
Definition cpl_conv.h:332
int CPLCopyFile(const char *pszNewPath, const char *pszOldPath)
Copy a file.
Definition cpl_conv.cpp:3208
char ** CPLGetKnownConfigOptions(void)
Return the list of known configuration options.
Definition cpl_conv.cpp:1990
const char * CPLFormFilename(const char *pszPath, const char *pszBasename, const char *pszExtension)
Build a full file path from a passed path, file basename and extension.
Definition cpl_path.cpp:863
int CPLPrintDouble(char *, const char *, double, const char *)
Print double value into specified string buffer.
Definition cpl_conv.cpp:1449
void * CPLZLibDeflate(const void *ptr, size_t nBytes, int nLevel, void *outptr, size_t nOutAvailableBytes, size_t *pnOutBytes)
Compress a buffer with ZLib compression.
Definition cpl_conv.cpp:3635
CPLErr CPLCloseFileInZip(void *hZip)
Close current file inside ZIP file.
Definition cpl_conv.cpp:3625
const char * CPLDefaultFindFile(const char *pszClass, const char *pszBasename)
CPLDefaultFindFile.
Definition cpl_findfile.cpp:132
CPLErr CPLWriteFileInZip(void *hZip, const void *pBuffer, int nBufferSize)
Write in current file inside a ZIP file.
Definition cpl_conv.cpp:3620
CPLFileFinder CPLPopFileFinder(void)
CPLPopFileFinder.
Definition cpl_findfile.cpp:224
int CPLPrintPointer(char *, void *, int)
Print pointer value into specified string buffer.
Definition cpl_conv.cpp:1405
void CPLSetThreadLocalConfigOptions(const char *const *papszConfigOptions)
Replace the full list of thread local configuration options with the passed list of KEY=VALUE pairs.
Definition cpl_conv.cpp:2202
void * CPLZLibInflateEx(const void *ptr, size_t nBytes, void *outptr, size_t nOutAvailableBytes, bool bAllowResizeOutptr, size_t *pnOutBytes)
Uncompress a buffer compressed with ZLib compression.
Definition cpl_vsil_gzip.cpp:5114
CPLSharedFileInfo * CPLGetSharedList(int *)
Fetch list of open shared files.
Definition cpl_conv.cpp:3069
double CPLAtof(const char *)
Converts ASCII string to floating point number.
Definition cpl_strtod.cpp:102
CPL error handling services.
#define CPLAssert(expr)
Assert on an expression.
Definition cpl_error.h:330
CPLErr
Error category.
Definition cpl_error.h:37
Core portability definitions for CPL.
unsigned long long GUIntBig
Large unsigned integer type (generally 64-bit unsigned integer type).
Definition cpl_port.h:208
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
#define CPL_RETURNS_NONNULL
Qualifier for a function that does not return NULL.
Definition cpl_port.h:908
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition cpl_port.h:936
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1087
#define CPL_WARN_UNUSED_RESULT
Qualifier to warn when the return value of a function is not used.
Definition cpl_port.h:870
int GInt32
Int32 type.
Definition cpl_port.h:165
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition cpl_port.h:205
struct VSIVirtualHandle VSILFILE
Opaque type for a FILE that implements the VSIVirtualHandle API.
Definition cpl_vsi.h:141
Information on a shared file.
Definition cpl_conv.h:282
char * pszAccess
Access mode.
Definition cpl_conv.h:287
FILE * fp
File pointer.
Definition cpl_conv.h:283
int nRefCount
Reference counter.
Definition cpl_conv.h:284
char * pszFilename
Filename.
Definition cpl_conv.h:286
int bLarge
Whether fp must be interpreted as VSIFILE*.
Definition cpl_conv.h:285