MCPcopy Create free account
hub / github.com/commontk/CTK / parameter

Method parameter

Libs/CommandLineModules/Core/ctkCmdLineModuleDescription.cpp:136–146  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

134
135//----------------------------------------------------------------------------
136ctkCmdLineModuleParameter ctkCmdLineModuleDescription::parameter(const QString& name) const
137{
138 foreach(const ctkCmdLineModuleParameterGroup group, d->ParameterGroups)
139 {
140 if (group.hasParameter(name))
141 {
142 return group.parameter(name);
143 }
144 }
145 throw ctkInvalidArgumentException(QString("No parameter named \"%1\" available.").arg(name));
146}
147
148//----------------------------------------------------------------------------
149bool ctkCmdLineModuleDescription::hasReturnParameters() const

Callers 1

foreachFunction · 0.45

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected