X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FTest%2FTestParameterCreation.py;h=0c98f7a801e5d3294d4b9e03889b7080e5d2b166;hb=84f912d8ca079ae8f0a43826983e77acdfb68bf5;hp=69574c10aceca5459fc76dbb2b09bcd6afbbd468;hpb=2e9bead22dba0c11f4417fc3493f4b7f64ed3039;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/Test/TestParameterCreation.py b/src/ParametersPlugin/Test/TestParameterCreation.py index 69574c10a..0c98f7a80 100644 --- a/src/ParametersPlugin/Test/TestParameterCreation.py +++ b/src/ParametersPlugin/Test/TestParameterCreation.py @@ -1,16 +1,36 @@ +## 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 +## + """ TestParameterCreation.py - + class ParametersPlugin_Parameter static const std::string MY_PARAMETER_ID("Parameter"); static const std::string MY_VARIABLE_ID("variable"); static const std::string MY_EXPRESSION_ID("expression"); - + data()->addAttribute(ParametersPlugin_Parameter::VARIABLE_ID(), ModelAPI_AttributeString::typeId()); data()->addAttribute(ParametersPlugin_Parameter::EXPRESSION_ID(), ModelAPI_AttributeString::typeId()); - + class ModelAPI_ResultParameter static const std::string MY_VALUE_ID("Value"); static const std::string MY_VALUE_ID("State");