Salome HOME
Issue #1865: Create a field
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_RefAttr.h
index bc54e20789d32777a9d11b4a387ddd3a8235689b..d2ada9e9087b21e7d8836b7ed508a9768091310c 100644 (file)
@@ -1,5 +1,6 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 // Name   : ModelHighAPI_RefAttr.h
-// Purpose: 
+// Purpose:
 //
 // History:
 // 08/06/16 - Sergey POKHODENKO - Creation of the file
@@ -43,12 +44,16 @@ public:
   virtual ~ModelHighAPI_RefAttr();
 
   /// Fill attribute values
-  MODELHIGHAPI_EXPORT
-  virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeRefAttr> & theAttribute) const;
+  MODELHIGHAPI_EXPORT virtual
+    void fillAttribute(const std::shared_ptr<ModelAPI_AttributeRefAttr> & theAttribute) const;
 
   /// Append to list attribute
+  MODELHIGHAPI_EXPORT virtual
+    void appendToList(const std::shared_ptr<ModelAPI_AttributeRefAttrList> & theAttribute) const;
+
+  /// Check the object is empty
   MODELHIGHAPI_EXPORT
-  virtual void appendToList(const std::shared_ptr<ModelAPI_AttributeRefAttrList> & theAttribute) const;
+  bool isEmpty() const;
 
 private:
   enum VariantType { VT_ATTRIBUTE, VT_OBJECT } myVariantType;