27 #include <QTextStream>
40 : applicationContext(appContext), command(cmd), parameters(params), trigger(trg)
47 return applicationContext;
56 const QString& parameterId)
const
60 throw ExecutionException(
61 "No command is associated with this execution event");
86 catch (NotDefinedException e)
88 throw ExecutionException(
"Command is not defined", e);
99 ParameterMap::const_iterator res = parameters.find(parameterId);
100 if (res != parameters.end())
118 QTextStream ss(&str);
119 ss <<
"ExecutionEvent(" << command->ToString() <<
',' << parameters.size() <<
','
120 << (trigger ? trigger->ToString() : QString()) <<
',' << applicationContext->ToString() <<
')';
berry::SmartPointer< const Self > ConstPointer
object value (collection of name/value pairs).
const Command::ConstPointer GetCommand() const
const Object::Pointer GetApplicationContext() const
QString GetParameter(const QString ¶meterId) const
const Object::ConstPointer GetObjectParameterForExecution(const QString ¶meterId) const
const Object::ConstPointer GetTrigger() const
QString ToString() const override
const ParameterMap & GetParameters() const
QHash< QString, QString > ParameterMap