0024162: Eliminate CLang compiler warning
[occt.git] / src / TDataStd / TDataStd_Real.cdl
CommitLineData
b311480e 1-- Created on: 1997-02-06
2-- Created by: Denis PASCAL
3-- Copyright (c) 1997-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class Real from TDataStd inherits Attribute from TDF
24
25 ---Purpose: The basis to define a real number attribute.
26
27uses Attribute from TDF,
28 Label from TDF,
29 GUID from Standard,
30 Real from Standard,
31 RelocationTable from TDF,
32 RealEnum from TDataStd
33
34is
35
36 ---Purpose: class methods
37 -- =============
38
39 GetID (myclass)
40 ---C++: return const &
41 ---Purpose: Returns the GUID for real numbers.
42 returns GUID from Standard;
43
44 Set (myclass ; label : Label from TDF; value : Real from Standard)
45 ---Purpose: Finds, or creates, an Real attribute and sets <value> the
46 -- Real attribute is returned. the Real dimension is
47 -- Scalar by default. use SetDimension to overwrite.
48 returns Real from TDataStd;
49
50 ---Purpose: Real methods
51 -- ============
52
53 Create
54 returns mutable Real from TDataStd;
55
56 SetDimension (me : mutable; DIM : RealEnum from TDataStd);
57
58
59 GetDimension (me)
60 returns RealEnum from TDataStd;
61
62
63 Set (me : mutable; V : Real from Standard);
64 ---Purpose:
65 -- Finds or creates the real number V.
66
67 Get (me)
68 returns Real from Standard;
69 ---Purpose:
70 -- Returns the real number value contained in the attribute.
71 IsCaptured(me) returns Boolean;
72 ---Purpose: Returns True if there is a reference on the same label
73
74 ---Category: TDF_Attribute methods
75 -- =====================
76
77 ID (me)
78 ---C++: return const &
79 returns GUID from Standard;
80
81 Restore (me: mutable; With : Attribute from TDF);
82
83 NewEmpty(me)
84 returns mutable Attribute from TDF;
85
86 Paste (me; Into : mutable Attribute from TDF;
87 RT : mutable RelocationTable from TDF);
88
89
90 Dump(me; anOS : in out OStream from Standard)
91 returns OStream from Standard
92 is redefined;
93 ---C++: return &
94
95fields
96
97 myValue : Real from Standard;
98 myDimension : RealEnum from TDataStd;
99
100end Real;