Files
OCCT/src/IFSelect/IFSelect_SelectInList.cdl
abv d5f74e42d6 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-02-20 16:15:17 +04:00

52 lines
2.3 KiB
Plaintext

-- Created on: 1993-01-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.
deferred class SelectInList from IFSelect inherits SelectAnyList
---Purpose : A SelectInList kind Selection selects a List of an Entity,
-- which is composed of single Entities
-- To know the list on which to work, SelectInList has two
-- deferred methods : NbItems (inherited from SelectAnyList) and
-- ListedEntity (which gives an item as an Entity) which must be
-- defined to get a List in an Entity of the required Type (and
-- consider that list is empty if Entity has not required Type)
--
-- As for SelectAnyList, if a type of Entity defines several
-- lists, a given sub-class of SelectInList is attached on one
uses AsciiString from TCollection, Transient, EntityIterator, Graph, IntParam
raises OutOfRange
is
-- NbItems (me; ent : Transient) returns Integer is deferred;
-- KeepInputEntity (me; iter : in out EntityIterator) is deferred;
-- these method are inherited as deferred and remain to be defined
ListedEntity (me; num : Integer; ent : Transient)
returns Transient raises OutOfRange is deferred;
---Purpose : Returns an Entity, given its rank in the list
FillResult (me; n1,n2 : Integer; ent : Transient;
result : in out EntityIterator);
---Purpose : Puts into the result, the sub-entities of the list, from n1 to
-- n2 included. Remark that adequation with Entity's type and
-- length of list has already been made at this stage
-- Called by RootResult; calls ListedEntity (see below)
end SelectInList;