1 // Created on: 1994-01-24
2 // Created by: Gilles DEBARBOUILLE
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 // CRD : 03/07/97 : Portage Windows NT.
21 #include <Dynamic_BooleanParameter.ixx>
29 //#define strcasecmp _stricoll
33 //=======================================================================
34 //function : Dynamic_BooleanParameter
36 //=======================================================================
38 Dynamic_BooleanParameter::Dynamic_BooleanParameter
39 (const Standard_CString aparameter)
40 : Dynamic_Parameter(aparameter)
43 //=======================================================================
44 //function : Dynamic_BooleanParameter
46 //=======================================================================
48 Dynamic_BooleanParameter::Dynamic_BooleanParameter
49 (const Standard_CString aparameter,
50 const Standard_Boolean avalue)
51 : Dynamic_Parameter(aparameter)
56 //=======================================================================
57 //function : Dynamic_BooleanParameter
59 //=======================================================================
61 Dynamic_BooleanParameter::Dynamic_BooleanParameter
62 (const Standard_CString aparameter,
63 const Standard_CString avalue)
64 : Dynamic_Parameter(aparameter)
66 if (!strcasecmp(avalue,"Standard_True")) thevalue = Standard_True;
67 else if(!strcasecmp(avalue,"Standard_False")) thevalue = Standard_False;
68 else cout<<"BooleanParameter ("<<avalue<<") n'existe pas"<<endl;
71 //=======================================================================
74 //=======================================================================
76 Standard_Boolean Dynamic_BooleanParameter::Value() const
81 //=======================================================================
84 //=======================================================================
86 void Dynamic_BooleanParameter::Value(const Standard_Boolean avalue)
91 //=======================================================================
94 //=======================================================================
96 void Dynamic_BooleanParameter::Dump(Standard_OStream& astream) const
98 Dynamic_Parameter::Dump(astream);
99 astream<<" "<<thevalue;