2#include <State/Message.hpp>
4#include <Process/State/MessageNode.hpp>
10#include <score/model/Identifier.hpp>
15enum class ProcessPosition
26void findAndReplaceAddresses(
31void updateTreeWithMessageList(
35void updateTreeWithRemovedProcess(
41void updateTreeWithRemovedUserMessage(
44void updateTreeWithRemovedNode(
54#include <Scenario/Document/State/ItemModel/MessageItemModel.hpp>
58inline void updateModelWithMessageList(MessageItemModel& model, State::MessageList lst)
60 model.beginResetModel();
61 updateTreeWithMessageList(model.rootNode(), std::move(lst));
62 model.endResetModel();
65inline void renameAddress(
69 model.beginResetModel();
70 renameAddress(model.rootNode(), oldAddr, newAddr);
71 model.endResetModel();
75inline void updateModelWithMessageList(
76 MessageItemModel& model, State::MessageList lst,
79 model.beginResetModel();
80 updateTreeWithMessageList(model.rootNode(), std::move(lst), proc, pos);
81 model.endResetModel();
84inline void updateModelWithRemovedProcess(
87 model.beginResetModel();
88 updateTreeWithRemovedProcess(model.rootNode(), proc, pos);
89 model.endResetModel();
92inline void updateModelWithRemovedInterval(MessageItemModel& model, ProcessPosition pos)
94 model.beginResetModel();
95 updateTreeWithRemovedInterval(model.rootNode(), pos);
96 model.endResetModel();
99inline void updateModelWithRemovedUserMessage(
102 model.beginResetModel();
103 updateTreeWithRemovedUserMessage(model.rootNode(), addr);
104 model.endResetModel();
110 model.beginResetModel();
111 updateTreeWithRemovedNode(model.rootNode(), addr);
112 model.endResetModel();
115inline void removeAllUserMessages(MessageItemModel& model)
117 model.beginResetModel();
118 removeAllUserMessages(model.rootNode());
119 model.endResetModel();
The id_base_t class.
Definition Identifier.hpp:57
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1324
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Definition Address.hpp:108
The Address struct.
Definition Address.hpp:58