1 // File: Model_Events.cxx
2 // Created: 10 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #include <Model_Events.h>
6 #include <Events_Loop.h>
9 //Events_MessageGroup* Model_FeatureDeletedMessage::newEmpty() {
10 // return new Model_FeatureDeletedMessage(myDoc, "");
13 //Model_FeatureDeletedMessage::Model_FeatureDeletedMessage(
14 // const boost::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
15 // : Events_MessageGroup(messageId(), 0), myDoc(theDoc)
18 // if (!theGroup.empty())
19 // myGroups.insert(theGroup);
22 //const Events_ID Model_FeatureDeletedMessage::messageId()
24 // static Events_ID MY_ID = Events_Loop::eventByName(EVENT_FEATURE_DELETED);
28 //void Model_FeatureDeletedMessage::Join(Events_MessageGroup& theJoined)
30 // Model_FeatureDeletedMessage* aJoined = dynamic_cast<Model_FeatureDeletedMessage*>(&theJoined);
31 // std::set<std::string>::iterator aGIter = aJoined->myGroups.begin();
32 // for(; aGIter != aJoined->myGroups.end(); aGIter++) {
33 // myGroups.insert(*aGIter);