1 -- Created on: 2004-05-18
2 -- Created by: Sergey ZARITCHNY <szy@opencascade.com>
3 -- Copyright (c) 2004-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and / or modify it
8 -- under the terms of the GNU Lesser General Public 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.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 class Curve2dSet from BinTools
18 ---Purpose: Stores a set of Curves from Geom2d in binary format
22 IndexedMapOfTransient from TColStd
25 OutOfRange from Standard
29 Create returns Curve2dSet from BinTools;
30 ---Purpose: Returns an empty set of Curves.
33 ---Purpose: Clears the content of the set.
36 Add(me : in out; C : Curve from Geom2d) returns Integer
37 ---Purpose: Incorporate a new Curve in the set and returns
41 Curve2d(me; I : Integer) returns Curve from Geom2d
42 ---Purpose: Returns the Curve of index <I>.
44 OutOfRange from Standard
47 Index(me; C : Curve from Geom2d) returns Integer
48 ---Purpose: Returns the index of <L>.
51 Dump(me; OS : in out OStream)
52 ---Purpose: Dumps the content of me on the stream <OS>.
55 Write(me; OS : in out OStream)
56 ---Purpose: Writes the content of me on the stream <OS> in a
57 -- format that can be read back by Read.
60 Read(me : in out; IS : in out IStream)
61 ---Purpose: Reads the content of me from the stream <IS>. me
67 -- class methods to write an read curves
70 WriteCurve2d(myclass; C : Curve from Geom2d;
72 ---Purpose: Dumps the curve on the binary stream, that can be read back.
74 ReadCurve2d(myclass; IS : in out IStream;
75 C : in out Curve from Geom2d)
77 ---Purpose: Reads the curve from the stream. The curve is
78 -- assumed to have been written with the Write
85 myMap : IndexedMapOfTransient from TColStd;