Salome HOME
Separate definition from declaration for each ModelAPI class
authorsbh <sergey.belash@opencascade.com>
Mon, 26 Jan 2015 11:53:56 +0000 (14:53 +0300)
committersbh <sergey.belash@opencascade.com>
Mon, 26 Jan 2015 11:53:56 +0000 (14:53 +0300)
33 files changed:
src/ModelAPI/CMakeLists.txt
src/ModelAPI/ModelAPI_Attribute.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_Attribute.h
src/ModelAPI/ModelAPI_AttributeBoolean.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeBoolean.h
src/ModelAPI/ModelAPI_AttributeDocRef.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeDocRef.h
src/ModelAPI/ModelAPI_AttributeDouble.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeDouble.h
src/ModelAPI/ModelAPI_AttributeInteger.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeInteger.h
src/ModelAPI/ModelAPI_AttributeRefAttr.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeRefAttr.h
src/ModelAPI/ModelAPI_AttributeRefList.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeRefList.h
src/ModelAPI/ModelAPI_AttributeReference.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeReference.h
src/ModelAPI/ModelAPI_AttributeSelection.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeSelection.h
src/ModelAPI/ModelAPI_AttributeSelectionList.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeSelectionList.h
src/ModelAPI/ModelAPI_AttributeString.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_AttributeString.h
src/ModelAPI/ModelAPI_Data.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_Data.h
src/ModelAPI/ModelAPI_Document.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_Document.h
src/ModelAPI/ModelAPI_Plugin.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_Plugin.h
src/ModelAPI/ModelAPI_ResultBody.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_ResultBody.h
src/ModelAPI/ModelAPI_ResultGroup.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_ResultGroup.h

index fc00bafd6dee6a738b2f166edf9f547c39d09310..738664c17187339a52195be27b47ecc5491339b3 100644 (file)
@@ -7,49 +7,65 @@ INCLUDE(UnitTest)
 
 SET(PROJECT_HEADERS
     ModelAPI.h
-    ModelAPI_Session.h
-    ModelAPI_Plugin.h
-    ModelAPI_Feature.h
-    ModelAPI_CompositeFeature.h
-    ModelAPI_Data.h
-    ModelAPI_Object.h
-    ModelAPI_Document.h
     ModelAPI_Attribute.h
-    ModelAPI_AttributeInteger.h
-    ModelAPI_AttributeDouble.h
+    ModelAPI_AttributeBoolean.h
     ModelAPI_AttributeDocRef.h
-    ModelAPI_AttributeReference.h
+    ModelAPI_AttributeDouble.h
+    ModelAPI_AttributeInteger.h
     ModelAPI_AttributeRefAttr.h
+    ModelAPI_AttributeReference.h
     ModelAPI_AttributeRefList.h
-    ModelAPI_AttributeBoolean.h
-    ModelAPI_AttributeString.h
     ModelAPI_AttributeSelection.h
     ModelAPI_AttributeSelectionList.h
+    ModelAPI_AttributeString.h
+    ModelAPI_AttributeValidator.h
+    ModelAPI_CompositeFeature.h
+    ModelAPI_Data.h
+    ModelAPI_Document.h
     ModelAPI_Events.h
-    ModelAPI_Validator.h
+    ModelAPI_Feature.h
     ModelAPI_FeatureValidator.h
+    ModelAPI_Object.h
+    ModelAPI_Plugin.h
+    ModelAPI_RefAttrValidator.h 
     ModelAPI_Result.h
     ModelAPI_ResultBody.h
     ModelAPI_ResultConstruction.h
-    ModelAPI_ResultPart.h
-    ModelAPI_ResultParameters.h
     ModelAPI_ResultGroup.h
+    ModelAPI_ResultParameters.h
+    ModelAPI_ResultPart.h
     ModelAPI_ResultValidator.h
-    ModelAPI_AttributeValidator.h
+    ModelAPI_Session.h
     ModelAPI_Tools.h
-    ModelAPI_RefAttrValidator.h 
+    ModelAPI_Validator.h
 )
 
 SET(PROJECT_SOURCES
+    ModelAPI_Attribute.cpp
+    ModelAPI_AttributeBoolean.cpp
+    ModelAPI_AttributeDocRef.cpp
+    ModelAPI_AttributeDouble.cpp
+    ModelAPI_AttributeInteger.cpp
+    ModelAPI_AttributeRefAttr.cpp
+    ModelAPI_AttributeReference.cpp
+    ModelAPI_AttributeRefList.cpp
+    ModelAPI_AttributeSelection.cpp
+    ModelAPI_AttributeSelectionList.cpp
+    ModelAPI_AttributeString.cpp
+    ModelAPI_CompositeFeature.cpp
+    ModelAPI_Data.cpp
+    ModelAPI_Document.cpp
     ModelAPI_Events.cpp
     ModelAPI_Feature.cpp
-    ModelAPI_Session.cpp
-    ModelAPI_Tools.cpp
     ModelAPI_Object.cpp
+    ModelAPI_Plugin.cpp
     ModelAPI_Result.cpp
-    ModelAPI_ResultPart.cpp
+    ModelAPI_ResultBody.cpp
     ModelAPI_ResultConstruction.cpp
-    ModelAPI_CompositeFeature.cpp
+    ModelAPI_ResultGroup.cpp
+    ModelAPI_ResultPart.cpp
+    ModelAPI_Session.cpp
+    ModelAPI_Tools.cpp
 )
 
 SET(PROJECT_LIBRARIES
diff --git a/src/ModelAPI/ModelAPI_Attribute.cpp b/src/ModelAPI/ModelAPI_Attribute.cpp
new file mode 100644 (file)
index 0000000..249353c
--- /dev/null
@@ -0,0 +1,74 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_Attribute.cpp
+// Created:     2 Apr 2014
+// Author:      Mikhail PONIKAROV
+
+#include <ModelAPI_Attribute.h>
+
+ModelAPI_Attribute::~ModelAPI_Attribute()
+{
+}
+
+  /// Sets the owner of this attribute
+void ModelAPI_Attribute::setObject(const std::shared_ptr<ModelAPI_Object>& theObject)
+{
+  myObject = theObject;
+}
+
+  /// Returns the owner of this attribute
+const std::shared_ptr<ModelAPI_Object>& ModelAPI_Attribute::owner() const
+{
+  return myObject;
+}
+
+  /// Returns true if attribute was  initialized by some value
+bool ModelAPI_Attribute::isInitialized()
+{
+  return myIsInitialized;
+}
+
+void ModelAPI_Attribute::setInitialized()
+{
+  myIsInitialized = true;
+}
+
+void ModelAPI_Attribute::setIsArgument(const bool theFlag)
+{
+  myIsArgument = theFlag;
+}
+
+bool ModelAPI_Attribute::isArgument()
+{
+  return myIsArgument;
+}
+
+bool ModelAPI_Attribute::setImmutable(const bool theFlag)
+{
+  bool aResult = myIsImmutable;
+  myIsImmutable = theFlag;
+  return aResult;
+}
+
+bool ModelAPI_Attribute::isImmutable()
+{
+  return myIsImmutable;
+}
+
+const std::string& ModelAPI_Attribute::id() const
+{
+  return myID;
+}
+
+ModelAPI_Attribute::ModelAPI_Attribute()
+{
+  myIsInitialized = false;
+  myIsArgument = true;
+  myIsImmutable = false;
+}
+
+  /// Sets the ID of the attribute in Data (called from Data)
+void ModelAPI_Attribute::setID(const std::string theID)
+{
+  myID = theID;
+}
index a8abce8b855e18ecdabcb40ac9d68bfce8c3d71f..a43bce2a89753766cbbb41467dd7de46e865328c 100644 (file)
@@ -34,83 +34,44 @@ class ModelAPI_Attribute
   MODELAPI_EXPORT virtual std::string attributeType() = 0;
 
   /// To virtually destroy the fields of successors
-  MODELAPI_EXPORT virtual ~ModelAPI_Attribute()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_Attribute();
 
   /// Sets the owner of this attribute
-  MODELAPI_EXPORT virtual void setObject(const std::shared_ptr<ModelAPI_Object>& theObject)
-  {
-    myObject = theObject;
-  }
+  MODELAPI_EXPORT virtual void setObject(const std::shared_ptr<ModelAPI_Object>& theObject);
 
   /// Returns the owner of this attribute
-  MODELAPI_EXPORT const std::shared_ptr<ModelAPI_Object>& owner() const
-  {
-    return myObject;
-  }
+  MODELAPI_EXPORT const std::shared_ptr<ModelAPI_Object>& owner() const;
 
   /// Returns true if attribute was  initialized by some value
-  MODELAPI_EXPORT bool isInitialized()
-  {
-    return myIsInitialized;
-  }
+  MODELAPI_EXPORT bool isInitialized();
 
   /// Makes attribute initialized
-  MODELAPI_EXPORT void setInitialized()
-  {
-    myIsInitialized = true;
-  }
+  MODELAPI_EXPORT void setInitialized();
 
   /// Set this attribute is argument for result (change of this attribute requires update of result).
   /// By default it is true.
-  MODELAPI_EXPORT void setIsArgument(const bool theFlag)
-  {
-    myIsArgument = theFlag;
-  }
+  MODELAPI_EXPORT void setIsArgument(const bool theFlag);
 
   /// Returns true if attribute causes the result change
-  MODELAPI_EXPORT bool isArgument()
-  {
-    return myIsArgument;
-  }
+  MODELAPI_EXPORT bool isArgument();
 
   /// Immutable argument can not be changed programaticaly (e.g. by constraint)
   /// By default it is false.
   /// Returns the previous state of the attribute's immutability.
-  MODELAPI_EXPORT bool setImmutable(const bool theFlag)
-  {
-    bool aResult = myIsImmutable;
-    myIsImmutable = theFlag;
-    return aResult;
-  }
+  MODELAPI_EXPORT bool setImmutable(const bool theFlag);
 
   /// Returns true if can not be changed programaticaly
-  MODELAPI_EXPORT bool isImmutable()
-  {
-    return myIsImmutable;
-  }
+  MODELAPI_EXPORT bool isImmutable();
 
   /// ID of the attribute in Data
-  MODELAPI_EXPORT const std::string& id() const
-  {
-    return myID;
-  }
+  MODELAPI_EXPORT const std::string& id() const;
 
  protected:
   /// Objects are created for features automatically
-  ModelAPI_Attribute()
-  {
-    myIsInitialized = false;
-    myIsArgument = true;
-    myIsImmutable = false;
-  }
+  ModelAPI_Attribute();
 
   /// Sets the ID of the attribute in Data (called from Data)
-  MODELAPI_EXPORT void setID(const std::string theID)
-  {
-    myID = theID;
-  }
+  MODELAPI_EXPORT void setID(const std::string theID);
 
   friend class Model_Data;
 };
diff --git a/src/ModelAPI/ModelAPI_AttributeBoolean.cpp b/src/ModelAPI/ModelAPI_AttributeBoolean.cpp
new file mode 100644 (file)
index 0000000..722c14f
--- /dev/null
@@ -0,0 +1,21 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeBoolean.cpp
+// Created:     2 june 2014
+// Author:      Vitaly Smetannikov
+
+#include "ModelAPI_AttributeBoolean.h"
+
+std::string ModelAPI_AttributeBoolean::attributeType()
+{
+  return type();
+}
+
+/// To virtually destroy the fields of successors
+ModelAPI_AttributeBoolean::~ModelAPI_AttributeBoolean()
+{
+}
+
+ModelAPI_AttributeBoolean::ModelAPI_AttributeBoolean()
+{
+}
index d7b9bac82db182c08b7b17aa23012445f6fd193d..122ffa70fdf700a67eb5c653e32a94005ca3da9e 100644 (file)
@@ -30,21 +30,14 @@ 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;
diff --git a/src/ModelAPI/ModelAPI_AttributeDocRef.cpp b/src/ModelAPI/ModelAPI_AttributeDocRef.cpp
new file mode 100644 (file)
index 0000000..6956383
--- /dev/null
@@ -0,0 +1,20 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeDocRef.cpp
+// Created:     2 Apr 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_AttributeDocRef.h"
+
+std::string ModelAPI_AttributeDocRef::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeDocRef::~ModelAPI_AttributeDocRef()
+{
+}
+
+ModelAPI_AttributeDocRef::ModelAPI_AttributeDocRef()
+{
+}
index 61c0c7b7f61a5f34c565b46b9dc2c19ca868810b..b1149c7f3ff873ff41b0e33822ab325ee3bb933a 100644 (file)
@@ -31,21 +31,14 @@ class ModelAPI_AttributeDocRef : 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_AttributeDocRef()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeDocRef();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeDocRef()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeDocRef();
 };
 
 typedef std::shared_ptr<ModelAPI_AttributeDocRef> AttributeDocRefPtr;
diff --git a/src/ModelAPI/ModelAPI_AttributeDouble.cpp b/src/ModelAPI/ModelAPI_AttributeDouble.cpp
new file mode 100644 (file)
index 0000000..7847dfa
--- /dev/null
@@ -0,0 +1,20 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeDouble.cpp
+// Created:     2 Apr 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_AttributeDouble.h"
+
+std::string ModelAPI_AttributeDouble::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeDouble::~ModelAPI_AttributeDouble()
+{
+}
+
+ModelAPI_AttributeDouble::ModelAPI_AttributeDouble()
+{
+}
index 121af02a5c083985ebcf3bf46bb1c5f604b456d8..498b4050901c7d0cdb4b54be64e5ebcf358684cf 100644 (file)
@@ -30,21 +30,14 @@ class ModelAPI_AttributeDouble : 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_AttributeDouble()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeDouble();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeDouble()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeDouble();
 };
 
 //! Pointer on double attribute
diff --git a/src/ModelAPI/ModelAPI_AttributeInteger.cpp b/src/ModelAPI/ModelAPI_AttributeInteger.cpp
new file mode 100644 (file)
index 0000000..afb2376
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeInteger.cpp
+// Created:     2 Apr 2014
+// Author:      Mikhail PONIKAROV
+
+#include <ModelAPI_AttributeInteger.h>
+
+
+std::string ModelAPI_AttributeInteger::attributeType()
+{
+  return type();
+}
+
+/// To virtually destroy the fields of successors
+ModelAPI_AttributeInteger::~ModelAPI_AttributeInteger()
+{
+}
+
+ModelAPI_AttributeInteger::ModelAPI_AttributeInteger()
+{
+}
index 676352b1977fa5a87bee53f2fcdb8f4928d748d3..c1bc9e6afec24f1ee67304c277ecfbeb9dd983fa 100644 (file)
@@ -34,21 +34,14 @@ class ModelAPI_AttributeInteger : 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_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
diff --git a/src/ModelAPI/ModelAPI_AttributeRefAttr.cpp b/src/ModelAPI/ModelAPI_AttributeRefAttr.cpp
new file mode 100644 (file)
index 0000000..35bd2d7
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeRefAttr.cpp
+// Created:     8 May 2014
+// Author:      Mikhail PONIKAROV
+
+
+#include "ModelAPI_AttributeRefAttr.h"
+
+
+std::string ModelAPI_AttributeRefAttr::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeRefAttr::~ModelAPI_AttributeRefAttr()
+{
+}
+
+ModelAPI_AttributeRefAttr::ModelAPI_AttributeRefAttr()
+{
+}
index bfbd03ff6f0c89a8f8a7380244a292fceda5f14f..bd4c7c4f41615c840b2bb7e69366ae7de959cda3 100644 (file)
@@ -41,21 +41,14 @@ class ModelAPI_AttributeRefAttr : 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_AttributeRefAttr()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeRefAttr();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeRefAttr()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeRefAttr();
 };
 
 typedef std::shared_ptr<ModelAPI_AttributeRefAttr> AttributeRefAttrPtr;
diff --git a/src/ModelAPI/ModelAPI_AttributeRefList.cpp b/src/ModelAPI/ModelAPI_AttributeRefList.cpp
new file mode 100644 (file)
index 0000000..ded44b2
--- /dev/null
@@ -0,0 +1,23 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeRefList.cpp
+// Created:     8 May 2014
+// Author:      Mikhail PONIKAROV
+
+
+#include "ModelAPI_AttributeRefList.h"
+
+std::string ModelAPI_AttributeRefList::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeRefList::~ModelAPI_AttributeRefList()
+{
+
+}
+
+ModelAPI_AttributeRefList::ModelAPI_AttributeRefList()
+{
+}
+
index 513404266b2a48278cd4b1dc306e1ccac4914564..9384d2855215acefab356e10b75e32e0a259c357 100644 (file)
@@ -26,10 +26,7 @@ class ModelAPI_AttributeRefList : 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();
 
   /// Appends the feature to the end of a list
   MODELAPI_EXPORT virtual void append(ObjectPtr theObject) = 0;
@@ -46,11 +43,11 @@ class ModelAPI_AttributeRefList : public ModelAPI_Attribute
  /// Returns the referenced object by the zero-based index
   MODELAPI_EXPORT virtual ObjectPtr object(const int theIndex) const = 0;
 
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeRefList();
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeRefList()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeRefList();
+
 };
 
 typedef std::shared_ptr<ModelAPI_AttributeRefList> AttributeRefListPtr;
diff --git a/src/ModelAPI/ModelAPI_AttributeReference.cpp b/src/ModelAPI/ModelAPI_AttributeReference.cpp
new file mode 100644 (file)
index 0000000..4c13608
--- /dev/null
@@ -0,0 +1,20 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeReference.cpp
+// Created:     8 May 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_AttributeReference.h"
+
+std::string ModelAPI_AttributeReference::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeReference::~ModelAPI_AttributeReference()
+{
+}
+
+ModelAPI_AttributeReference::ModelAPI_AttributeReference()
+{
+}
index 3f02aa9170823e66201ace4a2ae3fb6b156a5002..c90d78fe71fb6968bf40d6565bfa35acba4e2e32 100644 (file)
@@ -31,21 +31,14 @@ class ModelAPI_AttributeReference : 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_AttributeReference()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeReference();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeReference()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeReference();
 };
 
 typedef std::shared_ptr<ModelAPI_AttributeReference> AttributeReferencePtr;
diff --git a/src/ModelAPI/ModelAPI_AttributeSelection.cpp b/src/ModelAPI/ModelAPI_AttributeSelection.cpp
new file mode 100644 (file)
index 0000000..e5accc0
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeSelection.cpp
+// Created:     2 Oct 2014
+// Author:      Mikhail PONIKAROV
+
+
+#include "ModelAPI_AttributeSelection.h"
+
+
+std::string ModelAPI_AttributeSelection::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeSelection::~ModelAPI_AttributeSelection()
+{
+}
+
+ModelAPI_AttributeSelection::ModelAPI_AttributeSelection()
+{
+}
index fc7675f48b196a8ef2f8a5a251f6a521448e58d4..19b31f5416bbcf72d0a36782fe4acf7a81113978 100644 (file)
@@ -39,10 +39,7 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute
   }
 
   /// Returns the type of this class of attributes, not static method
-  virtual std::string attributeType()
-  {
-    return type();
-  }
+  virtual std::string attributeType();
 
   /// Returns a textual string of the selection
   virtual std::string namingName() = 0;
@@ -55,15 +52,11 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute
   virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName) = 0;
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_AttributeSelection()
-  {
-  }
+  virtual ~ModelAPI_AttributeSelection();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeSelection()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeSelection();
 };
 
 //! Pointer on double attribute
diff --git a/src/ModelAPI/ModelAPI_AttributeSelectionList.cpp b/src/ModelAPI/ModelAPI_AttributeSelectionList.cpp
new file mode 100644 (file)
index 0000000..e88f4c7
--- /dev/null
@@ -0,0 +1,21 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeSelectionList.cpp
+// Created:     22 Oct 2014
+// Author:      Mikhail PONIKAROV
+
+
+#include "ModelAPI_AttributeSelectionList.h"
+
+std::string ModelAPI_AttributeSelectionList::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeSelectionList::~ModelAPI_AttributeSelectionList()
+{
+}
+
+MODELAPI_EXPORT ModelAPI_AttributeSelectionList::ModelAPI_AttributeSelectionList()
+{
+}
index dbcdb0bc9561f6327881f863137b4300744bb272..04157e1c4f3577f633c4a93c08f890c4cfa4ad6f 100644 (file)
@@ -47,21 +47,14 @@ class ModelAPI_AttributeSelectionList : public ModelAPI_Attribute
   }
 
   /// Returns the type of this class of attributes, not static method
-  virtual std::string attributeType()
-  {
-    return type();
-  }
+  virtual std::string attributeType();
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_AttributeSelectionList()
-  {
-  }
+  virtual ~ModelAPI_AttributeSelectionList();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeSelectionList()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeSelectionList();
 };
 
 //! Pointer on double attribute
diff --git a/src/ModelAPI/ModelAPI_AttributeString.cpp b/src/ModelAPI/ModelAPI_AttributeString.cpp
new file mode 100644 (file)
index 0000000..19df8f5
--- /dev/null
@@ -0,0 +1,21 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_AttributeString.cpp
+// Created:     2 Apr 2014
+// Author:      Mikhail PONIKAROV
+
+
+#include "ModelAPI_AttributeString.h"
+
+std::string ModelAPI_AttributeString::attributeType()
+{
+  return type();
+}
+
+ModelAPI_AttributeString::~ModelAPI_AttributeString()
+{
+}
+
+ModelAPI_AttributeString::ModelAPI_AttributeString()
+{
+}
index 26f740113b5b4b055c10ac7bd12f4152e9a34f06..26f4b4e8a5f1f3e4797873938d88a3b338a65eeb 100644 (file)
@@ -32,21 +32,14 @@ class ModelAPI_AttributeString : 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_AttributeString()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeString();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeString()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeString();
 };
 
 //! Pointer on double attribute
diff --git a/src/ModelAPI/ModelAPI_Data.cpp b/src/ModelAPI/ModelAPI_Data.cpp
new file mode 100644 (file)
index 0000000..8ac37ce
--- /dev/null
@@ -0,0 +1,15 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_Data.cpp
+// Created:     21 Mar 2014
+// Author:      Mikhail PONIKAROV
+
+#include <ModelAPI_Data.h>
+
+ModelAPI_Data::~ModelAPI_Data()
+{
+}
+
+ModelAPI_Data::ModelAPI_Data()
+{
+}
index 03e21b36fef4ae3f239c4f87f496b714607e82fb..0b40d16f7b761f737449379d272c6cf5c8665ba1 100644 (file)
@@ -108,9 +108,7 @@ class MODELAPI_EXPORT ModelAPI_Data
   virtual void erase() = 0;
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_Data()
-  {
-  }
+  virtual ~ModelAPI_Data();
 
   /// Stores the state of the object to execute it later accordingly
   virtual void execState(const ModelAPI_ExecState theState) = 0;
@@ -133,9 +131,7 @@ class MODELAPI_EXPORT ModelAPI_Data
     std::list<std::pair<std::string, std::list<std::shared_ptr<ModelAPI_Object> > > >& theRefs) = 0;
  protected:
   /// Objects are created for features automatically
-  ModelAPI_Data()
-  {
-  }
+  ModelAPI_Data();
 };
 
 typedef std::shared_ptr<ModelAPI_Data> DataPtr;
diff --git a/src/ModelAPI/ModelAPI_Document.cpp b/src/ModelAPI/ModelAPI_Document.cpp
new file mode 100644 (file)
index 0000000..d0c6039
--- /dev/null
@@ -0,0 +1,16 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_Document.cpp
+// Created:     28 Feb 2014
+// Author:      Mikhail PONIKAROV
+
+#include <ModelAPI_Document.h>
+
+ModelAPI_Document::~ModelAPI_Document()
+{
+}
+
+/// Only for SWIG wrapping it is here
+ModelAPI_Document::ModelAPI_Document()
+{
+}
index 99311a6281a3cada2df4f015d19d6d6a3d7debf4..b0aabbec3569713383e07dbe439f5aecde2b6013 100644 (file)
@@ -67,9 +67,7 @@ public:
   virtual int size(const std::string& theGroupID, const bool theHidden = false) = 0;
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_Document()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_Document();
 
   /// Creates a construction cresults
   virtual std::shared_ptr<ModelAPI_ResultConstruction> createConstruction(
@@ -90,9 +88,7 @@ public:
 
 protected:
   /// Only for SWIG wrapping it is here
-  MODELAPI_EXPORT ModelAPI_Document()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_Document();
 };
 
 //! Pointer on document object
diff --git a/src/ModelAPI/ModelAPI_Plugin.cpp b/src/ModelAPI/ModelAPI_Plugin.cpp
new file mode 100644 (file)
index 0000000..ff5bc9b
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_Plugin.cpp
+// Created:     31 Mar 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_Plugin.h"
+
+ModelAPI_Plugin::~ModelAPI_Plugin()
+{
+
+}
index b23bf3f1244d42e7def9a94af7afd743a97e4d9c..6493a27e5548851ce11cbd490aaffbdd8a6ccfab 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        ModelAPI_Plugin.hxx
+// File:        ModelAPI_Plugin.h
 // Created:     31 Mar 2014
 // Author:      Mikhail PONIKAROV
 
@@ -25,9 +25,7 @@ class MODELAPI_EXPORT ModelAPI_Plugin
   virtual std::shared_ptr<ModelAPI_Feature> createFeature(std::string theFeatureID) = 0;
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_Plugin()
-  {
-  }
+  virtual ~ModelAPI_Plugin();
 };
 
 #endif
diff --git a/src/ModelAPI/ModelAPI_ResultBody.cpp b/src/ModelAPI/ModelAPI_ResultBody.cpp
new file mode 100644 (file)
index 0000000..9d00161
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_ResultBody.cpp
+// Created:     07 Jul 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_ResultBody.h"
+
+ModelAPI_ResultBody::~ModelAPI_ResultBody()
+{
+  
+}
+
+std::string ModelAPI_ResultBody::groupName()
+{
+  return group();
+}
+
index 7fce7f512ce2ed80263219c2e01cead61fce0d2a..ff4ce6e19819729ac8efc67b8e1a83a5194c7ea9 100644 (file)
 class ModelAPI_ResultBody : public ModelAPI_Result
 {
 public:
+  MODELAPI_EXPORT virtual ~ModelAPI_ResultBody();
   /// Returns the group identifier of this result
-  virtual std::string groupName()
-  {
-    return group();
-  }
+  MODELAPI_EXPORT virtual std::string groupName();
 
   /// Returns the group identifier of this result
   inline static std::string group()
diff --git a/src/ModelAPI/ModelAPI_ResultGroup.cpp b/src/ModelAPI/ModelAPI_ResultGroup.cpp
new file mode 100644 (file)
index 0000000..fc5f564
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        ModelAPI_ResultGroup.cpp
+// Created:     07 Jul 2014
+// Author:      Mikhail PONIKAROV
+
+#include "ModelAPI_ResultGroup.h"
+
+ModelAPI_ResultGroup::~ModelAPI_ResultGroup()
+{
+
+}
+
+std::string ModelAPI_ResultGroup::groupName()
+{
+  return group();
+}
+
index 372cea121acec8920b0605e366df77211b96bfeb..365445f4d6d3c30edb6ff214f4104a55345d870a 100644 (file)
 class ModelAPI_ResultGroup : public ModelAPI_Result
 {
 public:
+  MODELAPI_EXPORT virtual ~ModelAPI_ResultGroup();
   /// Returns the group identifier of this result
-  virtual std::string groupName()
-  {
-    return group();
-  }
+  MODELAPI_EXPORT virtual std::string groupName();
 
   /// Returns the group identifier of this result
   inline static std::string group()