13#ifndef GDALSUBDATASETINFO_H
14#define GDALSUBDATASETINFO_H
71 virtual void parseFileName() = 0;
76 static std::string quote(
const std::string &path);
81 static std::string unquote(
const std::string &path);
84 std::string m_fileName;
86 std::string m_pathComponent;
88 std::string m_cleanedPathComponent;
90 std::string m_subdatasetComponent;
92 std::string m_driverPrefixComponent;
94 bool m_isQuoted =
false;
97 mutable bool m_initialized =
false;
Core portability definitions for CPL.
GDALSubdatasetInfo(const std::string &fileName)
Construct a GDALSubdatasetInfo object from a subdataset file descriptor.
Definition gdalsubdatasetinfo.cpp:85
std::string GetPathComponent() const
Returns the unquoted and unescaped path component of the complete file descriptor stripping any subda...
Definition gdalsubdatasetinfo.cpp:93
std::string ModifyPathComponent(const std::string &newPathName) const
Replaces the path component of the complete file descriptor by keeping the subdataset and any other c...
Definition gdalsubdatasetinfo.cpp:100
std::string GetSubdatasetComponent() const
Returns the subdataset component of the file name.
Definition gdalsubdatasetinfo.cpp:128