* to get/set attributes from the document and compute result of an operation.
*/
-class MODEL_EXPORT Model_Object: public ModelAPI_Object
+class Model_Object: public ModelAPI_Object
{
TDF_Label myLab; ///< label of the feature in the document
/// All attributes of the object identified by the attribute ID
public:
/// Returns the name of the feature visible by the user in the object browser
- virtual std::string getName();
+ MODEL_EXPORT virtual std::string getName();
/// Defines the name of the feature visible by the user in the object browser
- virtual void setName(std::string theName);
+ MODEL_EXPORT virtual void setName(std::string theName);
/// Returns the attribute that references to another document
- virtual std::shared_ptr<ModelAPI_AttributeDocRef> docRef(const std::string theID);
+ MODEL_EXPORT virtual std::shared_ptr<ModelAPI_AttributeDocRef> docRef(const std::string theID);
/// Returns the attribute that contains real value with double precision
- virtual std::shared_ptr<ModelAPI_AttributeDouble> real(const std::string theID);
+ MODEL_EXPORT virtual std::shared_ptr<ModelAPI_AttributeDouble> real(const std::string theID);
/// Initializes object by the attributes: must be called just after the object is created
/// for each attribute of the object
/// \param theID identifier of the attribute that can be referenced by this ID later
/// \param theAttrType type of the created attribute (received from the type method)
- virtual void addAttribute(std::string theID, std::string theAttrType);
+ MODEL_EXPORT virtual void addAttribute(std::string theID, std::string theAttrType);
/// Returns the document of this data
- virtual std::shared_ptr<ModelAPI_Document> document() {return myDoc;}
+ MODEL_EXPORT virtual std::shared_ptr<ModelAPI_Document> document() {return myDoc;}
/// Puts feature to the document data sub-structure
- void setLabel(TDF_Label& theLab);
+ MODEL_EXPORT void setLabel(TDF_Label& theLab);
/// Sets the document of this data
- virtual void setDocument(const std::shared_ptr<ModelAPI_Document>& theDoc) {myDoc = theDoc;}
+ MODEL_EXPORT virtual void setDocument(const std::shared_ptr<ModelAPI_Document>& theDoc) {myDoc = theDoc;}
};
#endif