Salome HOME
Added a Fuse unit-test for High Level Object Hierarchy task
[modules/shaper.git] / src / Model / Model_ResultParameter.cpp
index 641155b1ef365f6d90014f48387593726847323e..953e22bac921b3bd8e2f5fcea146f6a44d856c26 100644 (file)
@@ -1,32 +1,38 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        Model_ResultParameter.h
-// Created:     02 Apr 2015
-// Author:      Sergey BELASH
-
-#ifndef MODEL_RESULTPARAMETER_H_
-#define MODEL_RESULTPARAMETER_H_
-
-#include "Model.h"
-#include <Model_Document.h>
-
-#include <ModelAPI_Data.h>
-#include <ModelAPI_ResultParameter.h>
-
-/**\class Model_ResultParameter
- * \ingroup DataModel
- * \brief
- */
-class Model_ResultParameter : public ModelAPI_ResultParameter
+// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or
+// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+//
+
+#include "Model_ResultParameter.h"
+#include <ModelAPI_AttributeDouble.h>
+#include <ModelAPI_AttributeString.h>
+
+Model_ResultParameter::~Model_ResultParameter()
 {
- public:
-  MODEL_EXPORT virtual ~Model_ResultParameter();
-  MODEL_EXPORT virtual void initAttributes();
 
- protected:
-  Model_ResultParameter();
+}
 
-  friend class Model_Document;
-};
+void Model_ResultParameter::initAttributes()
+{
+  data()->addAttribute(ModelAPI_ResultParameter::VALUE(),
+                       ModelAPI_AttributeDouble::typeId());
+}
 
-#endif
+Model_ResultParameter::Model_ResultParameter()
+{
+}