1 // Created on: 2000-09-28
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-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 under
8 // the terms of the GNU Lesser General Public License 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 #ifndef _STEPCAFControl_ExternFile_HeaderFile
17 #define _STEPCAFControl_ExternFile_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <IFSelect_ReturnStatus.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <TDF_Label.hxx>
25 #include <MMgt_TShared.hxx>
26 class XSControl_WorkSession;
27 class TCollection_HAsciiString;
31 class STEPCAFControl_ExternFile;
32 DEFINE_STANDARD_HANDLE(STEPCAFControl_ExternFile, MMgt_TShared)
34 //! Auxiliary class serving as container for data resulting
35 //! from translation of external file
36 class STEPCAFControl_ExternFile : public MMgt_TShared
42 //! Creates an empty structure
43 Standard_EXPORT STEPCAFControl_ExternFile();
45 void SetWS (const Handle(XSControl_WorkSession)& WS);
47 Handle(XSControl_WorkSession) GetWS() const;
49 void SetLoadStatus (const IFSelect_ReturnStatus stat);
51 IFSelect_ReturnStatus GetLoadStatus() const;
53 void SetTransferStatus (const Standard_Boolean isok);
55 Standard_Boolean GetTransferStatus() const;
57 void SetWriteStatus (const IFSelect_ReturnStatus stat);
59 IFSelect_ReturnStatus GetWriteStatus() const;
61 void SetName (const Handle(TCollection_HAsciiString)& name);
63 Handle(TCollection_HAsciiString) GetName() const;
65 void SetLabel (const TDF_Label& L);
67 TDF_Label GetLabel() const;
72 DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,MMgt_TShared)
82 Handle(XSControl_WorkSession) myWS;
83 IFSelect_ReturnStatus myLoadStatus;
84 Standard_Boolean myTransferStatus;
85 IFSelect_ReturnStatus myWriteStatus;
86 Handle(TCollection_HAsciiString) myName;
93 #include <STEPCAFControl_ExternFile.lxx>
99 #endif // _STEPCAFControl_ExternFile_HeaderFile