1 -- Created on: 1994-06-01
2 -- Created by: Modelistation
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.
17 class SetGlobalParameter from IGESSelect inherits ModelModifier from IGESSelect
19 ---Purpose : Sets a Global (Header) Parameter to a new value, directly given
20 -- Controls the form of the parameter (Integer, Real, String
21 -- with such or such form), but not the consistence of the new
22 -- value regarding the rest of the file.
24 -- The new value is given under the form of a HAsciiString, even
25 -- for Integer or Real values. For String values, Hollerith forms
26 -- are accepted but not mandatory
27 -- Warning : a Null (not set) value is not accepted. For an empty string,
28 -- give a Text Parameter which is empty
30 uses AsciiString from TCollection, HAsciiString from TCollection,
31 IGESModel, CopyTool, ContextModif
35 Create (numpar : Integer) returns SetGlobalParameter;
36 ---Purpose : Creates an SetGlobalParameter, to be applied on Global
39 GlobalNumber (me) returns Integer;
40 ---Purpose : Returns the global parameter number to which this modifiers
43 SetValue (me : mutable; text : HAsciiString);
44 ---Purpose : Sets a Text Parameter for the new value
46 Value (me) returns HAsciiString;
47 ---Purpose : Returns the value to set to the global parameter (Text Param)
50 Performing (me; ctx : in out ContextModif;
52 TC : in out CopyTool);
53 ---Purpose : Specific action : only <target> is used : the form of the new
54 -- value is checked regarding the parameter number (given at
57 Label (me) returns AsciiString from TCollection;
58 ---Purpose : Returns a text which is
59 -- "Sets Global Parameter <numpar> to <new value>"
64 theval : HAsciiString from TCollection;
66 end SetGlobalParameter;