1 #include <Interface_FileParameter.ixx>
3 //=======================================================================
4 //function : Interface_FileParameter
6 //=======================================================================
7 Interface_FileParameter::Interface_FileParameter ()
9 thetype = Interface_ParamMisc; thenum = 0;
12 //=======================================================================
15 //=======================================================================
16 void Interface_FileParameter::Init(const TCollection_AsciiString& val,
17 const Interface_ParamType typ)
19 theval = new char[val.Length()+1];
20 strcpy(theval,val.ToCString());
25 //=======================================================================
28 //=======================================================================
29 void Interface_FileParameter::Init (const Standard_CString val,
30 const Interface_ParamType typ)
32 theval = (Standard_PCharacter)val; // Principe : Allocation geree par contenant (ParamSet)
36 //=======================================================================
39 //=======================================================================
40 Standard_CString Interface_FileParameter::CValue () const
44 //=======================================================================
45 //function : ParamType
47 //=======================================================================
48 Interface_ParamType Interface_FileParameter::ParamType () const
52 //=======================================================================
53 //function : SetEntityNumber
55 //=======================================================================
56 void Interface_FileParameter::SetEntityNumber (const Standard_Integer num)
60 //=======================================================================
61 //function : EntityNumber
63 //=======================================================================
64 Standard_Integer Interface_FileParameter::EntityNumber () const
68 //=======================================================================
71 //=======================================================================
72 void Interface_FileParameter::Clear ()
75 } // delete theval; pas si gere par ParamSet
76 //=======================================================================
79 //=======================================================================
80 void Interface_FileParameter::Destroy ()