Files
OCCT/src/MDF/MDF_DriverTable.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

103 lines
3.4 KiB
Plaintext
Executable File

-- Created by: DAUTRY Philippe
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
-- -------------------
---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 mutable 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;