1 -- File: IFSelect_SelectFlag.cdl
2 -- Created: Tue Sep 5 16:56:11 1995
3 -- Author: Christian CAILLET
5 ---Copyright: Matra Datavision 1995
8 class SelectFlag from IFSelect inherits SelectExtract
10 ---Purpose : A SelectFlag queries a flag noted in the bitmap of the Graph.
11 -- The Flag is designated by its Name. Flag Names are defined
12 -- by Work Session and, as necessary, other functional objects
14 -- WorkSession from IFSelect defines flag "Incorrect"
15 -- Objects which control application running define some others
17 uses AsciiString from TCollection, InterfaceModel, Graph, EntityIterator
21 Create (flagname : CString) returns mutable SelectFlag;
22 ---Purpose : Creates a Select Flag, to query a flag designated by its name
24 FlagName (me) returns CString;
25 ---Purpose : Returns the name of the flag
27 RootResult (me; G : Graph) returns EntityIterator is redefined;
28 ---Purpose : Returns the list of selected entities. It is redefined to
29 -- work on the graph itself (not queried by sort)
31 -- An entity is selected if its flag is True on Direct mode,
32 -- False on Reversed mode
34 -- If flag does not exist for the given name, returns an empty
35 -- result, whatever the Direct/Reversed sense
37 Sort (me; rank : Integer; ent : Transient; model : InterfaceModel)
39 ---Purpose : Returns always False because RootResult has done the work
42 ExtractLabel (me) returns AsciiString from TCollection;
43 ---Purpose : Returns a text defining the criterium, includes the flag name
47 thename : AsciiString from TCollection;