1 // Copyright (C) 2007-2013 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.
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"
31 //============================================================================
32 /*! Function : SALOMEDSImpl_GenericVariable
35 //============================================================================
36 SALOMEDSImpl_GenericVariable::
37 SALOMEDSImpl_GenericVariable(SALOMEDSImpl_GenericVariable::VariableTypes theType,
38 const std::string& theName):
43 //============================================================================
44 /*! Function : ~SALOMEDSImpl_GenericVariable
47 //============================================================================
48 SALOMEDSImpl_GenericVariable::~SALOMEDSImpl_GenericVariable()
51 //============================================================================
55 //============================================================================
56 SALOMEDSImpl_GenericVariable::VariableTypes SALOMEDSImpl_GenericVariable::Type() const
61 //============================================================================
65 //============================================================================
66 std::string SALOMEDSImpl_GenericVariable::Name() const
71 //============================================================================
72 /*! Function : setType
75 //============================================================================
76 bool SALOMEDSImpl_GenericVariable::setType(const SALOMEDSImpl_GenericVariable::VariableTypes theType)
85 //============================================================================
86 /*! Function : setName
89 //============================================================================
90 bool SALOMEDSImpl_GenericVariable::setName(const std::string& theName)
92 if(_name.compare(theName) == 0)
99 //============================================================================
100 /*! Function : String2VariableType
103 //============================================================================
104 SALOMEDSImpl_GenericVariable::VariableTypes SALOMEDSImpl_GenericVariable::String2VariableType(const std::string& theStrType)
106 return(SALOMEDSImpl_GenericVariable::VariableTypes)atoi((char*)theStrType.c_str());
109 //============================================================================
113 //============================================================================
114 std::string SALOMEDSImpl_GenericVariable::Save() const
116 return std::string();
120 //============================================================================
121 /*! Function : SaveToScript
124 //============================================================================
125 std::string SALOMEDSImpl_GenericVariable::SaveToScript() const
127 return std::string();
129 //============================================================================
130 /*! Function : SaveType
133 //============================================================================
134 std::string SALOMEDSImpl_GenericVariable::SaveType() const
136 return std::string();
139 //============================================================================
143 //============================================================================
144 void SALOMEDSImpl_GenericVariable::Load(const std::string& theStrValue)