1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-30 12:14:08 +03:00
occt/src/MDF/MDF_DriverTable.cdl
abv ed4415982c 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-03-25 16:38:55 +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 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;