+
+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;
+}
+
+ModelAPI_ObjectRenamedMessage::ModelAPI_ObjectRenamedMessage(const Events_ID theID,
+ const void* theSender)
+: Events_Message(theID, theSender)
+{
+
+}
+
+ModelAPI_ObjectRenamedMessage::~ModelAPI_ObjectRenamedMessage()
+{
+
+}
+
+void ModelAPI_ObjectRenamedMessage::send(ObjectPtr theObject,
+ const std::string& theOldName,
+ const std::string& theNewName,
+ const void* theSender)
+{
+ std::shared_ptr<ModelAPI_ObjectRenamedMessage> aMessage(
+ new ModelAPI_ObjectRenamedMessage(eventId(), theSender));
+ aMessage->setObject(theObject);
+ aMessage->setOldName(theOldName);
+ aMessage->setNewName(theNewName);
+ Events_Loop::loop()->send(aMessage);
+}
+
+ObjectPtr ModelAPI_ObjectRenamedMessage::object() const
+{
+ return myObject;
+}
+
+void ModelAPI_ObjectRenamedMessage::setObject(ObjectPtr theObject)
+{
+ myObject = theObject;
+}
+
+std::string ModelAPI_ObjectRenamedMessage::oldName() const
+{
+ return myOldName;
+}
+
+void ModelAPI_ObjectRenamedMessage::setOldName(const std::string& theOldName)
+{
+ myOldName = theOldName;
+}
+
+std::string ModelAPI_ObjectRenamedMessage::newName() const
+{
+ return myNewName;
+}
+
+void ModelAPI_ObjectRenamedMessage::setNewName(const std::string& theNewName)
+{
+ myNewName = theNewName;
+}
+
+ModelAPI_ReplaceParameterMessage::ModelAPI_ReplaceParameterMessage(const Events_ID theID,
+ const void* theSender)
+: Events_Message(theID, theSender)
+{
+
+}
+
+ModelAPI_ReplaceParameterMessage::~ModelAPI_ReplaceParameterMessage()
+{
+
+}
+
+void ModelAPI_ReplaceParameterMessage::send(ObjectPtr theObject,
+ const void* theSender)
+{
+ std::shared_ptr<ModelAPI_ReplaceParameterMessage> aMessage(
+ new ModelAPI_ReplaceParameterMessage(eventId(), theSender));
+ aMessage->setObject(theObject);
+ Events_Loop::loop()->send(aMessage);
+}
+
+ObjectPtr ModelAPI_ReplaceParameterMessage::object() const
+{
+ return myObject;
+}
+
+void ModelAPI_ReplaceParameterMessage::setObject(ObjectPtr theObject)
+{
+ myObject = theObject;
+}
+
+
+// ===== ModelAPI_SolverFailedMessage =====
+ModelAPI_SolverFailedMessage::ModelAPI_SolverFailedMessage(const Events_ID theID, const void* theSender)
+ : Events_Message(theID, theSender)
+{
+}
+
+ModelAPI_SolverFailedMessage::~ModelAPI_SolverFailedMessage()
+{
+}
+
+void ModelAPI_SolverFailedMessage::setObjects(const std::set<ObjectPtr>& theObjects)
+{
+ myObjects = theObjects;
+}
+
+const std::set<ObjectPtr>& ModelAPI_SolverFailedMessage::objects() const
+{
+ return myObjects;
+}
+