Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:05

0001 // Created on: 2000-09-28
0002 // Created by: Andrey BETENEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _STEPCAFControl_ExternFile_HeaderFile
0017 #define _STEPCAFControl_ExternFile_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <IFSelect_ReturnStatus.hxx>
0022 #include <Standard_Boolean.hxx>
0023 #include <TDF_Label.hxx>
0024 #include <Standard_Transient.hxx>
0025 class XSControl_WorkSession;
0026 class TCollection_HAsciiString;
0027 
0028 
0029 class STEPCAFControl_ExternFile;
0030 DEFINE_STANDARD_HANDLE(STEPCAFControl_ExternFile, Standard_Transient)
0031 
0032 //! Auxiliary class serving as container for data resulting
0033 //! from translation of external file
0034 class STEPCAFControl_ExternFile : public Standard_Transient
0035 {
0036 
0037 public:
0038 
0039   
0040   //! Creates an empty structure
0041   Standard_EXPORT STEPCAFControl_ExternFile();
0042   
0043     void SetWS (const Handle(XSControl_WorkSession)& WS);
0044   
0045     Handle(XSControl_WorkSession) GetWS() const;
0046   
0047     void SetLoadStatus (const IFSelect_ReturnStatus stat);
0048   
0049     IFSelect_ReturnStatus GetLoadStatus() const;
0050   
0051     void SetTransferStatus (const Standard_Boolean isok);
0052   
0053     Standard_Boolean GetTransferStatus() const;
0054   
0055     void SetWriteStatus (const IFSelect_ReturnStatus stat);
0056   
0057     IFSelect_ReturnStatus GetWriteStatus() const;
0058   
0059     void SetName (const Handle(TCollection_HAsciiString)& name);
0060   
0061     Handle(TCollection_HAsciiString) GetName() const;
0062   
0063     void SetLabel (const TDF_Label& L);
0064   
0065     TDF_Label GetLabel() const;
0066 
0067 
0068 
0069 
0070   DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ExternFile,Standard_Transient)
0071 
0072 protected:
0073 
0074 
0075 
0076 
0077 private:
0078 
0079 
0080   Handle(XSControl_WorkSession) myWS;
0081   IFSelect_ReturnStatus myLoadStatus;
0082   Standard_Boolean myTransferStatus;
0083   IFSelect_ReturnStatus myWriteStatus;
0084   Handle(TCollection_HAsciiString) myName;
0085   TDF_Label myLabel;
0086 
0087 
0088 };
0089 
0090 
0091 #include <STEPCAFControl_ExternFile.lxx>
0092 
0093 
0094 
0095 
0096 
0097 #endif // _STEPCAFControl_ExternFile_HeaderFile