Salome HOME
EvalListener to evaluate expression from inputs
[modules/shaper.git] / src / ModelAPI / ModelAPI_Events.cpp
index 5127ad2b623fa1e9b044fdec42201226982f9a29..dbd088755502206ef3ce57e1cf4390110422115d 100644 (file)
@@ -85,7 +85,8 @@ std::list<std::string> ModelAPI_FeatureStateMessage::features() const
 }
 
 
-ModelAPI_DocumentCreatedMessage::ModelAPI_DocumentCreatedMessage(const Events_ID theID, const void* theSender)
+ModelAPI_DocumentCreatedMessage::ModelAPI_DocumentCreatedMessage(const Events_ID theID,
+                                                                 const void* theSender)
 : Events_Message(theID, theSender)
 {
 
@@ -105,3 +106,25 @@ void ModelAPI_DocumentCreatedMessage::setDocument(DocumentPtr theDocument)
 {
   myDocument = theDocument;
 }
+
+ModelAPI_AttributeEvalMessage::ModelAPI_AttributeEvalMessage(const Events_ID theID,
+                                                                         const void* theSender)
+: Events_Message(theID, theSender)
+{
+
+}
+
+ModelAPI_AttributeEvalMessage::~ModelAPI_AttributeEvalMessage()
+{
+
+}
+
+AttributePtr ModelAPI_AttributeEvalMessage::attribute() const
+{
+  return myAttribute;
+}
+
+void ModelAPI_AttributeEvalMessage::setAttribute(AttributePtr theDocument)
+{
+  myAttribute = theDocument;
+}