Loading files
f2929057eThis file is pinned to the selected release. Download the original to open it in your design tool.
// Created on: 2000-09-28
// Created by: Andrey BETENEV
// Copyright (c) 2000-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _STEPCAFControl_ExternFile_HeaderFile
#define _STEPCAFControl_ExternFile_HeaderFile
#include <Standard.hxx>
#include <IFSelect_ReturnStatus.hxx>
#include <Standard_Boolean.hxx>
#include <TDF_Label.hxx>
#include <Standard_Transient.hxx>
class XSControl_WorkSession;
class TCollection_HAsciiString;
//! Auxiliary class serving as container for data resulting
//! from translation of external file
class STEPCAFControl_ExternFile : public Standard_Transient
{
public:
//! Creates an empty structure
Standard_EXPORT STEPCAFControl_ExternFile();
void SetWS(const occ::handle<XSControl_WorkSession>& WS);
occ::handle<XSControl_WorkSession> GetWS() const;
void SetLoadStatus(const IFSelect_ReturnStatus stat);
IFSelect_ReturnStatus GetLoadStatus() const;
void SetTransferStatus(const bool isok);
bool GetTransferStatus() const;
void SetWriteStatus(const IFSelect_ReturnStatus stat);
IFSelect_ReturnStatus GetWriteStatus() const;
void SetName(const occ::handle<TCollection_HAsciiString>& name);
occ::handle<TCollection_HAsciiString> GetName() const;
void SetLabel(const TDF_Label& L);
TDF_Label GetLabel() const;
DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ExternFile, Standard_Transient)
private:
occ::handle<XSControl_WorkSession> myWS;
IFSelect_ReturnStatus myLoadStatus;
bool myTransferStatus;
IFSelect_ReturnStatus myWriteStatus;
occ::handle<TCollection_HAsciiString> myName;
TDF_Label myLabel;
};
#include <STEPCAFControl_ExternFile.lxx>
#endif // _STEPCAFControl_ExternFile_HeaderFile