0025254: Protection on null pcurves in tgtfaces BRepLib
[occt.git] / src / BinMNaming / BinMNaming_NamedShapeDriver.cdl
CommitLineData
b311480e 1-- Created on: 2004-04-08
2-- Created by: Sergey ZARITCHNY <szy@opencascade.com>
973c2be1 3-- Copyright (c) 2004-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 NamedShapeDriver from BinMNaming inherits ADriver from BinMDF
17
18 ---Purpose: NamedShape Attribute Driver.
19
20uses
21 SRelocationTable from BinObjMgt,
22 RRelocationTable from BinObjMgt,
23 Persistent from BinObjMgt,
24 MessageDriver from CDM,
25 Attribute from TDF,
26 ShapeSet from BinTools,
27 LocationSet from BinTools
28
29is
30 Create (theMessageDriver:MessageDriver from CDM)
6e33d3ce 31 returns NamedShapeDriver from BinMNaming;
7fd59977 32
6e33d3ce 33 NewEmpty (me) returns Attribute from TDF;
7fd59977 34
35 Paste(me; Source : Persistent from BinObjMgt;
6e33d3ce 36 Target : Attribute from TDF;
7fd59977 37 RelocTable : out RRelocationTable from BinObjMgt)
38 returns Boolean from Standard;
39
40 Paste(me; Source : Attribute from TDF;
41 Target : in out Persistent from BinObjMgt;
42 RelocTable : out SRelocationTable from BinObjMgt);
43
44 ReadShapeSection (me: mutable; theIS: in out IStream from Standard);
45 ---Purpose: Input the shapes from Bin Document file
46
47 WriteShapeSection (me: mutable; theOS: in out OStream from Standard);
48 ---Purpose: Output the shapes into Bin Document file
49
50 Clear (me:mutable);
51 ---Purpose: Clear myShapeSet
52
53 SetFormatNb(me: mutable; theFormat : Integer from Standard);
54 ---C++: inline
55 ---Purpose: set the format of topology
56 -- First : does not write CurveOnSurface UV Points into the file
57 -- on reading calls Check() method.
58 -- Second: stores CurveOnSurface UV Points.
59
60 GetFormatNb(me) returns Integer from Standard;
61 ---Purpose: get the format of topology
62 ---C++: inline
63
64 GetShapesLocations(me: mutable) returns LocationSet from BinTools;
65 ---Purpose: get the format of topology
66 ---C++: return &
67 ---C++: inline
68
69fields
70
71 myShapeSet : ShapeSet from BinTools;
72 myFormatNb : Integer from Standard;
73end NamedShapeDriver;