File indexing completed on 2025-01-18 10:03:00
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _BinTools_Curve2dSet_HeaderFile
0017 #define _BinTools_Curve2dSet_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <TColStd_IndexedMapOfTransient.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <Standard_OStream.hxx>
0026 #include <Standard_IStream.hxx>
0027
0028 #include <Message_ProgressRange.hxx>
0029 #include <BinTools_OStream.hxx>
0030
0031 class Geom2d_Curve;
0032
0033
0034
0035 class BinTools_Curve2dSet
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043 Standard_EXPORT BinTools_Curve2dSet();
0044
0045
0046 Standard_EXPORT void Clear();
0047
0048
0049
0050 Standard_EXPORT Standard_Integer Add (const Handle(Geom2d_Curve)& C);
0051
0052
0053 Standard_EXPORT Handle(Geom2d_Curve) Curve2d (const Standard_Integer I) const;
0054
0055
0056 Standard_EXPORT Standard_Integer Index (const Handle(Geom2d_Curve)& C) const;
0057
0058
0059 Standard_EXPORT void Dump (Standard_OStream& OS) const;
0060
0061
0062
0063 Standard_EXPORT void Write (Standard_OStream& OS,
0064 const Message_ProgressRange& theRange = Message_ProgressRange()) const;
0065
0066
0067
0068 Standard_EXPORT void Read (Standard_IStream& IS,
0069 const Message_ProgressRange& theRange = Message_ProgressRange());
0070
0071
0072 Standard_EXPORT static void WriteCurve2d(const Handle(Geom2d_Curve)& C, BinTools_OStream& OS);
0073
0074
0075
0076
0077 Standard_EXPORT static Standard_IStream& ReadCurve2d (Standard_IStream& IS, Handle(Geom2d_Curve)& C);
0078
0079 private:
0080
0081 TColStd_IndexedMapOfTransient myMap;
0082
0083 };
0084
0085 #endif