2 #include <Scenario/Commands/ScenarioCommandFactory.hpp>
4 #include <score/command/Command.hpp>
5 #include <score/model/path/Path.hpp>
6 #include <score/model/path/PathSerialization.hpp>
19 return CommandFactoryName();
27 const CommandKey& key()
const noexcept
override {
return static_key(); }
28 QString description()
const override
37 , m_newName{std::move(newName)}
39 m_oldName = obj.metadata().getName();
44 auto& obj = m_path.find(ctx);
45 obj.metadata().setName(m_oldName);
50 auto& obj = m_path.find(ctx);
51 obj.metadata().setName(m_newName);
57 s << m_path << m_oldName << m_newName;
62 s >> m_path >> m_oldName >> m_newName;
73 SCORE_COMMAND_DECL_T(ChangeElementName<IntervalModel>)
74 SCORE_COMMAND_DECL_T(ChangeElementName<EventModel>)
75 SCORE_COMMAND_DECL_T(ChangeElementName<TimeSyncModel>)
76 SCORE_COMMAND_DECL_T(ChangeElementName<StateModel>)
77 SCORE_COMMAND_DECL_T(ChangeElementName<Process::ProcessModel>)
Definition: ChangeElementName.hpp:14
The Command class.
Definition: Command.hpp:34
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: DataStreamHelpers.hpp:103
Definition: DocumentContext.hpp:18