15#ifndef GDALMAJOROBJECT_H_INCLUDED
16#define GDALMAJOROBJECT_H_INCLUDED
22#include "gdal_multidomainmetadata.h"
25#define GMO_VALID 0x0001
26#define GMO_IGNORE_UNIMPLEMENTED 0x0002
27#define GMO_SUPPORT_MD 0x0004
28#define GMO_SUPPORT_MDMD 0x0008
29#define GMO_MD_DIRTY 0x0010
30#define GMO_PAM_CLASS 0x0020
48 GDALMultiDomainMetadata oMDMD{};
79 virtual char **
GetMetadata(
const char *pszDomain =
"");
81 const char *pszDomain =
"");
83 const char *pszDomain =
"");
85 const char *pszDomain =
"");
Convenient string class based on std::string.
Definition cpl_string.h:320
static GDALMajorObject * FromHandle(GDALMajorObjectH hMajorObject)
Convert a GDALMajorObjectH to a GDALMajorObject*.
Definition gdal_majorobject.h:96
GDALMajorObject & operator=(const GDALMajorObject &)=default
Copy assignment operator.
GDALMajorObject(const GDALMajorObject &)=default
Copy constructor.
static GDALMajorObjectH ToHandle(GDALMajorObject *poMajorObject)
Convert a GDALMajorObject* to a GDALMajorObjectH.
Definition gdal_majorobject.h:89
virtual CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain="")
Set single metadata item.
Definition gdalmajorobject.cpp:366
virtual CPLErr SetMetadata(char **papszMetadata, const char *pszDomain="")
Set metadata.
Definition gdalmajorobject.cpp:271
GDALMajorObject & operator=(GDALMajorObject &&)=default
Move assignment operator.
virtual char ** GetMetadataDomainList()
Fetch list of metadata domains.
Definition gdalmajorobject.cpp:143
virtual char ** GetMetadata(const char *pszDomain="")
Fetch metadata.
Definition gdalmajorobject.cpp:228
char ** BuildMetadataDomainList(char **papszList, int bCheckNonEmpty,...) CPL_NULL_TERMINATED
Helper function for custom implementations of GetMetadataDomainList().
Definition gdalmajorobject.cpp:166
int GetMOFlags() const
Returns the GMO_ flags.
Definition gdalmajorobject.cpp:411
virtual const char * GetMetadataItem(const char *pszName, const char *pszDomain="")
Fetch single metadata item.
Definition gdalmajorobject.cpp:322
GDALMajorObject(GDALMajorObject &&)=default
Move constructor.
void SetMOFlags(int nFlagsIn)
Assign GMO_flags.
Definition gdalmajorobject.cpp:424
virtual void SetDescription(const char *)
Set object description.
Definition gdalmajorobject.cpp:102
virtual const char * GetDescription() const
Fetch object description.
Definition gdalmajorobject.cpp:61
CPLErr
Error category.
Definition cpl_error.h:37
Core portability definitions for CPL.
#define CPL_NULL_TERMINATED
Null terminated variadic.
Definition cpl_port.h:832
Various convenience functions for working with strings and string lists.
Forward definitions of GDAL/OGR/OSR C handle types.
void * GDALMajorObjectH
Opaque type used for the C bindings of the C++ GDALMajorObject class.
Definition gdal_fwd.h:39