X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_ResultParameter.h;h=d35f36d8b18bfe65947e448bfbacac5894ce2058;hb=8d9373fd00a410b2e9fc7ac6b0653716314ded2d;hp=08c3e2db77dff3056c161978c6caf0f6e39538ff;hpb=80d9dcc9384a77fb31ecf668598129083dca6675;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultParameter.h b/src/Model/Model_ResultParameter.h index 08c3e2db7..d35f36d8b 100644 --- a/src/Model/Model_ResultParameter.h +++ b/src/Model/Model_ResultParameter.h @@ -1,24 +1,45 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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 +// -// File: Model_ResultParameter.cpp -// Created: 02 Apr 2015 -// Author: Sergey BELASH +#ifndef MODEL_RESULTPARAMETER_H_ +#define MODEL_RESULTPARAMETER_H_ -#include "Model_ResultParameter.h" +#include "Model.h" +#include -Model_ResultParameter::~Model_ResultParameter() -{ - -} +#include +#include -void Model_ResultParameter::initAttributes() +/**\class Model_ResultParameter + * \ingroup DataModel + * \brief Result of parameter expression. Contains only double value computed result attribute. + */ +class Model_ResultParameter : public ModelAPI_ResultParameter { - data()->addAttribute(ModelAPI_ResultParameter::VALUE(), - ModelAPI_AttributeDouble::typeId()); -} + public: + MODEL_EXPORT virtual ~Model_ResultParameter(); + MODEL_EXPORT virtual void initAttributes(); + protected: + Model_ResultParameter(); -Model_ResultParameter::Model_ResultParameter() -{ - setIsConcealed(false); -} + friend class Model_Objects; +}; + +#endif