1 // Created on: 1993-09-06
2 // Created by: Christian CAILLET
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESData_IGESDumper_HeaderFile
18 #define _IGESData_IGESDumper_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <IGESData_SpecificLib.hxx>
25 #include <Standard_Integer.hxx>
26 #include <Standard_OStream.hxx>
28 class IGESData_IGESModel;
29 class Interface_InterfaceError;
30 class IGESData_Protocol;
31 class IGESData_IGESEntity;
33 //! Provides a way to obtain a clear Dump of an IGESEntity
34 //! (distinct from normalized output). It works with tools
35 //! attached to Entities, as for normalized Reade and Write
37 //! For each Entity, displaying data is split in own data
38 //! (specific to each type) and other attached data, which are
39 //! defined for all IGES Types (either from "Directory Entry" or
40 //! from Lists of Associativities and Properties)
41 class IGESData_IGESDumper
48 //! Returns an IGESDumper ready to work.
49 //! The IGESModel provides the numbering of Entities:
50 //! as for any InterfaceModel, it gives each Entity a number;
51 //! but for IGESEntities, the "Number of Directory Entry"
52 //! according to the definition of IGES Files, is also useful.
53 Standard_EXPORT IGESData_IGESDumper(const Handle(IGESData_IGESModel)& model, const Handle(IGESData_Protocol)& protocol);
55 //! Prints onto an output, the "Number of Directory Entry" which
56 //! corresponds to an IGESEntity in the IGESModel, under the form
57 //! "D#nnn" (a Null Handle gives D#0)
58 Standard_EXPORT void PrintDNum (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
60 //! Prints onto an output, the "Number of Directory Entry" (see
61 //! PrintDNum) plus IGES Type and Form Numbers, which gives
62 //! "D#nnn Type nnn Form nnn"
63 Standard_EXPORT void PrintShort (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
65 Standard_EXPORT void Dump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own, const Standard_Integer attached = -1) const;
67 //! Specific Dump for each IGES Entity, call by Dump (just above)
68 //! <own> is the parameter <own> from Dump
69 Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const;
73 Handle(IGESData_IGESModel) themodel;
74 IGESData_SpecificLib thelib;
78 #endif // _IGESData_IGESDumper_HeaderFile