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

Method Set

gcore/gdalalgorithm.cpp:239–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237/************************************************************************/
238
239bool GDALAlgorithmArg::Set(bool value)
240{
241 if (m_decl.GetType() != GAAT_BOOLEAN)
242 {
243 CPLError(
244 CE_Failure, CPLE_AppDefined,
245 "Calling Set(bool) on argument '%s' of type %s is not supported",
246 GetName().c_str(), GDALAlgorithmArgTypeName(m_decl.GetType()));
247 return false;
248 }
249 return SetInternal(value);
250}
251
252bool GDALAlgorithmArg::ProcessString(std::string &value) const
253{

Callers 15

GDALPrintDriverListFunction · 0.45
SetDatasetNameMethod · 0.45
ParseArgumentMethod · 0.45
ProcessDatasetArgMethod · 0.45
ValidateArgumentsMethod · 0.45
gdalalgorithm.cppFile · 0.45

Calls 15

CPLErrorFunction · 0.85
GDALAlgorithmArgTypeNameFunction · 0.85
SetInternalFunction · 0.85
SetFunction · 0.85
CPLStrtodFunction · 0.85
moveFunction · 0.85
CheckCanSetDatasetObjectFunction · 0.85
CloseFunction · 0.85
GetNameFunction · 0.50
EQUALFunction · 0.50
to_stringFunction · 0.50
GetTypeMethod · 0.45

Tested by

no test coverage detected