1 -- Created on: 1999-08-02
2 -- Created by: Denis PASCAL
3 -- Copyright (c) 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 Current from TDataStd inherits Attribute from TDF
19 ---Purpose: this attribute, located at root label, manage an
20 -- access to a current label.
22 uses Attribute from TDF,
26 RelocationTable from TDF
30 ---Purpose: class methods
35 ---C++: return const &
36 returns GUID from Standard;
39 Set (myclass; L : Label from TDF);
40 ---Purpose: Set <L> as current of <L> Framework.
43 Get (myclass; acces : Label from TDF)
44 ---Purpose: returns current of <acces> Framework. raise if (!Has)
45 returns Label from TDF;
48 Has (myclass; acces : Label from TDF)
49 ---Purpose: returns True if a current label is managed in <acces>
51 returns Boolean from Standard;
53 ---Purpose: class methods
57 returns Current from TDataStd;
59 SetLabel (me : mutable; current : Label from TDF);
62 returns Label from TDF;
64 ---Category: TDF_Attribute methods
65 -- =====================
68 ---C++: return const &
69 returns GUID from Standard;
71 Restore (me: mutable; With : Attribute from TDF);
74 returns Attribute from TDF;
76 Paste (me; Into : Attribute from TDF;
77 RT : RelocationTable from TDF);
79 Dump(me; anOS : in out OStream from Standard)
80 returns OStream from Standard
87 myLabel : Label from TDF;