0022735: Data races in BRepMesh working in parallel mode
[occt.git] / src / IFSelect / IFSelect_IntParam.cxx
1 #include <IFSelect_IntParam.ixx>
2 #include <Interface_Static.hxx>
3
4
5     IFSelect_IntParam::IFSelect_IntParam ()
6       {  theval = 0;  }
7
8     void  IFSelect_IntParam::SetStaticName (const Standard_CString statname)
9       {  thestn.Clear();  thestn.AssignCat (statname);  }
10
11     Standard_Integer  IFSelect_IntParam::Value () const 
12 {
13   if (thestn.Length() == 0) return theval;
14   if (!Interface_Static::IsSet(thestn.ToCString()) ) return theval;
15   return Interface_Static::IVal(thestn.ToCString());
16 }
17
18     void  IFSelect_IntParam::SetValue (const Standard_Integer val)
19 {
20   theval = val;
21   if (thestn.Length() == 0) return;
22   if (!Interface_Static::IsPresent(thestn.ToCString()) ) return;
23   Interface_Static::SetIVal (thestn.ToCString(),theval);
24 }