mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
90
src/IGESSelect/IGESSelect_WorkLibrary.hxx
Normal file
90
src/IGESSelect/IGESSelect_WorkLibrary.hxx
Normal file
@@ -0,0 +1,90 @@
|
||||
// Created on: 1994-06-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-1999 Matra Datavision
|
||||
// Copyright (c) 1999-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 _IGESSelect_WorkLibrary_HeaderFile
|
||||
#define _IGESSelect_WorkLibrary_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <IFSelect_WorkLibrary.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class Interface_InterfaceModel;
|
||||
class Interface_Protocol;
|
||||
class IFSelect_ContextWrite;
|
||||
class IGESData_Protocol;
|
||||
class Standard_Transient;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
class IGESSelect_WorkLibrary;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_WorkLibrary, IFSelect_WorkLibrary)
|
||||
|
||||
//! Performs Read and Write an IGES File with an IGES Model
|
||||
class IGESSelect_WorkLibrary : public IFSelect_WorkLibrary
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a IGES WorkLibrary
|
||||
//! If <modefnes> is given as True, it will work for FNES
|
||||
Standard_EXPORT IGESSelect_WorkLibrary(const Standard_Boolean modefnes = Standard_False);
|
||||
|
||||
//! Reads a IGES File and returns a IGES Model (into <mod>),
|
||||
//! or lets <mod> "Null" in case of Error
|
||||
//! Returns 0 if OK, 1 if Read Error, -1 if File not opened
|
||||
Standard_EXPORT Standard_Integer ReadFile (const Standard_CString name, Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol) const;
|
||||
|
||||
//! Writes a File from a IGES Model (brought by <ctx>)
|
||||
//! Returns False (and writes no file) if <ctx> is not for IGES
|
||||
Standard_EXPORT Standard_Boolean WriteFile (IFSelect_ContextWrite& ctx) const;
|
||||
|
||||
//! Defines a protocol to be adequate for IGES
|
||||
//! (encompasses ALL the IGES norm including IGESSolid, IGESAppli)
|
||||
Standard_EXPORT static Handle(IGESData_Protocol) DefineProtocol();
|
||||
|
||||
//! Dumps an IGES Entity with an IGES Dumper. <level> is the one
|
||||
//! used by IGESDumper.
|
||||
Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_WorkLibrary,IFSelect_WorkLibrary)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Boolean themodefnes;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_WorkLibrary_HeaderFile
|
Reference in New Issue
Block a user