1 -- Created on: 1997-12-16
2 -- Created by: Denis PASCAL
3 -- Copyright (c) 1997-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 Expression from TDataStd inherits Attribute from TDF
19 ---Purpose: Expression attribute.
20 -- ====================
22 -- * Data Structure of the Expression is stored in a
23 -- string and references to variables used by the string
25 -- Warning: To be consistent, each Variable referenced by the
26 -- expression must have its equivalent in the string
29 uses Attribute from TDF,
34 RelocationTable from TDF,
35 ExtendedString from TCollection,
36 AttributeList from TDF
41 ---Purpose: class methods
45 ---C++: return const &
46 returns GUID from Standard;
49 Set (myclass ; label : Label from TDF)
50 ---Purpose: Find, or create, an Expression attribute.
51 returns Expression from TDataStd;
53 ---Purpose: Expressionmethods
57 returns Expression from TDataStd;
60 ---Purpose: build and return the expression name
61 returns ExtendedString from TCollection;
63 SetExpression (me : mutable; E : ExtendedString from TCollection);
66 returns ExtendedString from TCollection;
67 ---C++: return const &
69 GetVariables (me : mutable)
71 returns AttributeList from TDF;
73 ---Category: TDF_Attribute methods
74 -- =====================
77 ---C++: return const &
78 returns GUID from Standard;
80 Restore (me: mutable; With : Attribute from TDF);
83 returns Attribute from TDF;
85 Paste (me; Into : Attribute from TDF;
86 RT : RelocationTable from TDF);
88 Dump(me; anOS : in out OStream from Standard)
89 returns OStream from Standard
95 myExpression : ExtendedString from TCollection;
96 myVariables : AttributeList from TDF;