1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_Object.cpp
4 // Created: 19 May 2014
5 // Author: Mikhail PONIKAROV
7 #include "ModelAPI_Object.h"
10 bool ModelAPI_Object::isInHistory()
15 std::shared_ptr<ModelAPI_Data> ModelAPI_Object::data() const
20 bool ModelAPI_Object::isSame(const std::shared_ptr<ModelAPI_Object>& theObject)
22 return theObject.get() == this;
25 std::shared_ptr<ModelAPI_Document> ModelAPI_Object::document() const
30 void ModelAPI_Object::attributeChanged(const std::string& theID)
34 ModelAPI_Object::~ModelAPI_Object()
38 void ModelAPI_Object::setData(std::shared_ptr<ModelAPI_Data> theData)
43 void ModelAPI_Object::setDoc(std::shared_ptr<ModelAPI_Document> theDoc)
48 void ModelAPI_Object::erase()
50 if (myData) myData->erase();