MCPcopy Create free account
hub / github.com/OSGeo/gdal / BuildMetadataDomainList

Method BuildMetadataDomainList

gcore/gdalmajorobject.cpp:166–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 */
165
166char **GDALMajorObject::BuildMetadataDomainList(char **papszList,
167 int bCheckNonEmpty, ...)
168{
169 va_list args;
170 const char *pszDomain = nullptr;
171 va_start(args, bCheckNonEmpty);
172
173 while ((pszDomain = va_arg(args, const char *)) != nullptr)
174 {
175 if (CSLFindString(papszList, pszDomain) < 0 &&
176 (!bCheckNonEmpty || GetMetadata(pszDomain) != nullptr))
177 {
178 papszList = CSLAddString(papszList, pszDomain);
179 }
180 }
181
182 va_end(args);
183
184 return papszList;
185}
186
187/************************************************************************/
188/* GDALGetMetadataDomainList() */

Callers

nothing calls this directly

Calls 3

CSLFindStringFunction · 0.85
CSLAddStringFunction · 0.85
GetMetadataFunction · 0.70

Tested by

no test coverage detected