+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Model_Events.cxx
// Created: 10 Apr 2014
// Author: Mikhail PONIKAROV
Events_Loop::loop()->send(aMsg, true);
}
+void Model_EventCreator::sendReordered(const std::shared_ptr<ModelAPI_Document>& theDoc,
+ const std::string& theGroup) const
+{
+ std::shared_ptr<Model_OrderUpdatedMessage> aMsg(
+ new Model_OrderUpdatedMessage(theDoc, theGroup));
+ Events_Loop::loop()->send(aMsg, true);
+}
+
Model_EventCreator::Model_EventCreator()
{
ModelAPI_EventCreator::set(this);
myGroups.insert(*aGIter);
}
}
+
+/////////////////////// REORDERED MESSAGE /////////////////////////////
+Model_OrderUpdatedMessage::Model_OrderUpdatedMessage(
+ const std::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
+ : ModelAPI_OrderUpdatedMessage(messageId(), 0),
+ myDoc(theDoc), myGroup(theGroup)
+{
+}
+
+const Events_ID Model_OrderUpdatedMessage::messageId()
+{
+ static Events_ID MY_ID = Events_Loop::eventByName(EVENT_ORDER_UPDATED);
+ return MY_ID;
+}