Salome HOME
Implementation of features cashing and undo/redo functionality in document.
[modules/shaper.git] / src / Model / Model_Object.h
index 6b1f785f4a6da6fd62553fb362d4482bb4fa5afb..9a778c99d6ae7a58ce5b3e41cd7d0104ba3fbbdf 100644 (file)
@@ -19,7 +19,7 @@ class ModelAPI_Attribute;
  * 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
@@ -36,28 +36,28 @@ class MODEL_EXPORT Model_Object: public ModelAPI_Object
 
 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