GDAL
|
Object with metadata. More...
#include <gdal_priv.h>
Public Member Functions | |
int | GetMOFlags () const |
Returns the GMO_ flags. More... | |
void | SetMOFlags (int nFlagsIn) |
Assign GMO_flags. More... | |
virtual const char * | GetDescription () const |
Fetch object description. More... | |
virtual void | SetDescription (const char *) |
Set object description. More... | |
virtual char ** | GetMetadataDomainList () |
Fetch list of metadata domains. More... | |
virtual char ** | GetMetadata (const char *pszDomain="") |
Fetch metadata. More... | |
virtual CPLErr | SetMetadata (char **papszMetadata, const char *pszDomain="") |
Set metadata. More... | |
virtual const char * | GetMetadataItem (const char *pszName, const char *pszDomain="") |
Fetch single metadata item. More... | |
virtual CPLErr | SetMetadataItem (const char *pszName, const char *pszValue, const char *pszDomain="") |
Set single metadata item. More... | |
Static Public Member Functions | |
static GDALMajorObjectH | ToHandle (GDALMajorObject *poMajorObject) |
Convert a GDALMajorObject* to a GDALMajorObjectH. More... | |
static GDALMajorObject * | FromHandle (GDALMajorObjectH hMajorObject) |
Convert a GDALMajorObjectH to a GDALMajorObject*. More... | |
Protected Member Functions | |
char ** | BuildMetadataDomainList (char **papszList, int bCheckNonEmpty,...) CPL_NULL_TERMINATED |
Helper function for custom implementations of GetMetadataDomainList() More... | |
Object with metadata.
|
protected |
Helper function for custom implementations of GetMetadataDomainList()
papszList | initial list of domains. May be NULL. Will become invalid after function call (use return value) |
bCheckNonEmpty | if TRUE, each candidate domain will be tested to be non empty |
... | NULL terminated variadic list of candidate domains. |
|
inlinestatic |
Convert a GDALMajorObjectH to a GDALMajorObject*.
|
virtual |
Fetch object description.
The semantics of the returned description are specific to the derived type. For GDALDatasets it is the dataset name. For GDALRasterBands it is actually a description (if supported) or "".
This method is the same as the C function GDALGetDescription().
|
virtual |
Fetch metadata.
The returned string list is owned by the object, and may change at any time. It is formatted as a "Name=value" list with the last pointer value being NULL. Use the CPL StringList functions such as CSLFetchNameValue() to manipulate it.
Note that relatively few formats return any metadata at this time.
This method does the same thing as the C function GDALGetMetadata().
pszDomain | the domain of interest. Use "" or NULL for the default domain. |
Reimplemented in GDALRasterBand, GDALDataset, and GDALPamDataset.
|
virtual |
Fetch list of metadata domains.
The returned string list is the list of (non-empty) metadata domains.
This method does the same thing as the C function GDALGetMetadataDomainList().
Reimplemented in GDALDataset.
|
virtual |
Fetch single metadata item.
The C function GDALGetMetadataItem() does the same thing as this method.
pszName | the key for the metadata item to fetch. |
pszDomain | the domain to fetch for, use NULL for the default domain. |
Reimplemented in GDALRasterBand, GDALDataset, and GDALPamDataset.
int GDALMajorObject::GetMOFlags | ( | ) | const |
Returns the GMO_ flags.
|
virtual |
Set object description.
The semantics of the description are specific to the derived type. For GDALDatasets it is the dataset name. For GDALRasterBands it is actually a description (if supported) or "".
Normally application code should not set the "description" for GDALDatasets. It is handled internally.
This method is the same as the C function GDALSetDescription().
Reimplemented in GDALPamRasterBand.
|
virtual |
Set metadata.
The C function GDALSetMetadata() does the same thing as this method.
papszMetadataIn | the metadata in name=value string list format to apply. |
pszDomain | the domain of interest. Use "" or NULL for the default domain. |
Reimplemented in GDALRasterBand, GDALDataset, GDALPamRasterBand, and GDALPamDataset.
|
virtual |
Set single metadata item.
The C function GDALSetMetadataItem() does the same thing as this method.
pszName | the key for the metadata item to fetch. |
pszValue | the value to assign to the key. |
pszDomain | the domain to set within, use NULL for the default domain. |
Reimplemented in GDALDriver, GDALRasterBand, GDALDataset, GDALPamRasterBand, and GDALPamDataset.
void GDALMajorObject::SetMOFlags | ( | int | nNewFlags | ) |
Assign GMO_flags.
nNewFlags | new flags. |
|
inlinestatic |
Convert a GDALMajorObject* to a GDALMajorObjectH.