1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
// File generated by CPPExt (Transient)
//
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#ifndef _StepSelect_WorkLibrary_HeaderFile
#define _StepSelect_WorkLibrary_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_StepSelect_WorkLibrary_HeaderFile
#include <Handle_StepSelect_WorkLibrary.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _IFSelect_WorkLibrary_HeaderFile
#include <IFSelect_WorkLibrary.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Handle_Interface_InterfaceModel_HeaderFile
#include <Handle_Interface_InterfaceModel.hxx>
#endif
#ifndef _Handle_Interface_Protocol_HeaderFile
#include <Handle_Interface_Protocol.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
class Interface_InterfaceModel;
class Interface_Protocol;
class IFSelect_ContextWrite;
class Interface_EntityIterator;
class Interface_CopyTool;
class Standard_Transient;
//! Performs Read and Write a STEP File with a STEP Model <br>
//! Following the protocols, Copy may be implemented or not <br>
class StepSelect_WorkLibrary : public IFSelect_WorkLibrary {
public:
// Methods PUBLIC
//
//! Creates a STEP WorkLibrary <br>
//! <copymode> precises whether Copy is implemented or not <br>
Standard_EXPORT StepSelect_WorkLibrary(const Standard_Boolean copymode = Standard_True);
//! Selects a mode to dump entities <br>
//! 0 (D) : prints numbers, then displays table number/label <br>
//! 1 : prints labels, then displays table label/number <br>
//! 2 : prints labels onky <br>
Standard_EXPORT void SetDumpLabel(const Standard_Integer mode) ;
//! Reads a STEP File and returns a STEP Model (into <mod>), <br>
//! or lets <mod> "Null" in case of Error <br>
//! Returns 0 if OK, 1 if Read Error, -1 if File not opened <br>
Standard_EXPORT Standard_Integer ReadFile(const Standard_CString name,Handle(Interface_InterfaceModel)& model,const Handle(Interface_Protocol)& protocol) const;
//! Writes a File from a STEP Model <br>
//! Returns False (and writes no file) if <ctx> does not bring a <br>
//! STEP Model <br>
Standard_EXPORT Standard_Boolean WriteFile(IFSelect_ContextWrite& ctx) const;
//! Performs the copy of entities from an original model to a new <br>
//! one. Works according <copymode> : <br>
//! if True, standard copy is run <br>
//! else nothing is done and returned value is False <br>
Standard_EXPORT virtual Standard_Boolean CopyModel(const Handle(Interface_InterfaceModel)& original,const Handle(Interface_InterfaceModel)& newmodel,const Interface_EntityIterator& list,Interface_CopyTool& TC) const;
//! Dumps an entity under STEP form, i.e. as a part of a Step file <br>
//! Works with a StepDumper. <br>
//! Level 0 just displays type; level 1 displays the entity itself <br>
//! and level 2 displays the entity plus its shared ones (one <br>
//! sub-level : immediately shared entities) <br>
Standard_EXPORT void DumpEntity(const Handle(Interface_InterfaceModel)& model,const Handle(Interface_Protocol)& protocol,const Handle(Standard_Transient)& entity,Standard_OStream& S,const Standard_Integer level) const;
//Standard_EXPORT ~StepSelect_WorkLibrary();
// Type management
//
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
//Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
protected:
// Methods PROTECTED
//
// Fields PROTECTED
//
private:
// Methods PRIVATE
//
// Fields PRIVATE
//
Standard_Boolean thecopymode;
Standard_Integer thelabmode;
};
// other Inline functions and methods (like "C++: function call" methods)
//
#endif
|