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

Method GetParameter

Plugins/org.blueberry.core.commands/src/berryCommand.cpp:291–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291IParameter::Pointer Command::GetParameter(const QString& parameterId) const
292{
293 if (!this->IsDefined())
294 {
295 throw NotDefinedException(
296 "Cannot get a parameter from an undefined command. " + id);
297 }
298
299 for (int i = 0; i < parameters.size(); i++)
300 {
301 IParameter::Pointer parameter(parameters[i]);
302 if (parameter->GetId() == parameterId) {
303 return parameter;
304 }
305 }
306
307 return IParameter::Pointer(nullptr);
308}
309
310QList<SmartPointer<IParameter> > Command::GetParameters() const
311{

Callers 8

GetParameterTypeMethod · 0.95
MatchesRadioStateMethod · 0.45
ParameterizedCommandMethod · 0.45
GetNameMethod · 0.45
GetParameterMapMethod · 0.45
SerializeMethod · 0.45
GenerateCommandMethod · 0.45
ExecuteMethod · 0.45

Calls 3

IsDefinedMethod · 0.80
sizeMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected