Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Model / Model_Events.cpp
1 // File:        Model_Events.cxx
2 // Created:     10 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #include <Model_Events.h>
6 #include <Events_Loop.h>
7
8 ModelAPI_FeatureUpdatedMessage::ModelAPI_FeatureUpdatedMessage(
9   const boost::shared_ptr<ModelAPI_Document>& theDoc,
10   const boost::shared_ptr<ModelAPI_Feature>& theFeature, const Events_ID& theEvent)
11   : Events_Message(theEvent, 0), myFeature(theFeature), myDoc(theDoc)
12 {}
13
14 ModelAPI_FeatureDeletedMessage::ModelAPI_FeatureDeletedMessage(
15   const boost::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
16   : Events_Message(messageId(), 0), myDoc(theDoc), myGroup(theGroup)
17
18 {
19 }
20
21 const Events_ID ModelAPI_FeatureDeletedMessage::messageId()
22 {
23   static Events_ID MY_ID = Events_Loop::eventByName(EVENT_FEATURE_DELETED);
24   return MY_ID;
25 }