0027772: Foundation Classes - define Standard_Boolean using C++ type "bool" instead...
[occt.git] / src / STEPCAFControl / STEPCAFControl_ExternFile.hxx
1 // Created on: 2000-09-28
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _STEPCAFControl_ExternFile_HeaderFile
17 #define _STEPCAFControl_ExternFile_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
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;
28 class TDF_Label;
29
30
31 class STEPCAFControl_ExternFile;
32 DEFINE_STANDARD_HANDLE(STEPCAFControl_ExternFile, MMgt_TShared)
33
34 //! Auxiliary class serving as container for data resulting
35 //! from translation of external file
36 class STEPCAFControl_ExternFile : public MMgt_TShared
37 {
38
39 public:
40
41   
42   //! Creates an empty structure
43   Standard_EXPORT STEPCAFControl_ExternFile();
44   
45     void SetWS (const Handle(XSControl_WorkSession)& WS);
46   
47     Handle(XSControl_WorkSession) GetWS() const;
48   
49     void SetLoadStatus (const IFSelect_ReturnStatus stat);
50   
51     IFSelect_ReturnStatus GetLoadStatus() const;
52   
53     void SetTransferStatus (const Standard_Boolean isok);
54   
55     Standard_Boolean GetTransferStatus() const;
56   
57     void SetWriteStatus (const IFSelect_ReturnStatus stat);
58   
59     IFSelect_ReturnStatus GetWriteStatus() const;
60   
61     void SetName (const Handle(TCollection_HAsciiString)& name);
62   
63     Handle(TCollection_HAsciiString) GetName() const;
64   
65     void SetLabel (const TDF_Label& L);
66   
67     TDF_Label GetLabel() const;
68
69
70
71
72   DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,MMgt_TShared)
73
74 protected:
75
76
77
78
79 private:
80
81
82   Handle(XSControl_WorkSession) myWS;
83   IFSelect_ReturnStatus myLoadStatus;
84   Standard_Boolean myTransferStatus;
85   IFSelect_ReturnStatus myWriteStatus;
86   Handle(TCollection_HAsciiString) myName;
87   TDF_Label myLabel;
88
89
90 };
91
92
93 #include <STEPCAFControl_ExternFile.lxx>
94
95
96
97
98
99 #endif // _STEPCAFControl_ExternFile_HeaderFile