Files
OCCT/src/MDF/MDF_DriverTable.cdl
abv 6e33d3ced2 0024830: Remove redundant keyword 'mutable' in CDL declarations
Redundant keyword 'mutable' removed in CDL files.
In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed.
Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
2014-05-29 14:58:25 +04:00

99 lines
3.0 KiB
Plaintext

-- Created by: DAUTRY Philippe
-- Copyright (c) 1997-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.
-- -------------------
---Version: 0.0
--Version Date Purpose
-- 0.0 May 6 1997 Creation
generic class DriverTable from MDF
(TheHDriver as Transient from Standard;
TheDriverHSeq as Transient from Standard;
TheTypeDriverMap as any)
inherits TShared from MMgt
---Purpose: A driver table is an object building links between
-- object types and object drivers. In the
-- translation process, a driver table is asked to
-- give a translation driver for each current object
-- to be translated.
--
-- Validity range of a driver: a driver is available
-- from its version number till the next upper
-- version number.
uses
Type from Standard,
MapTransientHasher from TColStd
-- raises
class DriverList instantiates List from TCollection
(TheHDriver);
class TypeDriverListMap instantiates DataMap from TCollection
(Type from Standard,
DriverList,
MapTransientHasher from TColStd);
is
Create returns DriverTable from MDF;
---Purpose: Creates a mutable DriverTable from MDF.
SetDriver(me : mutable;
anHDriver : TheHDriver);
---Purpose: Sets a translation driver: <aDriver>.
SetDrivers(me : mutable;
aDriverHSeq : TheDriverHSeq);
---Purpose: Sets translation drivers.
GetDrivers(me : mutable;
aVersion : Integer from Standard = 0)
returns TheTypeDriverMap;
---Purpose: Gets a map of drivers available for <aVersion>.
--
-- If <aVersion> is not given or is null, the highest
-- version number driver is returned.
--
---C++: return const &
GetDriver(me;
aType : Type from Standard;
anHDriver : in out TheHDriver;
aVersion : Integer from Standard = 0)
returns Boolean from Standard;
---Purpose: Gets a driver <aDriver> according to <aType> and
-- <aVersion>.
--
-- If <aVersion> is not given or is null, the highest
-- version number driver is returned.
--
-- Returns True if a driver is found; false otherwise.
fields
myVersion : Integer from Standard;
myMap : TheTypeDriverMap; -- available for myVersion.
myMapOfLst : TypeDriverListMap;
end DriverTable;