File indexing completed on 2026-10-05 09:24:46
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 DEFINE_STANDARD_ALLOC
0040
0041
0042 Standard_EXPORT XSControl_Writer();
0043
0044
0045
0046 Standard_EXPORT XSControl_Writer(const char* const norm);
0047
0048
0049
0050 Standard_EXPORT XSControl_Writer(const occ::handle<XSControl_WorkSession>& WS,
0051 const bool scratch = true);
0052
0053
0054
0055 Standard_EXPORT bool SetNorm(const char* const norm);
0056
0057
0058 Standard_EXPORT void SetWS(const occ::handle<XSControl_WorkSession>& WS,
0059 const bool scratch = true);
0060
0061
0062 Standard_EXPORT occ::handle<XSControl_WorkSession> WS() const;
0063
0064
0065
0066
0067
0068 Standard_EXPORT occ::handle<Interface_InterfaceModel> Model(const bool newone = false);
0069
0070
0071 Standard_EXPORT IFSelect_ReturnStatus
0072 TransferShape(const TopoDS_Shape& sh,
0073 const int mode = 0,
0074 const Message_ProgressRange& theProgress = Message_ProgressRange());
0075
0076
0077 Standard_EXPORT IFSelect_ReturnStatus WriteFile(const char* const filename);
0078
0079
0080 Standard_EXPORT void PrintStatsTransfer(const int what, const int mode = 0) const;
0081
0082 private:
0083 occ::handle<XSControl_WorkSession> thesession;
0084 };
0085
0086 #endif