1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +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:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

View File

@@ -1,2 +1,42 @@
IGESDefs.cxx
IGESDefs.hxx
IGESDefs_Array1OfTabularData.hxx
IGESDefs_AssociativityDef.cxx
IGESDefs_AssociativityDef.hxx
IGESDefs_AttributeDef.cxx
IGESDefs_AttributeDef.hxx
IGESDefs_AttributeTable.cxx
IGESDefs_AttributeTable.hxx
IGESDefs_GeneralModule.cxx
IGESDefs_GeneralModule.hxx
IGESDefs_GenericData.cxx
IGESDefs_GenericData.hxx
IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx
IGESDefs_HArray1OfHArray1OfTextDisplayTemplate_0.cxx
IGESDefs_HArray1OfTabularData.hxx
IGESDefs_MacroDef.cxx
IGESDefs_MacroDef.hxx
IGESDefs_Protocol.cxx
IGESDefs_Protocol.hxx
IGESDefs_ReadWriteModule.cxx
IGESDefs_ReadWriteModule.hxx
IGESDefs_SpecificModule.cxx
IGESDefs_SpecificModule.hxx
IGESDefs_TabularData.cxx
IGESDefs_TabularData.hxx
IGESDefs_ToolAssociativityDef.cxx
IGESDefs_ToolAssociativityDef.hxx
IGESDefs_ToolAttributeDef.cxx
IGESDefs_ToolAttributeDef.hxx
IGESDefs_ToolAttributeTable.cxx
IGESDefs_ToolAttributeTable.hxx
IGESDefs_ToolGenericData.cxx
IGESDefs_ToolGenericData.hxx
IGESDefs_ToolMacroDef.cxx
IGESDefs_ToolMacroDef.hxx
IGESDefs_ToolTabularData.cxx
IGESDefs_ToolTabularData.hxx
IGESDefs_ToolUnitsData.cxx
IGESDefs_ToolUnitsData.hxx
IGESDefs_UnitsData.cxx
IGESDefs_UnitsData.hxx

View File

@@ -1,83 +0,0 @@
-- Created on: 1993-01-09
-- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
-- Copyright (c) 1993-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.
package IGESDefs
---Purpose : To embody general definitions of Entities
-- (Parameters, Tables ...)
uses
Standard,
TCollection,
TColStd,
Message,
Interface,
IGESData,
IGESBasic,
IGESGraph
is
class AssociativityDef;
class MacroDef;
class UnitsData;
class AttributeDef;
class TabularData;
class GenericData;
class AttributeTable;
-- Tools for Entities --
class ToolAssociativityDef;
class ToolMacroDef;
class ToolUnitsData;
class ToolAttributeDef;
class ToolTabularData;
class ToolGenericData;
class ToolAttributeTable;
-- Definition and Exploitation of Entities defined in this Package
class Protocol;
class ReadWriteModule;
class GeneralModule;
class SpecificModule;
-- Instantiations
imported Array1OfTabularData;
imported transient class HArray1OfTabularData;
class HArray1OfHArray1OfTextDisplayTemplate instantiates
-- HArray1 (HArray1OfTextDisplayTemplate,Array1OfHArray1OfTextDisplayTemplate);
JaggedArray from Interface (HArray1OfTextDisplayTemplate from IGESGraph);
-- Package Methods
Init;
---Purpose : Prepares dynamic data (Protocol, Modules) for this package
Protocol returns Protocol from IGESDefs;
---Purpose : Returns the Protocol for this Package
end IGESDefs;

View File

@@ -11,20 +11,20 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESDefs.ixx>
#include <IGESDefs_Protocol.hxx>
#include <IGESData_SpecificLib.hxx>
#include <IGESData_WriterLib.hxx>
#include <IGESDefs.hxx>
#include <IGESDefs_GeneralModule.hxx>
#include <IGESDefs_Protocol.hxx>
#include <IGESDefs_ReadWriteModule.hxx>
#include <IGESDefs_SpecificModule.hxx>
#include <IGESGraph.hxx>
#include <Interface_GeneralLib.hxx>
#include <Interface_ReaderLib.hxx>
#include <IGESData_WriterLib.hxx>
#include <IGESData_SpecificLib.hxx>
#include <IGESGraph.hxx>
// Ancillary data to work on a Package of IGES Entities with a Protocol
// (Modules are created and loaded in appropriate libraries, once by Init)
static Handle(IGESDefs_Protocol) protocol;

103
src/IGESDefs/IGESDefs.hxx Normal file
View File

@@ -0,0 +1,103 @@
// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 _IGESDefs_HeaderFile
#define _IGESDefs_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class IGESDefs_Protocol;
class IGESDefs_AssociativityDef;
class IGESDefs_MacroDef;
class IGESDefs_UnitsData;
class IGESDefs_AttributeDef;
class IGESDefs_TabularData;
class IGESDefs_GenericData;
class IGESDefs_AttributeTable;
class IGESDefs_ToolAssociativityDef;
class IGESDefs_ToolMacroDef;
class IGESDefs_ToolUnitsData;
class IGESDefs_ToolAttributeDef;
class IGESDefs_ToolTabularData;
class IGESDefs_ToolGenericData;
class IGESDefs_ToolAttributeTable;
class IGESDefs_Protocol;
class IGESDefs_ReadWriteModule;
class IGESDefs_GeneralModule;
class IGESDefs_SpecificModule;
class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
//! To embody general definitions of Entities
//! (Parameters, Tables ...)
class IGESDefs
{
public:
DEFINE_STANDARD_ALLOC
//! Prepares dynamic data (Protocol, Modules) for this package
Standard_EXPORT static void Init();
//! Returns the Protocol for this Package
Standard_EXPORT static Handle(IGESDefs_Protocol) Protocol();
protected:
private:
friend class IGESDefs_AssociativityDef;
friend class IGESDefs_MacroDef;
friend class IGESDefs_UnitsData;
friend class IGESDefs_AttributeDef;
friend class IGESDefs_TabularData;
friend class IGESDefs_GenericData;
friend class IGESDefs_AttributeTable;
friend class IGESDefs_ToolAssociativityDef;
friend class IGESDefs_ToolMacroDef;
friend class IGESDefs_ToolUnitsData;
friend class IGESDefs_ToolAttributeDef;
friend class IGESDefs_ToolTabularData;
friend class IGESDefs_ToolGenericData;
friend class IGESDefs_ToolAttributeTable;
friend class IGESDefs_Protocol;
friend class IGESDefs_ReadWriteModule;
friend class IGESDefs_GeneralModule;
friend class IGESDefs_SpecificModule;
friend class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
};
#endif // _IGESDefs_HeaderFile

View File

@@ -1,111 +0,0 @@
-- Created on: 1993-01-13
-- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
-- Copyright (c) 1993-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.
class AssociativityDef from IGESDefs inherits IGESEntity
---Purpose: defines IGES Associativity Definition Entity, Type <302>
-- Form <5001 - 9999> in package IGESDefs.
-- This class permits the preprocessor to define an
-- associativity schema. i.e., by using it preprocessor
-- defines the type of relationship.
uses
HArray1OfInteger from TColStd,
HArray1OfHArray1OfInteger from IGESBasic
raises DimensionMismatch, OutOfRange
is
Create returns AssociativityDef;
-- Specific methods for the entity
Init (me : mutable;
requirements : HArray1OfInteger;
orders : HArray1OfInteger;
numItems : HArray1OfInteger;
items : HArray1OfHArray1OfInteger)
raises DimensionMismatch;
---Purpose : This method is used to set the fields of the class
-- AssociativityDef
-- - requirements : Back Pointers requirements
-- - orders : Class Orders
-- - numItems : Number of Items per Class
-- - items : Items in each class
-- raises exception if lengths of the arrays are not the same.
SetFormNumber (me : mutable; form : Integer);
-- Sets Form Number to a given value (free over 5000)
NbClassDefs(me) returns Integer;
---Purpose : returns the Number of class definitions
IsBackPointerReq(me ; ClassNum : Integer) returns Boolean
raises OutOfRange;
---Purpose : returns 1 if the theBackPointerReqs(ClassNum) = 1
-- returns 0 if the theBackPointerReqs(ClassNum) = 2
-- raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
BackPointerReq(me ; ClassNum : Integer) returns Integer
raises OutOfRange;
---Purpose : returns 1 or 2
-- raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
IsOrdered(me ; ClassNum : Integer) returns Boolean
raises OutOfRange;
---Purpose : returns 1 if theClassOrders(ClassNum) = 1 (ordered class)
-- returns 0 if theClassOrders(ClassNum) = 2 (unordered class)
-- raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
ClassOrder(me ; ClassNum : Integer) returns Integer
raises OutOfRange;
---Purpose : returns 1 or 2
-- raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
NbItemsPerClass(me ; ClassNum : Integer) returns Integer
raises OutOfRange;
---Purpose : returns no. of items per class entry
-- raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
Item(me ; ClassNum : Integer; ItemNum : Integer) returns Integer
raises OutOfRange;
---Purpose : returns ItemNum'th Item of ClassNum'th Class
-- raises exception if
-- ClassNum <= 0 or ClassNum > NbClassDefs()
-- ItemNum <= 0 or ItemNum > NbItemsPerClass(ClassNum)
fields
--
-- Class : IGESDefs_AssociativityDef
--
-- Purpose : Declaration of variables specific to AssociativityDef
--
-- Reminder : An AssociativityDef Entity permits the preprocessor
-- to define an associativity schema. The definition
-- includes associativity form, the no. of classes,
-- the number and type of items in each class, and
-- whether back pointers are required.
theBackPointerReqs : HArray1OfInteger;
theClassOrders : HArray1OfInteger;
theNbItemsPerClass : HArray1OfInteger;
theItems : HArray1OfHArray1OfInteger;
end AssociativityDef;

View File

@@ -16,8 +16,11 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_AssociativityDef.ixx>
#include <IGESBasic_HArray1OfHArray1OfInteger.hxx>
#include <IGESDefs_AssociativityDef.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
IGESDefs_AssociativityDef::IGESDefs_AssociativityDef () { }

View File

@@ -0,0 +1,117 @@
// Created on: 1993-01-13
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 _IGESDefs_AssociativityDef_HeaderFile
#define _IGESDefs_AssociativityDef_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
class IGESBasic_HArray1OfHArray1OfInteger;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class IGESDefs_AssociativityDef;
DEFINE_STANDARD_HANDLE(IGESDefs_AssociativityDef, IGESData_IGESEntity)
//! defines IGES Associativity Definition Entity, Type <302>
//! Form <5001 - 9999> in package IGESDefs.
//! This class permits the preprocessor to define an
//! associativity schema. i.e., by using it preprocessor
//! defines the type of relationship.
class IGESDefs_AssociativityDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_AssociativityDef();
//! This method is used to set the fields of the class
//! AssociativityDef
//! - requirements : Back Pointers requirements
//! - orders : Class Orders
//! - numItems : Number of Items per Class
//! - items : Items in each class
//! raises exception if lengths of the arrays are not the same.
Standard_EXPORT void Init (const Handle(TColStd_HArray1OfInteger)& requirements, const Handle(TColStd_HArray1OfInteger)& orders, const Handle(TColStd_HArray1OfInteger)& numItems, const Handle(IGESBasic_HArray1OfHArray1OfInteger)& items);
Standard_EXPORT void SetFormNumber (const Standard_Integer form);
//! returns the Number of class definitions
Standard_EXPORT Standard_Integer NbClassDefs() const;
//! returns 1 if the theBackPointerReqs(ClassNum) = 1
//! returns 0 if the theBackPointerReqs(ClassNum) = 2
//! raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
Standard_EXPORT Standard_Boolean IsBackPointerReq (const Standard_Integer ClassNum) const;
//! returns 1 or 2
//! raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
Standard_EXPORT Standard_Integer BackPointerReq (const Standard_Integer ClassNum) const;
//! returns 1 if theClassOrders(ClassNum) = 1 (ordered class)
//! returns 0 if theClassOrders(ClassNum) = 2 (unordered class)
//! raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
Standard_EXPORT Standard_Boolean IsOrdered (const Standard_Integer ClassNum) const;
//! returns 1 or 2
//! raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
Standard_EXPORT Standard_Integer ClassOrder (const Standard_Integer ClassNum) const;
//! returns no. of items per class entry
//! raises exception if ClassNum <= 0 or ClassNum > NbClassDefs()
Standard_EXPORT Standard_Integer NbItemsPerClass (const Standard_Integer ClassNum) const;
//! returns ItemNum'th Item of ClassNum'th Class
//! raises exception if
//! ClassNum <= 0 or ClassNum > NbClassDefs()
//! ItemNum <= 0 or ItemNum > NbItemsPerClass(ClassNum)
Standard_EXPORT Standard_Integer Item (const Standard_Integer ClassNum, const Standard_Integer ItemNum) const;
DEFINE_STANDARD_RTTI(IGESDefs_AssociativityDef,IGESData_IGESEntity)
protected:
private:
Handle(TColStd_HArray1OfInteger) theBackPointerReqs;
Handle(TColStd_HArray1OfInteger) theClassOrders;
Handle(TColStd_HArray1OfInteger) theNbItemsPerClass;
Handle(IGESBasic_HArray1OfHArray1OfInteger) theItems;
};
#endif // _IGESDefs_AssociativityDef_HeaderFile

View File

@@ -1,168 +0,0 @@
-- Created on: 1993-01-13
-- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
-- Copyright (c) 1993-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.
class AttributeDef from IGESDefs inherits IGESEntity
---Purpose: defines IGES Attribute Table Definition Entity,
-- Type <322> Form [0, 1, 2] in package IGESDefs.
-- This is class is used to support the concept of well
-- defined collection of attributes, whether it is a table
-- or a single row of attributes.
uses
HAsciiString from TCollection,
HArray1OfInteger from TColStd,
HArray1OfTransient from TColStd,
HArray1OfReal from TColStd,
HArray1OfHAsciiString from Interface,
HArray1OfIGESEntity from IGESData,
TextDisplayTemplate from IGESGraph,
HArray1OfTextDisplayTemplate from IGESGraph,
HArray1OfHArray1OfTextDisplayTemplate from IGESDefs
raises DimensionMismatch, OutOfRange, NullObject
is
Create returns AttributeDef;
-- Specific methods for the entity
Init(me : mutable;
aName : HAsciiString;
aListType : Integer;
attrTypes : HArray1OfInteger;
attrValueDataTypes : HArray1OfInteger;
attrValueCounts : HArray1OfInteger;
attrValues : HArray1OfTransient from TColStd;
attrValuePointers : HArray1OfHArray1OfTextDisplayTemplate)
raises DimensionMismatch;
-- This method is used to set the fields of the
-- class AttributeDef
-- - aName : Attribute Table Names
-- - aListType : Attribute List Types
-- - attrTypes : Attribute Types
-- - attrValueDataTypes : Attribute Value Data Types
-- - attrValueCounts : Attribute Value Counts
-- - attrValues : Attribute Values
-- - attrValuePointers : Attribute Value Pointers to
-- TextDisplayTemplate
-- raises exceptions if lengths of attrTypes, attrValueDataTypes,
-- and attrValueCounts are not same
HasTableName (me) returns Boolean;
---Purpose : Returns True if a Table Name is defined
TableName(me) returns HAsciiString from TCollection;
---Purpose : returns the Attribute Table name, or comment
-- (default = null, no name : seeHasTableName)
ListType(me) returns Integer;
---Purpose : returns the Attribute List Type
NbAttributes(me) returns Integer;
---Purpose : returns the Number of Attributes
AttributeType(me ; num : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the num'th Attribute Type
-- raises exception if num <= 0 or num > NbAttributes()
AttributeValueDataType(me ; num : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the num'th Attribute value data type
-- raises exception if num <= 0 or num > NbAttributes()
AttributeValueCount(me; num : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the num'th Attribute value count
-- raises exception if num <= 0 or num > NbAttributes()
HasValues(me) returns Boolean;
---Purpose : returns false if Values are defined (i.e. for Form = 1 or 2)
HasTextDisplay(me) returns Boolean;
---Purpose : returns false if TextDisplays are defined (i.e. for Form = 2)
AttributeTextDisplay(me ; AttrNum : Integer; PointerNum : Integer)
returns TextDisplayTemplate
raises OutOfRange;
-- returns Null handle if form is 0 or 1
-- returns PointerNum'th TextDisplayTemplate of AttrNum'th attribute
-- raises exception if
-- AttrNum <= 0 or num > NbAttributes()
-- PointerNum <=0 or PointerNum > AttributeValueCount(AttrNum)
AttributeList (me ; AttrNum : Integer) returns Transient
---Purpose : Returns the List of Attributes <AttrNum>, as a Transient.
---Purpose : Its effective Type depends of the Type of Attribute :
-- HArray1OfInteger for Integer, Logical(0-1),
-- HArray1OfReal for Real, HArray1OfHSaciiString for String,
-- HArray1OfIGESEntity for Entity (Pointer)
-- See methods AttributeAs... for an accurate access
raises OutOfRange;
-- Error if AttrNum <= 0 or num > NbAttributes()
-- PointerNum <=0 or PointerNum > AttributeValueCount(AttrNum)
AttributeAsInteger (me; AttrNum, ValueNum : Integer) returns Integer
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not an Integer
AttributeAsReal (me; AttrNum, ValueNum : Integer) returns Real
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as a Real
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not a Real
AttributeAsString (me; AttrNum, ValueNum : Integer)
returns HAsciiString from TCollection
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
raises OutOfRange, NullObject;
-- Error if Indices out of Range, or no Value defined, or not a String
AttributeAsEntity (me; AttrNum, ValueNum : Integer) returns IGESEntity
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as an Entity
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not a Entity
AttributeAsLogical (me; AttrNum, ValueNum : Integer) returns Boolean
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as a Boolean
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not a Logical
fields
--
-- Class : IGESDefs_AttributeDef
--
-- Purpose : Declaration of variables specific to AttributeDef.
--
-- Reminder : An AttributeDef Entity provides a template for the
-- instance of attribute tables. It includes a table
-- name and for each attribute, an attribute type,
-- data type, and a count.
theName : HAsciiString;
theListType : Integer;
theAttrTypes : HArray1OfInteger;
theAttrValueDataTypes : HArray1OfInteger;
theAttrValueCounts : HArray1OfInteger;
theAttrValues : HArray1OfTransient from TColStd;
theAttrValuePointers : HArray1OfHArray1OfTextDisplayTemplate;
end AttributeDef;

View File

@@ -16,20 +16,25 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_AttributeDef.ixx>
#include <Standard_DimensionMismatch.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx>
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
// For each Attribute Value, according to Attribute Type :
// 0 -> Void, 1 -> Integer, 2 -> Real, 3 -> String, 4 -> Entity 6 -> Logical
IGESDefs_AttributeDef::IGESDefs_AttributeDef () { }

View File

@@ -0,0 +1,147 @@
// Created on: 1993-01-13
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 _IGESDefs_AttributeDef_HeaderFile
#define _IGESDefs_AttributeDef_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfTransient.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
class TCollection_HAsciiString;
class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class Standard_NullObject;
class IGESGraph_TextDisplayTemplate;
class Standard_Transient;
class IGESData_IGESEntity;
class IGESDefs_AttributeDef;
DEFINE_STANDARD_HANDLE(IGESDefs_AttributeDef, IGESData_IGESEntity)
//! defines IGES Attribute Table Definition Entity,
//! Type <322> Form [0, 1, 2] in package IGESDefs.
//! This is class is used to support the concept of well
//! defined collection of attributes, whether it is a table
//! or a single row of attributes.
class IGESDefs_AttributeDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_AttributeDef();
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Standard_Integer aListType, const Handle(TColStd_HArray1OfInteger)& attrTypes, const Handle(TColStd_HArray1OfInteger)& attrValueDataTypes, const Handle(TColStd_HArray1OfInteger)& attrValueCounts, const Handle(TColStd_HArray1OfTransient)& attrValues, const Handle(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate)& attrValuePointers);
//! Returns True if a Table Name is defined
Standard_EXPORT Standard_Boolean HasTableName() const;
//! returns the Attribute Table name, or comment
//! (default = null, no name : seeHasTableName)
Standard_EXPORT Handle(TCollection_HAsciiString) TableName() const;
//! returns the Attribute List Type
Standard_EXPORT Standard_Integer ListType() const;
//! returns the Number of Attributes
Standard_EXPORT Standard_Integer NbAttributes() const;
//! returns the num'th Attribute Type
//! raises exception if num <= 0 or num > NbAttributes()
Standard_EXPORT Standard_Integer AttributeType (const Standard_Integer num) const;
//! returns the num'th Attribute value data type
//! raises exception if num <= 0 or num > NbAttributes()
Standard_EXPORT Standard_Integer AttributeValueDataType (const Standard_Integer num) const;
//! returns the num'th Attribute value count
//! raises exception if num <= 0 or num > NbAttributes()
Standard_EXPORT Standard_Integer AttributeValueCount (const Standard_Integer num) const;
//! returns false if Values are defined (i.e. for Form = 1 or 2)
Standard_EXPORT Standard_Boolean HasValues() const;
//! returns false if TextDisplays are defined (i.e. for Form = 2)
Standard_EXPORT Standard_Boolean HasTextDisplay() const;
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) AttributeTextDisplay (const Standard_Integer AttrNum, const Standard_Integer PointerNum) const;
//! Returns the List of Attributes <AttrNum>, as a Transient.
//! Its effective Type depends of the Type of Attribute :
//! HArray1OfInteger for Integer, Logical(0-1),
//! HArray1OfReal for Real, HArray1OfHSaciiString for String,
//! HArray1OfIGESEntity for Entity (Pointer)
//! See methods AttributeAs... for an accurate access
Standard_EXPORT Handle(Standard_Transient) AttributeList (const Standard_Integer AttrNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
//! Error if Indices out of Range, or no Value defined, or not an Integer
Standard_EXPORT Standard_Integer AttributeAsInteger (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as a Real
//! Error if Indices out of Range, or no Value defined, or not a Real
Standard_EXPORT Standard_Real AttributeAsReal (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
Standard_EXPORT Handle(TCollection_HAsciiString) AttributeAsString (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Entity
//! Error if Indices out of Range, or no Value defined, or not a Entity
Standard_EXPORT Handle(IGESData_IGESEntity) AttributeAsEntity (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as a Boolean
//! Error if Indices out of Range, or no Value defined, or not a Logical
Standard_EXPORT Standard_Boolean AttributeAsLogical (const Standard_Integer AttrNum, const Standard_Integer ValueNum) const;
DEFINE_STANDARD_RTTI(IGESDefs_AttributeDef,IGESData_IGESEntity)
protected:
private:
Handle(TCollection_HAsciiString) theName;
Standard_Integer theListType;
Handle(TColStd_HArray1OfInteger) theAttrTypes;
Handle(TColStd_HArray1OfInteger) theAttrValueDataTypes;
Handle(TColStd_HArray1OfInteger) theAttrValueCounts;
Handle(TColStd_HArray1OfTransient) theAttrValues;
Handle(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate) theAttrValuePointers;
};
#endif // _IGESDefs_AttributeDef_HeaderFile

View File

@@ -1,140 +0,0 @@
-- Created on: 1993-01-09
-- Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
-- Copyright (c) 1993-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.
class AttributeTable from IGESDefs inherits IGESEntity
---Purpose: defines IGES Attribute Table, Type <422> Form <0, 1>
-- in package IGESDefs
-- This class is used to represent an occurence of
-- Attribute Table. This Class may be independent
-- or dependent or pointed at by other Entities.
uses
HAsciiString from TCollection,
AttributeDef from IGESDefs,
HArray1OfReal from TColStd,
HArray2OfTransient from TColStd,
HArray1OfInteger from TColStd,
HArray1OfHAsciiString from Interface,
HArray1OfIGESEntity from IGESData
raises OutOfRange, NullObject
is
Create returns AttributeTable;
-- Specific methods for the entity
Init (me : mutable;
attributes : HArray2OfTransient from TColStd);
---Purpose : This method is used to set the fields of the class
-- AttributeTable
-- - attributes : Attribute instances, created as
-- (1,NbAttributes,1,NbRows)
-- - NbRows = 1 is a particular case (Form 0)
SetDefinition (me : mutable; def : AttributeDef);
---Purpose : Sets a Definition as Structure information
-- (works by calling InitMisc)
Definition (me) returns AttributeDef;
---Purpose : Return the Structure information in Directory Entry,
-- casted as an AttributeDef
NbRows(me) returns Integer;
---Purpose : returns Number of Rows. Remark that it is always 1 if Form = 0
-- It means that the list of Attributes (by their number, and for each
-- one its type and ValueCount) is repeated <NbRows> times
NbAttributes (me) returns Integer;
---Purpose : returns Number of Attributes
DataType (me; Atnum : Integer) returns Integer;
---Purpose : returns the Type of an Attribute, given its No. : it is read in the
-- Definition.
-- (1 : Integer, 2 : Real, 3 : String, 4 : Entity, 6 : Logical)
ValueCount (me; Atnum : Integer) returns Integer;
---Purpose : returns the Count of Value for an Attribute, given its No. :
-- it is read in the Definition.
AttributeList (me; Attribnum : Integer; Rownum : Integer)
returns Transient
-- returns the List of Values which correspond to an Attribute,
-- given its No. and the No. of the Row
-- Remark : for Form 0, Rownum must be given equal to 1.
-- the Transient returned is a HArray1 of appropriate Type
-- (OfInteger, OfReal, OfHAsciiString, OfIGESEntity) and Length
-- See methods AttributeAs... for accurate access
raises OutOfRange;
-- Error if Attribnum or RowNum OutofRange
AttributeAsInteger (me; AtNum, Rownum, ValNum : Integer) returns Integer
---Purpose : Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Integer
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not an Integer
AttributeAsReal (me; AtNum, Rownum, ValNum : Integer) returns Real
---Purpose : Returns Attribute Value <AtNum, Rownum, rank ValNum> as a Real
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not a Real
AttributeAsString (me; AtNum, Rownum, ValNum : Integer)
returns HAsciiString from TCollection
---Purpose : Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Integer
raises OutOfRange, NullObject;
-- Error if Indices out of Range, or no Value defined, or not a String
AttributeAsEntity (me; AtNum, Rownum, ValNum : Integer) returns IGESEntity
---Purpose : Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Entity
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not an Entity
AttributeAsLogical (me; AtNum, Rownum, ValNum : Integer) returns Boolean
---Purpose : Returns Attribute Value <AtNum, Rownum, rank ValNum> as a Boolean
raises OutOfRange, NullObject;
---Purpose : Error if Indices out of Range, or no Value defined, or not a Logical
fields
--
-- Class : IGESDefs_AttributeTable
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class AttributeTable.
--
-- Reminder : The attributes can be of type no value, integer, real, string,
-- pointer or Boolean. Accordingly each list is stored as HArray1 of
-- Integer, Real, HAsciiString, IGESEntity of appropriate Length
--
theAttributes : HArray2OfTransient from TColStd;
-- if form number = 0 , only one Row
-- size = AVC(1) + AVC(2) + ... + AVC(NA)
-- where NA is Number of attributes obtained from AttributeDef
-- AVC(1), AVC(2),..., AVC(NA) is also obtained from the same
--
-- if form number = 1 , NbRows > 1 possible
-- size = NR * (AVC(1) + AVC(2) + ... + AVC(NA))
-- where NR is theNbRows
--
-- Ref : IGES specs for Attribute Table Definition Entity (Type 322)
end AttributeTable;

View File

@@ -16,22 +16,24 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_AttributeTable.ixx>
#include <Standard_DimensionMismatch.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <TCollection_HAsciiString.hxx>
#include <IGESDefs_AttributeTable.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
// ATTENTION ATTENTION : L Appellation "ROW" n est pas reconduite en l etat
// Le Numero d Attribut est donne en 1er (donc, en colonne du HArray2 et non
// en ligne), le numero de Colonne en 2e (donc, comme un numero de Ligne)
IGESDefs_AttributeTable::IGESDefs_AttributeTable () { }

View File

@@ -0,0 +1,129 @@
// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
// Copyright (c) 1993-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 _IGESDefs_AttributeTable_HeaderFile
#define _IGESDefs_AttributeTable_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray2OfTransient.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
class Standard_OutOfRange;
class Standard_NullObject;
class IGESDefs_AttributeDef;
class Standard_Transient;
class TCollection_HAsciiString;
class IGESData_IGESEntity;
class IGESDefs_AttributeTable;
DEFINE_STANDARD_HANDLE(IGESDefs_AttributeTable, IGESData_IGESEntity)
//! defines IGES Attribute Table, Type <422> Form <0, 1>
//! in package IGESDefs
//! This class is used to represent an occurence of
//! Attribute Table. This Class may be independent
//! or dependent or pointed at by other Entities.
class IGESDefs_AttributeTable : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_AttributeTable();
//! This method is used to set the fields of the class
//! AttributeTable
//! - attributes : Attribute instances, created as
//! (1,NbAttributes,1,NbRows)
//! - NbRows = 1 is a particular case (Form 0)
Standard_EXPORT void Init (const Handle(TColStd_HArray2OfTransient)& attributes);
//! Sets a Definition as Structure information
//! (works by calling InitMisc)
Standard_EXPORT void SetDefinition (const Handle(IGESDefs_AttributeDef)& def);
//! Return the Structure information in Directory Entry,
//! casted as an AttributeDef
Standard_EXPORT Handle(IGESDefs_AttributeDef) Definition() const;
//! returns Number of Rows. Remark that it is always 1 if Form = 0
//! It means that the list of Attributes (by their number, and for each
//! one its type and ValueCount) is repeated <NbRows> times
Standard_EXPORT Standard_Integer NbRows() const;
//! returns Number of Attributes
Standard_EXPORT Standard_Integer NbAttributes() const;
//! returns the Type of an Attribute, given its No. : it is read in the
//! Definition.
//! (1 : Integer, 2 : Real, 3 : String, 4 : Entity, 6 : Logical)
Standard_EXPORT Standard_Integer DataType (const Standard_Integer Atnum) const;
//! returns the Count of Value for an Attribute, given its No. :
//! it is read in the Definition.
Standard_EXPORT Standard_Integer ValueCount (const Standard_Integer Atnum) const;
Standard_EXPORT Handle(Standard_Transient) AttributeList (const Standard_Integer Attribnum, const Standard_Integer Rownum) const;
//! Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Integer
//! Error if Indices out of Range, or no Value defined, or not an Integer
Standard_EXPORT Standard_Integer AttributeAsInteger (const Standard_Integer AtNum, const Standard_Integer Rownum, const Standard_Integer ValNum) const;
//! Returns Attribute Value <AtNum, Rownum, rank ValNum> as a Real
//! Error if Indices out of Range, or no Value defined, or not a Real
Standard_EXPORT Standard_Real AttributeAsReal (const Standard_Integer AtNum, const Standard_Integer Rownum, const Standard_Integer ValNum) const;
//! Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Integer
Standard_EXPORT Handle(TCollection_HAsciiString) AttributeAsString (const Standard_Integer AtNum, const Standard_Integer Rownum, const Standard_Integer ValNum) const;
//! Returns Attribute Value <AtNum, Rownum, rank ValNum> as an Entity
//! Error if Indices out of Range, or no Value defined, or not an Entity
Standard_EXPORT Handle(IGESData_IGESEntity) AttributeAsEntity (const Standard_Integer AtNum, const Standard_Integer Rownum, const Standard_Integer ValNum) const;
//! Returns Attribute Value <AtNum, Rownum, rank ValNum> as a Boolean
//! Error if Indices out of Range, or no Value defined, or not a Logical
Standard_EXPORT Standard_Boolean AttributeAsLogical (const Standard_Integer AtNum, const Standard_Integer Rownum, const Standard_Integer ValNum) const;
DEFINE_STANDARD_RTTI(IGESDefs_AttributeTable,IGESData_IGESEntity)
protected:
private:
Handle(TColStd_HArray2OfTransient) theAttributes;
};
#endif // _IGESDefs_AttributeTable_HeaderFile

View File

@@ -1,60 +0,0 @@
-- Created on: 1993-05-10
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class GeneralModule from IGESDefs inherits GeneralModule from IGESData
---Purpose : Definition of General Services for IGESDefs (specific part)
-- This Services comprise : Shared & Implied Lists, Copy, Check
uses OStream,
Check, ShareTool, EntityIterator, CopyTool,
IGESEntity, DirChecker
is
Create returns GeneralModule from IGESDefs;
---Purpose : Creates a GeneralModule from IGESDefs and puts it into GeneralLib
OwnSharedCase (me; CN : Integer; ent : IGESEntity;
iter : in out EntityIterator);
---Purpose : Lists the Entities shared by a given IGESEntity <ent>, from
-- its specific parameters : specific for each type
DirChecker (me; CN : Integer; ent : IGESEntity) returns DirChecker;
---Purpose : Returns a DirChecker, specific for each type of Entity
-- (identified by its Case Number) : this DirChecker defines
-- constraints which must be respected by the DirectoryPart
OwnCheckCase (me; CN : Integer; ent : IGESEntity; shares : ShareTool;
ach : in out Check);
---Purpose : Performs Specific Semantic Check for each type of Entity
NewVoid (me; CN : Integer; entto : out Transient)
returns Boolean;
---Purpose : Specific creation of a new void entity
OwnCopyCase (me; CN : Integer;
entfrom : IGESEntity; entto : IGESEntity;
TC : in out CopyTool);
---Purpose : Copies parameters which are specific of each Type of Entity
CategoryNumber (me; CN : Integer; ent : Transient; shares : ShareTool)
returns Integer is redefined;
---Purpose : Returns a category number which characterizes an entity
-- Auxiliary for all
end GeneralModule;

View File

@@ -11,18 +11,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESDefs_GeneralModule.ixx>
#include <Interface_Macros.hxx>
#include <Interface_Category.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESDefs_AssociativityDef.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_AttributeTable.hxx>
#include <IGESDefs_GeneralModule.hxx>
#include <IGESDefs_GenericData.hxx>
#include <IGESDefs_MacroDef.hxx>
#include <IGESDefs_TabularData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <IGESDefs_ToolAssociativityDef.hxx>
#include <IGESDefs_ToolAttributeDef.hxx>
#include <IGESDefs_ToolAttributeTable.hxx>
@@ -30,14 +28,19 @@
#include <IGESDefs_ToolMacroDef.hxx>
#include <IGESDefs_ToolTabularData.hxx>
#include <IGESDefs_ToolUnitsData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <Interface_Category.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDefs_GeneralModule::IGESDefs_GeneralModule () { }

View File

@@ -0,0 +1,94 @@
// Created on: 1993-05-10
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_GeneralModule_HeaderFile
#define _IGESDefs_GeneralModule_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_GeneralModule.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Standard_Transient;
class Interface_CopyTool;
class IGESDefs_GeneralModule;
DEFINE_STANDARD_HANDLE(IGESDefs_GeneralModule, IGESData_GeneralModule)
//! Definition of General Services for IGESDefs (specific part)
//! This Services comprise : Shared & Implied Lists, Copy, Check
class IGESDefs_GeneralModule : public IGESData_GeneralModule
{
public:
//! Creates a GeneralModule from IGESDefs and puts it into GeneralLib
Standard_EXPORT IGESDefs_GeneralModule();
//! Lists the Entities shared by a given IGESEntity <ent>, from
//! its specific parameters : specific for each type
Standard_EXPORT void OwnSharedCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const;
//! Returns a DirChecker, specific for each type of Entity
//! (identified by its Case Number) : this DirChecker defines
//! constraints which must be respected by the DirectoryPart
Standard_EXPORT IGESData_DirChecker DirChecker (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const;
//! Performs Specific Semantic Check for each type of Entity
Standard_EXPORT void OwnCheckCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Specific creation of a new void entity
Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const;
//! Copies parameters which are specific of each Type of Entity
Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const;
//! Returns a category number which characterizes an entity
//! Auxiliary for all
Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(IGESDefs_GeneralModule,IGESData_GeneralModule)
protected:
private:
};
#endif // _IGESDefs_GeneralModule_HeaderFile

View File

@@ -1,134 +0,0 @@
-- Created on: 1993-01-09
-- Created by: CKY / Contract Toubro-Larsen (Anand NATRAJAN)
-- Copyright (c) 1993-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.
class GenericData from IGESDefs inherits IGESEntity
---Purpose: defines IGES Generic Data, Type <406> Form <27>
-- in package IGESDefs
-- Used to communicate information defined by the system
-- operator while creating the model. The information is
-- system specific and does not map into one of the
-- predefined properties or associativities. Properties
-- and property values can be defined by multiple
-- instances of this property.
uses
HAsciiString from TCollection,
HArray1OfReal from TColStd,
HArray1OfTransient from TColStd,
HArray1OfInteger from TColStd,
HArray1OfHAsciiString from Interface,
HArray1OfIGESEntity from IGESData
raises DimensionMismatch, OutOfRange, NullObject
is
Create returns GenericData;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbPropVal : Integer;
aName : HAsciiString;
allTypes : HArray1OfInteger;
allValues : HArray1OfTransient from TColStd)
---Purpose : This method is used to set the fields of the class
-- GenericData
-- - nbPropVal : Number of property values
-- - aName : Property Name
-- - allTypes : Property Types
-- - allValues : Property Values
raises DimensionMismatch;
-- if lengths of allTypes and allValues are not same
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values
Name (me) returns HAsciiString from TCollection;
---Purpose : returns property name
NbTypeValuePairs (me) returns Integer;
---Purpose : returns the number of TYPE/VALUE pairs
Type (me; Index : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the Index'th property value data type
-- raises exception if Index <= 0 or Index > NbTypeValuePairs()
Value (me; Index : Integer) returns Transient
--The Transient returned depends of Type :
---Purpose : HArray1OfInteger (length 1), HArray1OfReal (length 1) for
-- Integer, Real, Boolean (= Integer 0/1),
-- HAsciiString for String (the value itself),
-- IGESEntity for Entity (the value itself)
raises OutOfRange;
-- raises exception if Index <= 0 or Index > NbTypeValuePairs()
ValueAsInteger (me; ValueNum : Integer) returns Integer
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
raises OutOfRange, NullObject;
---Purpose : Error if Index out of Range, or not an Integer
ValueAsReal (me; ValueNum : Integer) returns Real
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as a Real
raises OutOfRange, NullObject;
---Purpose : Error if Index out of Range, or not a Real
ValueAsString (me; ValueNum : Integer)
returns HAsciiString from TCollection
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
raises OutOfRange, NullObject;
-- Error if Index out of Range, or not a String
ValueAsEntity (me; ValueNum : Integer) returns IGESEntity
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as an Entity
raises OutOfRange, NullObject;
---Purpose : Error if Index out of Range, or not a Entity
ValueAsLogical (me; ValueNum : Integer) returns Boolean
---Purpose : Returns Attribute Value <AttrNum, rank ValueNum> as a Boolean
raises OutOfRange, NullObject;
---Purpose : Error if Index out of Range, or not a Logical
fields
--
-- Class : IGESDefs_GenericData
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class GenericData.
--
-- Reminder : A GenericData instance is defined by :
-- - Number of property values
-- - Property Name
-- - Property Types
-- - Property Values
-- The values can be of type either no value, integer, real,
-- string, pointer or boolean. Accordingly we store them in a
-- Transient Object of appropriate Type :
-- - HArray1OfInteger/OfReal of length 1, for Integer, Real, Logical
-- - a single HAsciiString for String
-- - a single IGESEntity for Entity (Pointer)
theNbPropertyValues : Integer;
theName : HAsciiString;
theTypes : HArray1OfInteger;
theValues : HArray1OfTransient from TColStd;
end GenericData;

View File

@@ -15,15 +15,20 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
// rln 11.05.2000 BUC60660
#include <IGESDefs_GenericData.ixx>
#include <TColStd_HArray1OfReal.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESDefs_GenericData.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
IGESDefs_GenericData::IGESDefs_GenericData () { }

View File

@@ -0,0 +1,129 @@
// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen (Anand NATRAJAN)
// Copyright (c) 1993-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 _IGESDefs_GenericData_HeaderFile
#define _IGESDefs_GenericData_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfTransient.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
class TCollection_HAsciiString;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class Standard_NullObject;
class Standard_Transient;
class IGESData_IGESEntity;
class IGESDefs_GenericData;
DEFINE_STANDARD_HANDLE(IGESDefs_GenericData, IGESData_IGESEntity)
//! defines IGES Generic Data, Type <406> Form <27>
//! in package IGESDefs
//! Used to communicate information defined by the system
//! operator while creating the model. The information is
//! system specific and does not map into one of the
//! predefined properties or associativities. Properties
//! and property values can be defined by multiple
//! instances of this property.
class IGESDefs_GenericData : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_GenericData();
//! This method is used to set the fields of the class
//! GenericData
//! - nbPropVal : Number of property values
//! - aName : Property Name
//! - allTypes : Property Types
//! - allValues : Property Values
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TCollection_HAsciiString)& aName, const Handle(TColStd_HArray1OfInteger)& allTypes, const Handle(TColStd_HArray1OfTransient)& allValues);
//! returns the number of property values
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns property name
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
//! returns the number of TYPE/VALUE pairs
Standard_EXPORT Standard_Integer NbTypeValuePairs() const;
//! returns the Index'th property value data type
//! raises exception if Index <= 0 or Index > NbTypeValuePairs()
Standard_EXPORT Standard_Integer Type (const Standard_Integer Index) const;
//! HArray1OfInteger (length 1), HArray1OfReal (length 1) for
//! Integer, Real, Boolean (= Integer 0/1),
//! HAsciiString for String (the value itself),
//! IGESEntity for Entity (the value itself)
Standard_EXPORT Handle(Standard_Transient) Value (const Standard_Integer Index) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
//! Error if Index out of Range, or not an Integer
Standard_EXPORT Standard_Integer ValueAsInteger (const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as a Real
//! Error if Index out of Range, or not a Real
Standard_EXPORT Standard_Real ValueAsReal (const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Integer
Standard_EXPORT Handle(TCollection_HAsciiString) ValueAsString (const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as an Entity
//! Error if Index out of Range, or not a Entity
Standard_EXPORT Handle(IGESData_IGESEntity) ValueAsEntity (const Standard_Integer ValueNum) const;
//! Returns Attribute Value <AttrNum, rank ValueNum> as a Boolean
//! Error if Index out of Range, or not a Logical
Standard_EXPORT Standard_Boolean ValueAsLogical (const Standard_Integer ValueNum) const;
DEFINE_STANDARD_RTTI(IGESDefs_GenericData,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Handle(TCollection_HAsciiString) theName;
Handle(TColStd_HArray1OfInteger) theTypes;
Handle(TColStd_HArray1OfTransient) theValues;
};
#endif // _IGESDefs_GenericData_HeaderFile

View File

@@ -0,0 +1,75 @@
// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 _IGESDefs_HArray1OfHArray1OfTextDisplayTemplate_HeaderFile
#define _IGESDefs_HArray1OfHArray1OfTextDisplayTemplate_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfTransient.hxx>
#include <MMgt_TShared.hxx>
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <Standard_Integer.hxx>
class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate;
DEFINE_STANDARD_HANDLE(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate, MMgt_TShared)
class IGESDefs_HArray1OfHArray1OfTextDisplayTemplate : public MMgt_TShared
{
public:
Standard_EXPORT IGESDefs_HArray1OfHArray1OfTextDisplayTemplate(const Standard_Integer low, const Standard_Integer up);
Standard_EXPORT Standard_Integer Lower() const;
Standard_EXPORT Standard_Integer Upper() const;
Standard_EXPORT Standard_Integer Length() const;
Standard_EXPORT void SetValue (const Standard_Integer num, const Handle(IGESGraph_HArray1OfTextDisplayTemplate)& val);
Standard_EXPORT Handle(IGESGraph_HArray1OfTextDisplayTemplate) Value (const Standard_Integer num) const;
DEFINE_STANDARD_RTTI(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate,MMgt_TShared)
protected:
private:
TColStd_Array1OfTransient thelist;
};
#endif // _IGESDefs_HArray1OfHArray1OfTextDisplayTemplate_HeaderFile

View File

@@ -0,0 +1,38 @@
// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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.
#include <IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx>
#include <Standard_Type.hxx>
#define Handle_TheKey Handle(IGESGraph_HArray1OfTextDisplayTemplate)
#define TheKey IGESGraph_HArray1OfTextDisplayTemplate
#define TheKey_hxx <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#define Interface_JaggedArray IGESDefs_HArray1OfHArray1OfTextDisplayTemplate
#define Interface_JaggedArray_hxx <IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx>
#define Handle_Interface_JaggedArray Handle(IGESDefs_HArray1OfHArray1OfTextDisplayTemplate)
#include <Interface_JaggedArray.gxx>

View File

@@ -1,84 +0,0 @@
-- Created on: 1993-01-13
-- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
-- Copyright (c) 1993-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.
class MacroDef from IGESDefs inherits IGESEntity
---Purpose: defines IGES Macro Definition Entity, Type <306> Form <0>
-- in package IGESDefs
-- This Class specifies the action of a specific MACRO.
-- After specification MACRO can be used as necessary
-- by means of MACRO class instance entity.
uses
HAsciiString from TCollection,
HArray1OfHAsciiString from Interface
raises OutOfRange
is
Create returns MacroDef;
-- Specific methods for the entity
Init (me : mutable;
macro : HAsciiString;
entityTypeID : Integer;
langStatements : HArray1OfHAsciiString;
endMacro : HAsciiString);
---Purpose : This method is used to set the fields of the class
-- MacroDef
-- - macro : MACRO
-- - entityTypeID : Entity Type ID
-- - langStatements : Language Statements
-- - endMacro : END MACRO
NbStatements(me) returns Integer;
---Purpose : returns the number of language statements
MACRO(me) returns HAsciiString from TCollection;
---Purpose : returns the MACRO(Literal)
EntityTypeID(me) returns Integer;
---Purpose : returns the Entity Type ID
LanguageStatement(me ; StatNum : Integer)
returns HAsciiString from TCollection
raises OutOfRange;
-- returns the StatNum'th statement
-- raises exception if StatNum <= 0 or StatNum > NbStatements()
ENDMACRO(me) returns HAsciiString from TCollection;
---Purpose : returns the ENDM(Literal)
fields
--
-- Class : IGESDefs_MacroDef
--
-- Purpose : Declaration of variables specific to MacroDef
--
-- Reminder : An MacroDef Entity specifies the action of a
-- specific MACRO. It consists of only language
-- statements in the parameter data.
theMACRO : HAsciiString;
theEntityTypeID : Integer;
theLangStatements : HArray1OfHAsciiString;
theENDMACRO : HAsciiString;
end MacroDef;

View File

@@ -16,9 +16,11 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_MacroDef.ixx>
#include <IGESDefs_MacroDef.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESDefs_MacroDef::IGESDefs_MacroDef () { }

View File

@@ -0,0 +1,95 @@
// Created on: 1993-01-13
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 _IGESDefs_MacroDef_HeaderFile
#define _IGESDefs_MacroDef_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
class Standard_OutOfRange;
class IGESDefs_MacroDef;
DEFINE_STANDARD_HANDLE(IGESDefs_MacroDef, IGESData_IGESEntity)
//! defines IGES Macro Definition Entity, Type <306> Form <0>
//! in package IGESDefs
//! This Class specifies the action of a specific MACRO.
//! After specification MACRO can be used as necessary
//! by means of MACRO class instance entity.
class IGESDefs_MacroDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_MacroDef();
//! This method is used to set the fields of the class
//! MacroDef
//! - macro : MACRO
//! - entityTypeID : Entity Type ID
//! - langStatements : Language Statements
//! - endMacro : END MACRO
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& macro, const Standard_Integer entityTypeID, const Handle(Interface_HArray1OfHAsciiString)& langStatements, const Handle(TCollection_HAsciiString)& endMacro);
//! returns the number of language statements
Standard_EXPORT Standard_Integer NbStatements() const;
//! returns the MACRO(Literal)
Standard_EXPORT Handle(TCollection_HAsciiString) MACRO() const;
//! returns the Entity Type ID
Standard_EXPORT Standard_Integer EntityTypeID() const;
Standard_EXPORT Handle(TCollection_HAsciiString) LanguageStatement (const Standard_Integer StatNum) const;
//! returns the ENDM(Literal)
Standard_EXPORT Handle(TCollection_HAsciiString) ENDMACRO() const;
DEFINE_STANDARD_RTTI(IGESDefs_MacroDef,IGESData_IGESEntity)
protected:
private:
Handle(TCollection_HAsciiString) theMACRO;
Standard_Integer theEntityTypeID;
Handle(Interface_HArray1OfHAsciiString) theLangStatements;
Handle(TCollection_HAsciiString) theENDMACRO;
};
#endif // _IGESDefs_MacroDef_HeaderFile

View File

@@ -1,41 +0,0 @@
-- Created on: 1993-05-05
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class Protocol from IGESDefs inherits Protocol from IGESData
---Purpose : Description of Protocol for IGESDefs
uses Type, Protocol from Interface
is
Create returns Protocol from IGESDefs;
NbResources (me) returns Integer is redefined;
---Purpose : Gives the count of Resource Protocol. Here, one
-- (Protocol from IGESGraph)
Resource (me; num : Integer) returns Protocol from Interface is redefined;
---Purpose : Returns a Resource, given a rank.
TypeNumber (me; atype : any Type) returns Integer is redefined;
---Purpose : Returns a Case Number, specific of each recognized Type
-- This Case Number is then used in Libraries : the various
-- Modules attached to this class of Protocol must use them
-- in accordance (for a given value of TypeNumber, they must
-- consider the same Type as the Protocol defines)
end Protocol;

View File

@@ -11,18 +11,19 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESDefs_Protocol.ixx>
#include <IGESDefs_AssociativityDef.hxx>
#include <IGESDefs_MacroDef.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_TabularData.hxx>
#include <IGESDefs_GenericData.hxx>
#include <IGESDefs_AttributeTable.hxx>
#include <IGESGraph.hxx>
#include <IGESGraph_Protocol.hxx>
#include <IGESDefs_GenericData.hxx>
#include <IGESDefs_MacroDef.hxx>
#include <IGESDefs_Protocol.hxx>
#include <IGESDefs_TabularData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <IGESGraph.hxx>
#include <IGESGraph_Protocol.hxx>
#include <Interface_Protocol.hxx>
#include <Standard_Type.hxx>
static int deja = 0;
static Handle(Standard_Type) atype1,atype2,atype3,atype4,atype5,atype6,atype7;

View File

@@ -0,0 +1,78 @@
// Created on: 1993-05-05
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_Protocol_HeaderFile
#define _IGESDefs_Protocol_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_Protocol.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Type.hxx>
class Interface_Protocol;
class IGESDefs_Protocol;
DEFINE_STANDARD_HANDLE(IGESDefs_Protocol, IGESData_Protocol)
//! Description of Protocol for IGESDefs
class IGESDefs_Protocol : public IGESData_Protocol
{
public:
Standard_EXPORT IGESDefs_Protocol();
//! Gives the count of Resource Protocol. Here, one
//! (Protocol from IGESGraph)
Standard_EXPORT virtual Standard_Integer NbResources() const Standard_OVERRIDE;
//! Returns a Resource, given a rank.
Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
//! Returns a Case Number, specific of each recognized Type
//! This Case Number is then used in Libraries : the various
//! Modules attached to this class of Protocol must use them
//! in accordance (for a given value of TypeNumber, they must
//! consider the same Type as the Protocol defines)
Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(IGESDefs_Protocol,IGESData_Protocol)
protected:
private:
};
#endif // _IGESDefs_Protocol_HeaderFile

View File

@@ -1,45 +0,0 @@
-- Created on: 1993-09-06
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ReadWriteModule from IGESDefs inherits ReadWriteModule from IGESData
---Purpose : Defines Defs File Access Module for IGESDefs (specific parts)
-- Specific actions concern : Read and Write Own Parameters of
-- an IGESEntity.
uses Transient, FileReaderData,
IGESEntity, DirPart, IGESReaderData, ParamReader, IGESWriter
raises DomainError
is
Create returns ReadWriteModule from IGESDefs;
---Purpose : Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
CaseIGES (me; typenum, formnum : Integer) returns Integer;
---Purpose : Defines Case Numbers for Entities of IGESDefs
ReadOwnParams (me; CN : Integer; ent : IGESEntity;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError;
---Purpose : Reads own parameters from file for an Entity of IGESDefs
WriteOwnParams (me; CN : Integer; ent : IGESEntity;
IW : in out IGESWriter);
---Purpose : Writes own parameters to IGESWriter
end ReadWriteModule;

View File

@@ -11,17 +11,18 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESDefs_ReadWriteModule.ixx>
#include <Interface_Macros.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_AssociativityDef.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_AttributeTable.hxx>
#include <IGESDefs_GenericData.hxx>
#include <IGESDefs_MacroDef.hxx>
#include <IGESDefs_ReadWriteModule.hxx>
#include <IGESDefs_TabularData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <IGESDefs_ToolAssociativityDef.hxx>
#include <IGESDefs_ToolAttributeDef.hxx>
#include <IGESDefs_ToolAttributeTable.hxx>
@@ -29,14 +30,14 @@
#include <IGESDefs_ToolMacroDef.hxx>
#include <IGESDefs_ToolTabularData.hxx>
#include <IGESDefs_ToolUnitsData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <Interface_Macros.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_Type.hxx>
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDefs_ReadWriteModule::IGESDefs_ReadWriteModule () { }

View File

@@ -0,0 +1,79 @@
// Created on: 1993-09-06
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ReadWriteModule_HeaderFile
#define _IGESDefs_ReadWriteModule_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_ReadWriteModule.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESData_IGESEntity;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class IGESDefs_ReadWriteModule;
DEFINE_STANDARD_HANDLE(IGESDefs_ReadWriteModule, IGESData_ReadWriteModule)
//! Defines Defs File Access Module for IGESDefs (specific parts)
//! Specific actions concern : Read and Write Own Parameters of
//! an IGESEntity.
class IGESDefs_ReadWriteModule : public IGESData_ReadWriteModule
{
public:
//! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
Standard_EXPORT IGESDefs_ReadWriteModule();
//! Defines Case Numbers for Entities of IGESDefs
Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const;
//! Reads own parameters from file for an Entity of IGESDefs
Standard_EXPORT void ReadOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const;
DEFINE_STANDARD_RTTI(IGESDefs_ReadWriteModule,IGESData_ReadWriteModule)
protected:
private:
};
#endif // _IGESDefs_ReadWriteModule_HeaderFile

View File

@@ -1,32 +0,0 @@
-- Created on: 1993-09-07
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class SpecificModule from IGESDefs inherits SpecificModule from IGESData
---Purpose : Defines Services attached to IGES Entities : Dump, for IGESDefs
uses Messenger from Message, IGESEntity, IGESDumper
is
Create returns SpecificModule from IGESDefs;
---Purpose : Creates a SpecificModule from IGESDefs & puts it into SpecificLib
OwnDump (me; CN : Integer; ent : IGESEntity;
dumper : IGESDumper; S : Messenger from Message; own : Integer);
---Purpose : Specific Dump (own parameters) for IGESDefs
end SpecificModule;

View File

@@ -11,17 +11,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESDefs_SpecificModule.ixx>
#include <Interface_Macros.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESDefs_AssociativityDef.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_AttributeTable.hxx>
#include <IGESDefs_GenericData.hxx>
#include <IGESDefs_MacroDef.hxx>
#include <IGESDefs_SpecificModule.hxx>
#include <IGESDefs_TabularData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <IGESDefs_ToolAssociativityDef.hxx>
#include <IGESDefs_ToolAttributeDef.hxx>
#include <IGESDefs_ToolAttributeTable.hxx>
@@ -29,14 +28,14 @@
#include <IGESDefs_ToolMacroDef.hxx>
#include <IGESDefs_ToolTabularData.hxx>
#include <IGESDefs_ToolUnitsData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <Interface_Macros.hxx>
#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESDefs_SpecificModule::IGESDefs_SpecificModule() { }

View File

@@ -0,0 +1,69 @@
// Created on: 1993-09-07
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_SpecificModule_HeaderFile
#define _IGESDefs_SpecificModule_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_SpecificModule.hxx>
#include <Standard_Integer.hxx>
class IGESData_IGESEntity;
class IGESData_IGESDumper;
class Message_Messenger;
class IGESDefs_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESDefs_SpecificModule, IGESData_SpecificModule)
//! Defines Services attached to IGES Entities : Dump, for IGESDefs
class IGESDefs_SpecificModule : public IGESData_SpecificModule
{
public:
//! Creates a SpecificModule from IGESDefs & puts it into SpecificLib
Standard_EXPORT IGESDefs_SpecificModule();
//! Specific Dump (own parameters) for IGESDefs
Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
DEFINE_STANDARD_RTTI(IGESDefs_SpecificModule,IGESData_SpecificModule)
protected:
private:
};
#endif // _IGESDefs_SpecificModule_HeaderFile

View File

@@ -1,133 +0,0 @@
-- Created on: 1993-01-09
-- Created by: CKY / Contract Toubro-Larsen ( SIVA )
-- Copyright (c) 1993-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.
class TabularData from IGESDefs inherits IGESEntity
---Purpose: Defines IGES Tabular Data, Type <406> Form <11>,
-- in package IGESDefs
-- This Class is used to provide a Structure to accomodate
-- point form data.
uses
HArray1OfInteger from TColStd,
HArray1OfReal from TColStd,
HArray1OfHArray1OfReal from IGESBasic
raises DimensionMismatch, OutOfRange
is
Create returns TabularData;
-- Specific methods for the entity
Init (me : mutable;
nbProps : Integer;
propType : Integer;
typesInd : HArray1OfInteger;
nbValuesInd : HArray1OfInteger;
valuesInd : HArray1OfHArray1OfReal;
valuesDep : HArray1OfHArray1OfReal)
raises DimensionMismatch;
---Purpose : This method is used to set the fields of the class
-- TabularData
-- - nbProps : Number of property values
-- - propType : Property Type
-- - typesInd : Type of independent variables
-- - nbValuesInd : Number of values of independent variables
-- - valuesInd : Values of independent variables
-- - valuesDep : Values of dependent variables
-- raises exception if lengths of typeInd and nbValuesInd are not same
NbPropertyValues(me) returns Integer;
---Purpose : returns the number of property values (recorded)
ComputedNbPropertyValues (me) returns Integer;
---Purpose : determines the number of property values required
OwnCorrect (me : mutable) returns Boolean;
---Purpose : checks, and correct as necessary, the number of property
-- values. Returns True if corrected, False if already OK
PropertyType(me) returns Integer;
---Purpose : returns the property type
NbDependents(me) returns Integer;
---Purpose : returns the number of dependent variables
NbIndependents(me) returns Integer;
---Purpose : returns the number of independent variables
TypeOfIndependents(me; num: Integer) returns Integer
raises OutOfRange;
---Purpose : returns the type of the num'th independent variable
-- raises exception if num <= 0 or num > NbIndependents()
NbValues(me; num : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the number of different values of the num'th indep. variable
-- raises exception if num <= 0 or num > NbIndependents()
IndependentValue(me; variablenum : Integer; valuenum : Integer)
returns Real
raises OutOfRange;
-- returns valuenum'th value of the variablenum'th independent variable
-- raises exception if
-- variablenum <= 0 or variablenum > NbIndependents()
-- valuenum <= 0 or valuenum > NbValues(variablenum)
DependentValues (me; num : Integer) returns HArray1OfReal from TColStd
raises OutOfRange;
-- returns the entire list of recorded Dependent Values
-- UNRESOLVED. Temporarily, all dependent values are attached to
-- <num> = 1, the other values remain undefined
DependentValue(me; variablenum: Integer; valuenum: Integer)
returns Real
raises OutOfRange;
-- RESERVED, unresolved
-- valuenum'th value of the variablenum'th dependent variable
-- raises exception if
-- variablenum <= 0 or variablenum > NbIndependents()
-- valuenum <= 0 or valuenum > NbValues(variablenum)
fields
--
-- Class : IGESDefs_TabularData
--
-- Purpose : Declaration of variables specific to the definition
-- of the Class TabularData.
--
-- Reminder : A TabularData instance is defined by :
-- - The number of properties
-- - The property type, an integer
-- - The property type, an integer
-- - The number of dependent variables
-- - The type of independent variables, a single array of Int
-- - The single array of integer values
-- - The single array of independent values
-- - The single array of dependent values
theNbPropertyValues : Integer;
thePropertyType : Integer;
theTypeOfIndependentVariables : HArray1OfInteger;
theNbValues : HArray1OfInteger;
theIndependentValues : HArray1OfHArray1OfReal;
theDependentValues : HArray1OfHArray1OfReal;
end TabularData;

View File

@@ -15,15 +15,16 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
// UNFINISHED
// The last field (theDependentValues) not resolved. Queried to mdtv
#include <IGESDefs_TabularData.ixx>
#include <IGESBasic_HArray1OfHArray1OfReal.hxx>
#include <IGESDefs_TabularData.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfReal.hxx>
IGESDefs_TabularData::IGESDefs_TabularData () { }

View File

@@ -0,0 +1,122 @@
// Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( SIVA )
// Copyright (c) 1993-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 _IGESDefs_TabularData_HeaderFile
#define _IGESDefs_TabularData_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <TColStd_HArray1OfReal.hxx>
class IGESBasic_HArray1OfHArray1OfReal;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class IGESDefs_TabularData;
DEFINE_STANDARD_HANDLE(IGESDefs_TabularData, IGESData_IGESEntity)
//! Defines IGES Tabular Data, Type <406> Form <11>,
//! in package IGESDefs
//! This Class is used to provide a Structure to accomodate
//! point form data.
class IGESDefs_TabularData : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_TabularData();
//! This method is used to set the fields of the class
//! TabularData
//! - nbProps : Number of property values
//! - propType : Property Type
//! - typesInd : Type of independent variables
//! - nbValuesInd : Number of values of independent variables
//! - valuesInd : Values of independent variables
//! - valuesDep : Values of dependent variables
//! raises exception if lengths of typeInd and nbValuesInd are not same
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer propType, const Handle(TColStd_HArray1OfInteger)& typesInd, const Handle(TColStd_HArray1OfInteger)& nbValuesInd, const Handle(IGESBasic_HArray1OfHArray1OfReal)& valuesInd, const Handle(IGESBasic_HArray1OfHArray1OfReal)& valuesDep);
//! returns the number of property values (recorded)
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! determines the number of property values required
Standard_EXPORT Standard_Integer ComputedNbPropertyValues() const;
//! checks, and correct as necessary, the number of property
//! values. Returns True if corrected, False if already OK
Standard_EXPORT Standard_Boolean OwnCorrect();
//! returns the property type
Standard_EXPORT Standard_Integer PropertyType() const;
//! returns the number of dependent variables
Standard_EXPORT Standard_Integer NbDependents() const;
//! returns the number of independent variables
Standard_EXPORT Standard_Integer NbIndependents() const;
//! returns the type of the num'th independent variable
//! raises exception if num <= 0 or num > NbIndependents()
Standard_EXPORT Standard_Integer TypeOfIndependents (const Standard_Integer num) const;
//! returns the number of different values of the num'th indep. variable
//! raises exception if num <= 0 or num > NbIndependents()
Standard_EXPORT Standard_Integer NbValues (const Standard_Integer num) const;
Standard_EXPORT Standard_Real IndependentValue (const Standard_Integer variablenum, const Standard_Integer valuenum) const;
Standard_EXPORT Handle(TColStd_HArray1OfReal) DependentValues (const Standard_Integer num) const;
Standard_EXPORT Standard_Real DependentValue (const Standard_Integer variablenum, const Standard_Integer valuenum) const;
DEFINE_STANDARD_RTTI(IGESDefs_TabularData,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer thePropertyType;
Handle(TColStd_HArray1OfInteger) theTypeOfIndependentVariables;
Handle(TColStd_HArray1OfInteger) theNbValues;
Handle(IGESBasic_HArray1OfHArray1OfReal) theIndependentValues;
Handle(IGESBasic_HArray1OfHArray1OfReal) theDependentValues;
};
#endif // _IGESDefs_TabularData_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolAssociativityDef from IGESDefs
---Purpose : Tool to work on a AssociativityDef. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses AssociativityDef from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolAssociativityDef;
---Purpose : Returns a ToolAssociativityDef, ready to work
ReadOwnParams (me; ent : AssociativityDef;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : AssociativityDef;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : AssociativityDef;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a AssociativityDef <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : AssociativityDef) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : AssociativityDef;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : AssociativityDef; entto : AssociativityDef;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : AssociativityDef;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolAssociativityDef;

View File

@@ -16,13 +16,24 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_ToolAssociativityDef.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESBasic_HArray1OfHArray1OfInteger.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_AssociativityDef.hxx>
#include <IGESDefs_ToolAssociativityDef.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
IGESDefs_ToolAssociativityDef::IGESDefs_ToolAssociativityDef () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolAssociativityDef_HeaderFile
#define _IGESDefs_ToolAssociativityDef_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_AssociativityDef;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a AssociativityDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolAssociativityDef
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolAssociativityDef, ready to work
Standard_EXPORT IGESDefs_ToolAssociativityDef();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_AssociativityDef)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_AssociativityDef)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a AssociativityDef <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_AssociativityDef)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_AssociativityDef)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_AssociativityDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AssociativityDef)& entfrom, const Handle(IGESDefs_AssociativityDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolAssociativityDef_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolAttributeDef from IGESDefs
---Purpose : Tool to work on a AttributeDef. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses AttributeDef from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolAttributeDef;
---Purpose : Returns a ToolAttributeDef, ready to work
ReadOwnParams (me; ent : AttributeDef;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : AttributeDef;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : AttributeDef;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a AttributeDef <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : AttributeDef) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : AttributeDef;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : AttributeDef; entto : AttributeDef;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : AttributeDef;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolAttributeDef;

View File

@@ -16,23 +16,34 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_ToolAttributeDef.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <TColStd_HArray1OfTransient.hxx>
#include <IGESData_IGESEntity.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_HArray1OfHArray1OfTextDisplayTemplate.hxx>
#include <IGESDefs_ToolAttributeDef.hxx>
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfTransient.hxx>
#include <stdio.h>
IGESDefs_ToolAttributeDef::IGESDefs_ToolAttributeDef () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolAttributeDef_HeaderFile
#define _IGESDefs_ToolAttributeDef_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_AttributeDef;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a AttributeDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolAttributeDef
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolAttributeDef, ready to work
Standard_EXPORT IGESDefs_ToolAttributeDef();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_AttributeDef)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_AttributeDef)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a AttributeDef <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_AttributeDef)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_AttributeDef)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_AttributeDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeDef)& entfrom, const Handle(IGESDefs_AttributeDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolAttributeDef_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolAttributeTable from IGESDefs
---Purpose : Tool to work on a AttributeTable. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses AttributeTable from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolAttributeTable;
---Purpose : Returns a ToolAttributeTable, ready to work
ReadOwnParams (me; ent : AttributeTable;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : AttributeTable;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : AttributeTable;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a AttributeTable <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : AttributeTable) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : AttributeTable;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : AttributeTable; entto : AttributeTable;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : AttributeTable;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolAttributeTable;

View File

@@ -16,18 +16,29 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_ToolAttributeTable.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <TColStd_HArray2OfTransient.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <TCollection_HAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_AttributeDef.hxx>
#include <IGESDefs_AttributeTable.hxx>
#include <IGESDefs_ToolAttributeTable.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray2OfTransient.hxx>
IGESDefs_ToolAttributeTable::IGESDefs_ToolAttributeTable () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolAttributeTable_HeaderFile
#define _IGESDefs_ToolAttributeTable_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_AttributeTable;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a AttributeTable. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolAttributeTable
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolAttributeTable, ready to work
Standard_EXPORT IGESDefs_ToolAttributeTable();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_AttributeTable)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_AttributeTable)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a AttributeTable <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_AttributeTable)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_AttributeTable)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_AttributeTable)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeTable)& entfrom, const Handle(IGESDefs_AttributeTable)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolAttributeTable_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolGenericData from IGESDefs
---Purpose : Tool to work on a GenericData. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses GenericData from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolGenericData;
---Purpose : Returns a ToolGenericData, ready to work
ReadOwnParams (me; ent : GenericData;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : GenericData;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : GenericData;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a GenericData <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : GenericData) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : GenericData;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : GenericData; entto : GenericData;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : GenericData;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolGenericData;

View File

@@ -16,18 +16,29 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_ToolGenericData.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_IGESEntity.hxx>
#include <TColStd_HArray1OfTransient.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_GenericData.hxx>
#include <IGESDefs_ToolGenericData.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <IGESData_Dump.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfTransient.hxx>
IGESDefs_ToolGenericData::IGESDefs_ToolGenericData () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolGenericData_HeaderFile
#define _IGESDefs_ToolGenericData_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_GenericData;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a GenericData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolGenericData
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolGenericData, ready to work
Standard_EXPORT IGESDefs_ToolGenericData();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_GenericData)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_GenericData)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a GenericData <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_GenericData)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_GenericData)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_GenericData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_GenericData)& entfrom, const Handle(IGESDefs_GenericData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolGenericData_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolMacroDef from IGESDefs
---Purpose : Tool to work on a MacroDef. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses MacroDef from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolMacroDef;
---Purpose : Returns a ToolMacroDef, ready to work
ReadOwnParams (me; ent : MacroDef;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : MacroDef;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : MacroDef;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a MacroDef <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : MacroDef) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : MacroDef;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : MacroDef; entto : MacroDef;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : MacroDef;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolMacroDef;

View File

@@ -16,13 +16,24 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_ToolMacroDef.ixx>
#include <IGESData_ParamCursor.hxx>
#include <TCollection_HAsciiString.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_MacroDef.hxx>
#include <IGESDefs_ToolMacroDef.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESDefs_ToolMacroDef::IGESDefs_ToolMacroDef () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolMacroDef_HeaderFile
#define _IGESDefs_ToolMacroDef_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_MacroDef;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a MacroDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolMacroDef
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolMacroDef, ready to work
Standard_EXPORT IGESDefs_ToolMacroDef();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_MacroDef)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_MacroDef)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a MacroDef <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_MacroDef)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_MacroDef)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_MacroDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_MacroDef)& entfrom, const Handle(IGESDefs_MacroDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolMacroDef_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolTabularData from IGESDefs
---Purpose : Tool to work on a TabularData. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses TabularData from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolTabularData;
---Purpose : Returns a ToolTabularData, ready to work
ReadOwnParams (me; ent : TabularData;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : TabularData;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : TabularData;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a TabularData <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : TabularData) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : TabularData;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : TabularData; entto : TabularData;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : TabularData;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolTabularData;

View File

@@ -15,19 +15,28 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
// UNFINISHED
// The last field (ent->DependentValues()) not resolved. Queried to mdtv
#include <IGESDefs_ToolTabularData.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESBasic_HArray1OfHArray1OfReal.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_TabularData.hxx>
#include <IGESDefs_ToolTabularData.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <IGESData_Dump.hxx>
#include <Interface_Macros.hxx>
#include <TColStd_HArray1OfReal.hxx>
IGESDefs_ToolTabularData::IGESDefs_ToolTabularData () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolTabularData_HeaderFile
#define _IGESDefs_ToolTabularData_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_TabularData;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a TabularData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolTabularData
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolTabularData, ready to work
Standard_EXPORT IGESDefs_ToolTabularData();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_TabularData)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_TabularData)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a TabularData <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_TabularData)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_TabularData)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_TabularData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_TabularData)& entfrom, const Handle(IGESDefs_TabularData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolTabularData_HeaderFile

View File

@@ -1,68 +0,0 @@
-- Created on: 1993-10-14
-- Created by: Christian CAILLET
-- Copyright (c) 1993-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.
class ToolUnitsData from IGESDefs
---Purpose : Tool to work on a UnitsData. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses UnitsData from IGESDefs,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolUnitsData;
---Purpose : Returns a ToolUnitsData, ready to work
ReadOwnParams (me; ent : UnitsData;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError is static;
---Purpose : Reads own parameters from file. <PR> gives access to them,
-- <IR> detains parameter types and values
WriteOwnParams (me; ent : UnitsData;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : UnitsData;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a UnitsData <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : UnitsData) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : UnitsData;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : UnitsData; entto : UnitsData;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : UnitsData;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolUnitsData;

View File

@@ -16,14 +16,25 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_ToolUnitsData.ixx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_Dump.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESDefs_ToolUnitsData.hxx>
#include <IGESDefs_UnitsData.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_Dump.hxx>
#include <Interface_Macros.hxx>
IGESDefs_ToolUnitsData::IGESDefs_ToolUnitsData () { }

View File

@@ -0,0 +1,97 @@
// Created on: 1993-10-14
// Created by: Christian CAILLET
// Copyright (c) 1993-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 _IGESDefs_ToolUnitsData_HeaderFile
#define _IGESDefs_ToolUnitsData_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESDefs_UnitsData;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
class IGESData_IGESWriter;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
//! Tool to work on a UnitsData. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESDefs_ToolUnitsData
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolUnitsData, ready to work
Standard_EXPORT IGESDefs_ToolUnitsData();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESDefs_UnitsData)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESDefs_UnitsData)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a UnitsData <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESDefs_UnitsData)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDefs_UnitsData)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESDefs_UnitsData)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESDefs_UnitsData)& entfrom, const Handle(IGESDefs_UnitsData)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESDefs_ToolUnitsData_HeaderFile

View File

@@ -1,86 +0,0 @@
-- Created on: 1993-01-13
-- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
-- Copyright (c) 1993-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.
class UnitsData from IGESDefs inherits IGESEntity
---Purpose: defines IGES UnitsData Entity, Type <316> Form <0>
-- in package IGESDefs
-- This class stores data about a model's fundamental units.
uses
HAsciiString from TCollection,
HArray1OfReal from TColStd,
HArray1OfHAsciiString from Interface
raises DimensionMismatch, OutOfRange
is
Create returns UnitsData;
-- Specific methods for the entity
Init (me : mutable;
unitTypes : HArray1OfHAsciiString;
unitValues : HArray1OfHAsciiString;
unitScales : HArray1OfReal)
raises DimensionMismatch;
---Purpose : This method is used to set the fields of the class
-- UnitsData
-- - unitTypes : Types of the units being defined
-- - unitValues : Unit Values of the units
-- - unitScales : Multiplicative Scale Factors
-- raises exception if lengths of unitTypes, unitValues and
-- unitScale are not same
NbUnits(me) returns Integer;
---Purpose : returns the Number of units defined by this entity
UnitType(me ; UnitNum : Integer) returns HAsciiString from TCollection
raises OutOfRange;
---Purpose : returns the Type of the UnitNum'th unit being defined
-- raises exception if UnitNum <= 0 or UnitNum > NbUnits()
UnitValue(me ; UnitNum : Integer) returns HAsciiString from TCollection
raises OutOfRange;
---Purpose : returns the Units of the UnitNum'th unit being defined
-- raises exception if UnitNum <= 0 or UnitNum > NbUnits()
ScaleFactor(me ; UnitNum : Integer) returns Real
raises OutOfRange;
---Purpose : returns the multiplicative scale factor to be apllied to the
-- UnitNum'th unit being defined
-- raises exception if UnitNum <= 0 or UnitNum > NbUnits()
fields
--
-- Class : IGESDefs_UnitsData
--
-- Purpose : Declaration of variables specific to UnitsData
--
-- Reminder : An UnitsData Entity stores data about a model's
-- fundamental units. It consists of no. of data strings.
-- The entity then contains records, each of which
-- contains a pair of string variables and a real
-- scale factor.
theUnitTypes : HArray1OfHAsciiString;
theUnitValues : HArray1OfHAsciiString;
theUnitScales : HArray1OfReal;
end UnitsData;

View File

@@ -16,8 +16,11 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESDefs_UnitsData.ixx>
#include <IGESDefs_UnitsData.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESDefs_UnitsData::IGESDefs_UnitsData () { }

View File

@@ -0,0 +1,98 @@
// Created on: 1993-01-13
// Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
// Copyright (c) 1993-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 _IGESDefs_UnitsData_HeaderFile
#define _IGESDefs_UnitsData_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class TCollection_HAsciiString;
class IGESDefs_UnitsData;
DEFINE_STANDARD_HANDLE(IGESDefs_UnitsData, IGESData_IGESEntity)
//! defines IGES UnitsData Entity, Type <316> Form <0>
//! in package IGESDefs
//! This class stores data about a model's fundamental units.
class IGESDefs_UnitsData : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_UnitsData();
//! This method is used to set the fields of the class
//! UnitsData
//! - unitTypes : Types of the units being defined
//! - unitValues : Unit Values of the units
//! - unitScales : Multiplicative Scale Factors
//! raises exception if lengths of unitTypes, unitValues and
//! unitScale are not same
Standard_EXPORT void Init (const Handle(Interface_HArray1OfHAsciiString)& unitTypes, const Handle(Interface_HArray1OfHAsciiString)& unitValues, const Handle(TColStd_HArray1OfReal)& unitScales);
//! returns the Number of units defined by this entity
Standard_EXPORT Standard_Integer NbUnits() const;
//! returns the Type of the UnitNum'th unit being defined
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits()
Standard_EXPORT Handle(TCollection_HAsciiString) UnitType (const Standard_Integer UnitNum) const;
//! returns the Units of the UnitNum'th unit being defined
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits()
Standard_EXPORT Handle(TCollection_HAsciiString) UnitValue (const Standard_Integer UnitNum) const;
//! returns the multiplicative scale factor to be apllied to the
//! UnitNum'th unit being defined
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits()
Standard_EXPORT Standard_Real ScaleFactor (const Standard_Integer UnitNum) const;
DEFINE_STANDARD_RTTI(IGESDefs_UnitsData,IGESData_IGESEntity)
protected:
private:
Handle(Interface_HArray1OfHAsciiString) theUnitTypes;
Handle(Interface_HArray1OfHAsciiString) theUnitValues;
Handle(TColStd_HArray1OfReal) theUnitScales;
};
#endif // _IGESDefs_UnitsData_HeaderFile