15#ifndef GDALOPENINFO_H_INCLUDED
16#define GDALOPENINFO_H_INCLUDED
31 bool bHasGotSiblingFiles =
false;
32 char **papszSiblingFiles =
nullptr;
33 int nHeaderBytesTried = 0;
35 void Init(
const char *
const *papszSiblingFilesIn,
36 std::unique_ptr<VSIVirtualHandle> poFile);
40 const char *
const *papszSiblingFilesIn =
nullptr);
42 std::unique_ptr<VSIVirtualHandle> poFile);
46 char *pszFilename =
nullptr;
49 std::string osExtension{};
52 char **papszOpenOptions =
nullptr;
62 bool bIsDirectory =
false;
73 const char *
const *papszAllowedDrivers =
nullptr;
75 int TryToIngest(
int nBytes);
76 char **GetSiblingFiles();
77 char **StealSiblingFiles();
78 bool AreSiblingFilesLoaded()
const;
80 bool IsSingleAllowedDriver(
const char *pszDriverName)
const;
87 return EQUAL(osExtension.c_str(), pszExt);
Class for dataset open functions.
Definition gdal_openinfo.h:30
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:85
Core portability definitions for CPL.
#define EQUAL(a, b)
Alias for strcasecmp() == 0.
Definition cpl_port.h:532
#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:1101
unsigned char GByte
Unsigned byte type.
Definition cpl_port.h:165
Public (C callable) GDAL entry points.
GDALAccess
Definition gdal.h:120
@ GA_ReadOnly
Definition gdal.h:121
Virtual file handle.
Definition cpl_vsi_virtual.h:48