Integration of OCCT 6.5.0 from SVN
[occt.git] / src / IFSelect / IFSelect_SignMultiple.cdl
CommitLineData
7fd59977 1-- File: IFSelect_SignMultiple.cdl
2-- Created: Wed Jan 28 16:35:26 1998
3-- Author: Christian CAILLET
4-- <cky@heliox.paris1.matra-dtv.fr>
5---Copyright: Matra Datavision 1998
6
7
8class SignMultiple from IFSelect inherits Signature from IFSelect
9
10 ---Purpose : Multiple Signature : ordered list of other Signatures
11 -- It concatenates on a same line the result of its sub-items
12 -- separated by sets of 3 blanks
13 -- It is possible to define tabulations between sub-items
14 -- Moreover, match rules are specific
15
16uses CString, Transient, AsciiString, InterfaceModel,
17 SequenceOfTransient, SequenceOfInteger
18
19is
20
21 Create (name : CString) returns mutable SignMultiple;
22 ---Purpose : Creates an empty SignMultiple with a Name
23 -- This name should take expected tabulations into account
24
25 Add (me : mutable; subsign : Signature;
26 width : Integer = 0; maxi : Boolean = Standard_False);
27 ---Purpose : Adds a Signature. Width, if given, gives the tabulation
28 -- If <maxi> is True, it is a forced tabulation (overlength is
29 -- replaced by a final dot)
30 -- If <maxi> is False, just 3 blanks follow an overlength
31
32 Value (me; ent : any Transient; model : InterfaceModel) returns CString;
33 ---Purpose : Concatenates the values of sub-signatures, with their
34 -- tabulations
35
36 Matches (me; ent : Transient; model : InterfaceModel;
37 text : AsciiString; exact : Boolean)
38 returns Boolean is redefined;
39 ---Purpose : Specialized Match Rule
40 -- If <exact> is False, simply checks if at least one sub-item
41 -- matches
42 -- If <exact> is True, standard match with Value
43 -- (i.e. tabulations must be respected)
44
45fields
46
47 thesubs : SequenceOfTransient;
48 thetabs : SequenceOfInteger;
49
50end SignMultiple;