0024784: Move documentation in CDL files to proper location
[occt.git] / src / XCAFDoc / XCAFDoc_Location.cdl
CommitLineData
b311480e 1-- Created on: 2000-08-15
2-- Created by: data exchange team
973c2be1 3-- Copyright (c) 2000-2014 OPEN CASCADE SAS
b311480e 4--
973c2be1 5-- This file is part of Open CASCADE Technology software library.
b311480e 6--
d5f74e42 7-- This library is free software; you can redistribute it and/or modify it under
8-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9-- by the Free Software Foundation, with special exception defined in the file
10-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 12--
973c2be1 13-- Alternatively, this file may be used under the terms of Open CASCADE
14-- commercial license or contractual agreement.
7fd59977 15
16class Location from XCAFDoc inherits Attribute from TDF
17
ff8178ef 18 ---Purpose: attribute to store TopLoc_Location
7fd59977 19
20uses
21 Location from TopLoc,
22 Label from TDF,
23 RelocationTable from TDF
24
25is
26 Create returns Location from XCAFDoc;
27
28 ---Purpose: class methods
29 -- =============
30
31 GetID (myclass)
32 ---C++: return const &
33 returns GUID from Standard;
34
35 Set (myclass; label : Label from TDF; Loc : Location from TopLoc)
36 ---Purpose: Find, or create, a Location attribute and set it's value
37 -- the Location attribute is returned.
38 returns Location from XCAFDoc;
39
40 ---Purpose: Location methods
41 -- ===============
42
43 Set (me : mutable; Loc : Location from TopLoc);
44
45 Get (me)
46 returns Location from TopLoc;
d97f89db 47 ---C++: return const &
7fd59977 48
49 --IsCaptured(me) returns Boolean;
50 ---Purpose: Returns True if there is a reference on the same label
51
52 ---Category: methodes de TDF_Attribute
53 -- =========================
54
55 ID (me)
56 ---C++: return const &
57 returns GUID from Standard;
58
59 Restore (me: mutable; With : Attribute from TDF);
60
61 NewEmpty (me)
6e33d3ce 62 returns Attribute from TDF;
7fd59977 63
6e33d3ce 64 Paste (me; Into : Attribute from TDF;
65 RT : RelocationTable from TDF);
7fd59977 66
67-- Dump(me; anOS : in out OStream from Standard)
68-- returns OStream from Standard
69-- is redefined;
70-- -C++: return &
71
72fields
73 myLocation : Location from TopLoc;
74
75end Location;