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

Method ToString

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

Source from the content-addressed store, hash-verified

479}
480
481QString Command::ToString() const
482{
483 if (str.isEmpty())
484 {
485 QTextStream buffer(&str);
486
487 buffer << "Command(" << id << ',' << name << ",\n\t\t";
488 buffer << description << ",\n\t\t" << (category ? category->ToString() : QString(""));
489 buffer << ",\n\t\t" << (handler ? handler->ToString() : "");
490 buffer << ",\n\t\t" << "[";
491 for (int i = 0; i < parameters.size(); ++i)
492 {
493 buffer << parameters[i]->GetId();
494 }
495 buffer << "]," << (returnType ? returnType->ToString() : "");
496 buffer << "," << defined << ")";
497 }
498 return str;
499}
500
501void Command::Undefine()
502{

Callers 5

FirePreExecuteMethod · 0.45
SetHandlerMethod · 0.45
GetDescriptionMethod · 0.45
GetNameMethod · 0.45

Calls 3

QStringClass · 0.50
sizeMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected