0024947: Redesign OCCT legacy type system
[occt.git] / src / TDataStd / TDataStd_Integer.cdl
CommitLineData
b311480e 1-- Created on: 1997-02-06
2-- Created by: Denis PASCAL
3-- Copyright (c) 1997-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 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
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class Integer from TDataStd inherits Attribute from TDF
18
19 ---Purpose: The basis to define an integer attribute.
20
21uses Attribute from TDF,
22 Label from TDF,
23 GUID from Standard,
24 Integer from Standard,
25 RelocationTable from TDF
26
27is
28
29 ---Purpose: class methods
30 -- =============
31
32 GetID (myclass)
33 ---C++: return const &
34 ---Purpose: Returns the GUID for integers.
35 returns GUID from Standard;
36
37 Set (myclass; label : Label from TDF; value : Integer from Standard)
38 ---Purpose: Finds, or creates, an Integer attribute and sets <value>
39 -- the Integer attribute is returned.
40 returns Integer from TDataStd;
41
42 ---Purpose: Integer methods
43 -- ===============
44
45 Set (me : mutable; V : Integer from Standard);
46
47 Get (me)
48 returns Integer from Standard;
49 ---Purpose: Returns the integer value contained in the attribute.
50 IsCaptured(me) returns Boolean;
51 ---Purpose: Returns True if there is a reference on the same label
52
53 ---Category: methodes de TDF_Attribute
54 -- =========================
55
56 ID (me)
57 ---C++: return const &
58 returns GUID from Standard;
59
60 Restore (me: mutable; With : Attribute from TDF);
61
62 NewEmpty (me)
6e33d3ce 63 returns Attribute from TDF;
7fd59977 64
6e33d3ce 65 Paste (me; Into : Attribute from TDF;
66 RT : RelocationTable from TDF);
7fd59977 67
68 Dump(me; anOS : in out OStream from Standard)
69 returns OStream from Standard
70 is redefined;
71 ---C++: return &
72
73
74 Create
6e33d3ce 75 returns Integer from TDataStd;
7fd59977 76
77
78fields
79
80 myValue : Integer from Standard;
81
82end Integer;