GDAL
|
The base class for all metadata readers. More...
#include <gdal_mdreader.h>
Public Member Functions | |
GDALMDReaderBase (const char *pszPath, char **papszSiblingFiles) | |
GDALMDReaderBase() | |
virtual | ~GDALMDReaderBase () |
~GDALMDReaderBase() | |
virtual char ** | GetMetadataDomain (const char *pszDomain) |
Get specified metadata domain. | |
virtual bool | FillMetadata (GDALMultiDomainMetadata *poMDMD) |
Fill provided metatada store class. | |
virtual const bool | HasRequiredFiles () const =0 |
Determine whether the input parameter correspond to the particular provider of remote sensing data completely. | |
virtual char ** | GetMetadataFiles () const =0 |
Get metadata file names. | |
Protected Member Functions | |
virtual void | LoadMetadata () |
Load metadata to the correspondent IMD, RPB, IMAGERY and DEFAULT domains. | |
virtual const time_t | GetAcquisitionTimeFromString (const char *pszDateTime) |
Convert string like 2012-02-25T00:25:59.9440000Z to time. | |
virtual char ** | ReadXMLToList (CPLXMLNode *psNode, char **papszList, const char *pszName="") |
ReadXMLToList Transform xml to list of NULL terminated name=value strings. | |
virtual char ** | AddXMLNameValueToList (char **papszList, const char *pszName, const char *pszValue) |
AddXMLNameValueToList Execute from ReadXMLToList to add name and value to list. | |
Protected Attributes | |
char ** | m_papszIMDMD |
char ** | m_papszRPCMD |
char ** | m_papszIMAGERYMD |
char ** | m_papszDEFAULTMD |
bool | m_bIsMetadataLoad |
The base class for all metadata readers.
char ** GDALMDReaderBase::AddXMLNameValueToList | ( | char ** | papszList, |
const char * | pszName, | ||
const char * | pszValue | ||
) | [protected, virtual] |
AddXMLNameValueToList Execute from ReadXMLToList to add name and value to list.
One can override this function for special processing input values before add to list.
papszList | A list to fill with name=value strings |
pszName | A name to add |
pszValue | A value to add |
bool GDALMDReaderBase::FillMetadata | ( | GDALMultiDomainMetadata * | poMDMD | ) | [virtual] |
Fill provided metatada store class.
poMDMD | Metatada store class |
const time_t GDALMDReaderBase::GetAcquisitionTimeFromString | ( | const char * | pszDateTime | ) | [protected, virtual] |
Convert string like 2012-02-25T00:25:59.9440000Z to time.
GetAcqisitionTimeFromString()
pszDateTime | String to convert |
char ** GDALMDReaderBase::GetMetadataDomain | ( | const char * | pszDomain | ) | [virtual] |
Get specified metadata domain.
GetMetadataItem()
pszDomain | The metadata domain to return |
virtual char** GDALMDReaderBase::GetMetadataFiles | ( | ) | const [pure virtual] |
Get metadata file names.
The caller become owner of returned list and have to free it via CSLDestroy.
virtual const bool GDALMDReaderBase::HasRequiredFiles | ( | ) | const [pure virtual] |
Determine whether the input parameter correspond to the particular provider of remote sensing data completely.
void GDALMDReaderBase::LoadMetadata | ( | ) | [protected, virtual] |
Load metadata to the correspondent IMD, RPB, IMAGERY and DEFAULT domains.
char ** GDALMDReaderBase::ReadXMLToList | ( | CPLXMLNode * | psNode, |
char ** | papszList, | ||
const char * | pszName = "" |
||
) | [protected, virtual] |
ReadXMLToList Transform xml to list of NULL terminated name=value strings.
CPLReadXMLToList()
psNode | A xml node to process |
papszList | A list to fill with name=value strings |
pszName | A name of parent node. For root xml node should be empty. If name is not empty, the sibling nodes will not proceed |