Salome HOME
make compilable under debian linux
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeInteger.h
index 6e63cafe71d980334396716ed948ae4f4fce0a95..e683166d32179ffcc6c9a92b63a2c576d8fe985e 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_AttributeInteger.h
 // Created:     2 Apr 2014
 // Author:      Mikhail PONIKAROV
@@ -26,30 +28,23 @@ class ModelAPI_AttributeInteger : public ModelAPI_Attribute
   MODELAPI_EXPORT virtual int value() = 0;
 
   /// Returns the type of this class of attributes
-  MODELAPI_EXPORT static std::string type()
+  MODELAPI_EXPORT static std::string typeId()
   {
     return "Integer";
   }
 
   /// 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_AttributeInteger()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeInteger();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeInteger()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeInteger();
 };
 
 //! Pointer on double attribute
-typedef boost::shared_ptr<ModelAPI_AttributeInteger> AttributeIntegerPtr;
+typedef std::shared_ptr<ModelAPI_AttributeInteger> AttributeIntegerPtr;
 
 #endif