File indexing completed on 2025-01-18 10:05:36
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _XSControl_Writer_HeaderFile
0018 #define _XSControl_Writer_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_CString.hxx>
0025 #include <IFSelect_ReturnStatus.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <Message_ProgressRange.hxx>
0028
0029 class XSControl_WorkSession;
0030 class Interface_InterfaceModel;
0031 class TopoDS_Shape;
0032
0033
0034
0035
0036 class XSControl_Writer
0037 {
0038 public:
0039
0040 DEFINE_STANDARD_ALLOC
0041
0042
0043
0044 Standard_EXPORT XSControl_Writer();
0045
0046
0047
0048 Standard_EXPORT XSControl_Writer(const Standard_CString norm);
0049
0050
0051
0052 Standard_EXPORT XSControl_Writer(const Handle(XSControl_WorkSession)& WS, const Standard_Boolean scratch = Standard_True);
0053
0054
0055
0056 Standard_EXPORT Standard_Boolean SetNorm (const Standard_CString norm);
0057
0058
0059 Standard_EXPORT void SetWS (const Handle(XSControl_WorkSession)& WS, const Standard_Boolean scratch = Standard_True);
0060
0061
0062 Standard_EXPORT Handle(XSControl_WorkSession) WS() const;
0063
0064
0065
0066
0067
0068 Standard_EXPORT Handle(Interface_InterfaceModel) Model (const Standard_Boolean newone = Standard_False);
0069
0070
0071 Standard_EXPORT IFSelect_ReturnStatus TransferShape (const TopoDS_Shape& sh,
0072 const Standard_Integer mode = 0,
0073 const Message_ProgressRange& theProgress = Message_ProgressRange());
0074
0075
0076 Standard_EXPORT IFSelect_ReturnStatus WriteFile (const Standard_CString filename);
0077
0078
0079 Standard_EXPORT void PrintStatsTransfer (const Standard_Integer what, const Standard_Integer mode = 0) const;
0080
0081
0082
0083
0084 protected:
0085
0086
0087
0088
0089
0090 private:
0091
0092
0093
0094 Handle(XSControl_WorkSession) thesession;
0095
0096
0097 };
0098
0099
0100
0101
0102
0103
0104
0105 #endif