0025418: Debug output to be limited to OCC development environment
[occt.git] / src / XmlMNaming / XmlMNaming_NamedShapeDriver.cdl
1 -- Created on: 2001-09-14
2 -- Created by: Alexander GRIGORIEV
3 -- Copyright (c) 2001-2014 OPEN CASCADE SAS
4 --
5 -- This file is part of Open CASCADE Technology software library.
6 --
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
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.
12 --
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
15
16 class NamedShapeDriver from XmlMNaming inherits ADriver from XmlMDF
17
18         ---Purpose: 
19
20
21 uses
22     RRelocationTable    from XmlObjMgt,
23     SRelocationTable    from XmlObjMgt,
24     Persistent          from XmlObjMgt,
25     Element             from XmlObjMgt,
26     Attribute           from TDF,
27     MessageDriver       from CDM,
28     ShapeSet            from BRepTools,
29     LocationSet         from TopTools
30
31 is
32     Create (aMessageDriver: MessageDriver from CDM)
33         returns NamedShapeDriver from XmlMNaming;
34
35     NewEmpty (me)
36     returns Attribute from TDF
37         is redefined;
38
39     Paste(me; theSource     : Persistent from XmlObjMgt;
40               theTarget     : Attribute from TDF;
41               theRelocTable : out RRelocationTable from XmlObjMgt)
42         returns Boolean from Standard
43         is redefined;
44
45     Paste(me; theSource     : Attribute from TDF;
46               theTarget     : in out Persistent from XmlObjMgt;
47               theRelocTable : out SRelocationTable from XmlObjMgt)
48         is redefined;
49
50     ReadShapeSection (me: mutable; anElement: Element from XmlObjMgt);
51       ---Purpose: Input the shapes from DOM element
52
53     WriteShapeSection (me: mutable; anElement: in out Element from XmlObjMgt);
54       ---Purpose: Output the shapes into DOM element
55
56     Clear (me:mutable);
57       ---Purpose: Clear myShapeSet
58
59     GetShapesLocations(me: mutable) returns LocationSet from TopTools; 
60     ---Purpose: get the format of topology  
61     ---C++: return &
62     ---C++: inline 
63     
64 fields
65     myShapeSet          : ShapeSet from BRepTools;
66
67 end NamedShapeDriver;