+ std::shared_ptr<Model_ObjectUpdatedMessage> aJoined =
+ std::dynamic_pointer_cast<Model_ObjectUpdatedMessage>(theJoined);
+ std::set<ObjectPtr>::iterator aFIter = aJoined->myObjects.begin();
+ for (; aFIter != aJoined->myObjects.end(); aFIter++) {
+ myObjects.insert(*aFIter);
+ }
+}
+
+/////////////////////// DELETED MESSAGE /////////////////////////////
+Model_ObjectDeletedMessage::Model_ObjectDeletedMessage(
+ const std::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
+ : ModelAPI_ObjectDeletedMessage(messageId(), 0)
+{
+ if (!theGroup.empty()) {
+ myGroups.push_back(
+ std::pair<std::shared_ptr<ModelAPI_Document>, std::string>(theDoc, theGroup));
+ }
+}
+
+std::shared_ptr<Events_MessageGroup> Model_ObjectDeletedMessage::newEmpty()
+{
+ static const std::shared_ptr<ModelAPI_Document> anEmpty;
+ return std::shared_ptr<Model_ObjectDeletedMessage>(new Model_ObjectDeletedMessage(anEmpty, ""));
+}
+
+const Events_ID Model_ObjectDeletedMessage::messageId()
+{
+ static Events_ID MY_ID = Events_Loop::eventByName(EVENT_OBJECT_DELETED);