MCPcopy Create free account
hub / github.com/MITK/MITK / RemoveProperty

Method RemoveProperty

Modules/Core/src/DataManagement/mitkBaseData.cpp:326–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void mitk::BaseData::RemoveProperty(const std::string &propertyKey, const std::string &contextName, bool fallBackOnDefaultContext)
327{
328 if (propertyKey.empty())
329 mitkThrow() << "Property key is empty.";
330
331 if (contextName.empty() || fallBackOnDefaultContext)
332 {
333 m_PropertyList->RemoveProperty(propertyKey);
334 return;
335 }
336
337 mitkThrow() << "Unknown or unsupported non-default property context.";
338}
339
340std::vector<std::string> mitk::BaseData::GetPropertyKeys(const std::string &/*contextName*/, bool /*includeDefaultContext*/) const
341{

Callers 4

mitkPropertyListTestFunction · 0.45
Disconnect_datalayerMethod · 0.45
DisconnectMethod · 0.45
Disconnect_datalayerMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by 2

mitkPropertyListTestFunction · 0.36
Disconnect_datalayerMethod · 0.36