1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_Attribute.cpp
5 // Author: Mikhail PONIKAROV
7 #include <ModelAPI_Attribute.h>
9 ModelAPI_Attribute::~ModelAPI_Attribute()
13 /// Sets the owner of this attribute
14 void ModelAPI_Attribute::setObject(const std::shared_ptr<ModelAPI_Object>& theObject)
19 /// Returns the owner of this attribute
20 const std::shared_ptr<ModelAPI_Object>& ModelAPI_Attribute::owner() const
25 /// Returns true if attribute was initialized by some value
26 bool ModelAPI_Attribute::isInitialized()
28 return myIsInitialized;
31 void ModelAPI_Attribute::setInitialized()
33 myIsInitialized = true;
36 void ModelAPI_Attribute::setIsArgument(const bool theFlag)
38 myIsArgument = theFlag;
41 bool ModelAPI_Attribute::isArgument()
46 bool ModelAPI_Attribute::setImmutable(const bool theFlag)
48 bool aResult = myIsImmutable;
49 myIsImmutable = theFlag;
53 bool ModelAPI_Attribute::isImmutable()
58 const std::string& ModelAPI_Attribute::id() const
63 ModelAPI_Attribute::ModelAPI_Attribute()
65 myIsInitialized = false;
67 myIsImmutable = false;
70 /// Sets the ID of the attribute in Data (called from Data)
71 void ModelAPI_Attribute::setID(const std::string theID)