blob: 09f433efb847d3009311f867321cde3b5698661a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <IFSelect_IntParam.ixx>
#include <Interface_Static.hxx>
IFSelect_IntParam::IFSelect_IntParam ()
{ theval = 0; }
void IFSelect_IntParam::SetStaticName (const Standard_CString statname)
{ thestn.Clear(); thestn.AssignCat (statname); }
Standard_Integer IFSelect_IntParam::Value () const
{
if (thestn.Length() == 0) return theval;
if (!Interface_Static::IsSet(thestn.ToCString()) ) return theval;
return Interface_Static::IVal(thestn.ToCString());
}
void IFSelect_IntParam::SetValue (const Standard_Integer val)
{
theval = val;
if (thestn.Length() == 0) return;
if (!Interface_Static::IsPresent(thestn.ToCString()) ) return;
Interface_Static::SetIVal (thestn.ToCString(),theval);
}
|