#include "ModelAPI.h"
#include <string>
-#include <boost/shared_ptr.hpp>
+#include <memory>
class ModelAPI_Object;
class ModelAPI_Attribute
{
///< needed here to emit signal that feature changed on change of the attribute
- boost::shared_ptr<ModelAPI_Object> myObject;
+ std::shared_ptr<ModelAPI_Object> myObject;
protected:
// accessible from the attributes
bool myIsInitialized;
}
/// Sets the owner of this attribute
- MODELAPI_EXPORT virtual void setObject(const boost::shared_ptr<ModelAPI_Object>& theObject)
+ MODELAPI_EXPORT virtual void setObject(const std::shared_ptr<ModelAPI_Object>& theObject)
{
myObject = theObject;
}
/// Returns the owner of this attribute
- MODELAPI_EXPORT const boost::shared_ptr<ModelAPI_Object>& owner() const
+ MODELAPI_EXPORT const std::shared_ptr<ModelAPI_Object>& owner() const
{
return myObject;
}
};
//! Pointer on attribute object
-typedef boost::shared_ptr<ModelAPI_Attribute> AttributePtr;
+typedef std::shared_ptr<ModelAPI_Attribute> AttributePtr;
#endif