OCC18056 Exception during copying Array attribute with array(0,0)
[occt.git] / src / TDataStd / TDataStd_Real.cdl
CommitLineData
7fd59977 1-- File: TDataStd_Real.cdl
2-- Created: Thu Feb 6 16:48:25 1997
3-- Author: Denis PASCAL
4-- <dp@dingox.paris1.matra-dtv.fr>
5---Copyright: Matra Datavision 1997
6
7
8class Real from TDataStd inherits Attribute from TDF
9
10 ---Purpose: The basis to define a real number attribute.
11
12uses Attribute from TDF,
13 Label from TDF,
14 GUID from Standard,
15 Real from Standard,
16 RelocationTable from TDF,
17 RealEnum from TDataStd
18
19is
20
21 ---Purpose: class methods
22 -- =============
23
24 GetID (myclass)
25 ---C++: return const &
26 ---Purpose: Returns the GUID for real numbers.
27 returns GUID from Standard;
28
29 Set (myclass ; label : Label from TDF; value : Real from Standard)
30 ---Purpose: Finds, or creates, an Real attribute and sets <value> the
31 -- Real attribute is returned. the Real dimension is
32 -- Scalar by default. use SetDimension to overwrite.
33 returns Real from TDataStd;
34
35 ---Purpose: Real methods
36 -- ============
37
38 Create
39 returns mutable Real from TDataStd;
40
41 SetDimension (me : mutable; DIM : RealEnum from TDataStd);
42
43
44 GetDimension (me)
45 returns RealEnum from TDataStd;
46
47
48 Set (me : mutable; V : Real from Standard);
49 ---Purpose:
50 -- Finds or creates the real number V.
51
52 Get (me)
53 returns Real from Standard;
54 ---Purpose:
55 -- Returns the real number value contained in the attribute.
56 IsCaptured(me) returns Boolean;
57 ---Purpose: Returns True if there is a reference on the same label
58
59 ---Category: TDF_Attribute methods
60 -- =====================
61
62 ID (me)
63 ---C++: return const &
64 returns GUID from Standard;
65
66 Restore (me: mutable; With : Attribute from TDF);
67
68 NewEmpty(me)
69 returns mutable Attribute from TDF;
70
71 Paste (me; Into : mutable Attribute from TDF;
72 RT : mutable RelocationTable from TDF);
73
74
75 Dump(me; anOS : in out OStream from Standard)
76 returns OStream from Standard
77 is redefined;
78 ---C++: return &
79
80fields
81
82 myValue : Real from Standard;
83 myDimension : RealEnum from TDataStd;
84
85end Real;