15#ifndef GDALOPENINFO_H_INCLUDED
16#define GDALOPENINFO_H_INCLUDED
29 bool bHasGotSiblingFiles =
false;
30 char **papszSiblingFiles =
nullptr;
31 int nHeaderBytesTried = 0;
35 const char *
const *papszSiblingFiles =
nullptr);
39 char *pszFilename =
nullptr;
42 std::string osExtension{};
45 char **papszOpenOptions =
nullptr;
55 bool bIsDirectory =
false;
66 const char *
const *papszAllowedDrivers =
nullptr;
68 int TryToIngest(
int nBytes);
69 char **GetSiblingFiles();
70 char **StealSiblingFiles();
71 bool AreSiblingFilesLoaded()
const;
73 bool IsSingleAllowedDriver(
const char *pszDriverName)
const;
80 return EQUAL(osExtension.c_str(), pszExt);
Class for dataset open functions.
Definition gdal_openinfo.h:28
bool IsExtensionEqualToCI(const char *pszExt) const
Return whether the extension of the file is equal to pszExt, using case-insensitive comparison.
Definition gdal_openinfo.h:78
Core portability definitions for CPL.
#define EQUAL(a, b)
Alias for strcasecmp() == 0.
Definition cpl_port.h:541
#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
unsigned char GByte
Unsigned byte type.
Definition cpl_port.h:175
Public (C callable) GDAL entry points.
GDALAccess
Definition gdal.h:118
@ GA_ReadOnly
Definition gdal.h:119
Virtual file handle.
Definition cpl_vsi_virtual.h:48