Salome HOME
Separate definition from declaration for each ModelAPI class
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeBoolean.h
index 2612e0eed431e900461d31477d3823bb727dfe8b..122ffa70fdf700a67eb5c653e32a94005ca3da9e 100644 (file)
@@ -1,9 +1,11 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_AttributeBoolean.h
 // Created:     2 june 2014
 // Author:      Vitaly Smetannikov
 
-#ifndef ModelAPI_AttributeBoolean_H_
-#define ModelAPI_AttributeBoolean_H_
+#ifndef MODELAPI_ATTRIBUTEBOOLEAN_H_
+#define MODELAPI_ATTRIBUTEBOOLEAN_H_
 
 #include "ModelAPI_Attribute.h"
 
@@ -28,21 +30,16 @@ class ModelAPI_AttributeBoolean : public ModelAPI_Attribute
   }
 
   /// Returns the type of this class of attributes, not static method
-  MODELAPI_EXPORT virtual std::string attributeType()
-  {
-    return type();
-  }
+  MODELAPI_EXPORT virtual std::string attributeType();
 
   /// To virtually destroy the fields of successors
-  MODELAPI_EXPORT virtual ~ModelAPI_AttributeBoolean()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeBoolean();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeBoolean()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeBoolean();
 };
 
+typedef std::shared_ptr<ModelAPI_AttributeBoolean> AttributeBooleanPtr;
+
 #endif