1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : SALOMEDSImpl_GenericVariable.cxx
21 // Author : Roman NIKOLAEV, Open CASCADE S.A.S.
24 #include "SALOMEDSImpl_GenericVariable.hxx"
25 #include "SALOMEDSImpl_Attributes.hxx"
26 #include "SALOMEDSImpl_Study.hxx"
32 //============================================================================
33 /*! Function : SALOMEDSImpl_GenericVariable
36 //============================================================================
37 SALOMEDSImpl_GenericVariable::
38 SALOMEDSImpl_GenericVariable(SALOMEDSImpl_GenericVariable::VariableTypes theType,
39 const std::string& theName):
44 //============================================================================
45 /*! Function : ~SALOMEDSImpl_GenericVariable
48 //============================================================================
49 SALOMEDSImpl_GenericVariable::~SALOMEDSImpl_GenericVariable()
52 //============================================================================
56 //============================================================================
57 SALOMEDSImpl_GenericVariable::VariableTypes SALOMEDSImpl_GenericVariable::Type() const
62 //============================================================================
66 //============================================================================
67 std::string SALOMEDSImpl_GenericVariable::Name() const
72 //============================================================================
73 /*! Function : setType
76 //============================================================================
77 bool SALOMEDSImpl_GenericVariable::setType(const SALOMEDSImpl_GenericVariable::VariableTypes theType)
86 //============================================================================
87 /*! Function : setName
90 //============================================================================
91 bool SALOMEDSImpl_GenericVariable::setName(const std::string& theName)
93 if(_name.compare(theName) == 0)
100 //============================================================================
101 /*! Function : String2VariableType
104 //============================================================================
105 SALOMEDSImpl_GenericVariable::VariableTypes SALOMEDSImpl_GenericVariable::String2VariableType(const std::string& theStrType)
107 return(SALOMEDSImpl_GenericVariable::VariableTypes)atoi((char*)theStrType.c_str());
110 //============================================================================
114 //============================================================================
115 std::string SALOMEDSImpl_GenericVariable::Save() const
117 return std::string();
121 //============================================================================
122 /*! Function : SaveToScript
125 //============================================================================
126 std::string SALOMEDSImpl_GenericVariable::SaveToScript() const
128 return std::string();
130 //============================================================================
131 /*! Function : SaveType
134 //============================================================================
135 std::string SALOMEDSImpl_GenericVariable::SaveType() const
137 return std::string();
140 //============================================================================
144 //============================================================================
145 void SALOMEDSImpl_GenericVariable::Load(const std::string& theStrValue)