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

Method SetDatasetName

gcore/gdalalgorithm.cpp:499–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499bool GDALAlgorithmArg::SetDatasetName(const std::string &name)
500{
501 if (m_decl.GetType() != GAAT_DATASET)
502 {
503 CPLError(CE_Failure, CPLE_AppDefined,
504 "Calling SetDatasetName() on argument '%s' of type %s is "
505 "not supported",
506 GetName().c_str(), GDALAlgorithmArgTypeName(m_decl.GetType()));
507 return false;
508 }
509 m_explicitlySet = true;
510 std::get<GDALArgDatasetValue *>(m_value)->Set(name);
511 return RunAllActions();
512}
513
514bool GDALAlgorithmArg::SetFrom(const GDALArgDatasetValue &other)
515{

Callers 2

TEST_FFunction · 0.80
ParseArgumentMethod · 0.80

Calls 6

CPLErrorFunction · 0.85
GDALAlgorithmArgTypeNameFunction · 0.85
GetNameFunction · 0.50
GetTypeMethod · 0.45
c_strMethod · 0.45
SetMethod · 0.45

Tested by 1

TEST_FFunction · 0.64