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_newComments{std::move(newComments)}
39 m_oldComments = obj.metadata().getComment();
44 auto& obj = m_path.find(ctx);
45 obj.metadata().setComment(m_oldComments);
50 auto& obj = m_path.find(ctx);
51 obj.metadata().setComment(m_newComments);
57 s << m_path << m_oldComments << m_newComments;
62 s >> m_path >> m_oldComments >> m_newComments;
67 QString m_oldComments;
68 QString m_newComments;
73 SCORE_COMMAND_DECL_T(ChangeElementComments<IntervalModel>)
74 SCORE_COMMAND_DECL_T(ChangeElementComments<EventModel>)
75 SCORE_COMMAND_DECL_T(ChangeElementComments<TimeSyncModel>)
76 SCORE_COMMAND_DECL_T(ChangeElementComments<StateModel>)
77 SCORE_COMMAND_DECL_T(ChangeElementComments<Process::ProcessModel>)
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