GDAL
|
The GDALSubdatasetInfo abstract class provides methods to extract and manipulate subdataset information from a file name that contains subdataset information. More...
#include <gdalsubdatasetinfo.h>
Public Member Functions | |
GDALSubdatasetInfo (const std::string &fileName) | |
Construct a GDALSubdatasetInfo object from a subdataset file descriptor. More... | |
std::string | GetPathComponent () const |
Returns the unquoted and unescaped path component of the complete file descriptor stripping any subdataset, prefix and additional information. More... | |
std::string | ModifyPathComponent (const std::string &newPathName) const |
Replaces the path component of the complete file descriptor by keeping the subdataset and any other component unaltered. More... | |
std::string | GetSubdatasetComponent () const |
Returns the subdataset component of the file name. More... | |
The GDALSubdatasetInfo abstract class provides methods to extract and manipulate subdataset information from a file name that contains subdataset information.
Drivers offering this functionality must override the parseFileName() method.
GDALSubdatasetInfo::GDALSubdatasetInfo | ( | const std::string & | fileName | ) |
Construct a GDALSubdatasetInfo object from a subdataset file descriptor.
fileName | The subdataset file name descriptor. |
std::string GDALSubdatasetInfo::GetPathComponent | ( | ) | const |
Returns the unquoted and unescaped path component of the complete file descriptor stripping any subdataset, prefix and additional information.
std::string GDALSubdatasetInfo::GetSubdatasetComponent | ( | ) | const |
Returns the subdataset component of the file name.
std::string GDALSubdatasetInfo::ModifyPathComponent | ( | const std::string & | newPathName | ) | const |
Replaces the path component of the complete file descriptor by keeping the subdataset and any other component unaltered.
The returned string must be freed with CPLFree()
newPathName | New path name with no subdataset information. |