blob: f40a54bfe3f510496ddeb8bf5711790ec19ae29a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
-- File: IFSelect_CheckCounter.cdl
-- Created: Mon Nov 7 18:34:38 1994
-- Author: Christian CAILLET
-- <cky@stylox>
---Copyright: Matra Datavision 1994
class CheckCounter from IFSelect inherits SignatureList
---Purpose : A CheckCounter allows to see a CheckList (i.e. CheckIterator)
-- not per entity, its messages, but per message, the entities
-- attached (count and list). Because many messages can be
-- repeated if they are due to systematic errors
uses CheckIterator, InterfaceModel, SignText from MoniTool
is
Create (withlist : Boolean = Standard_False) returns mutable CheckCounter;
---Purpose : Creates a CheckCounter, empty ready to work
SetSignature (me : mutable; sign : SignText);
---Purpose : Sets a specific signature
-- Else, the current SignType (in the model) is used
Signature (me) returns SignText;
---Purpose : Returns the Signature;
Analyse (me : mutable;
list : CheckIterator;
model : InterfaceModel;
original : Boolean = Standard_False;
failsonly : Boolean = Standard_False);
---Purpose : Analyses a CheckIterator according a Model (which detains the
-- entities for which the CheckIterator has messages), i.e.
-- counts messages for entities
-- If <original> is True, does not consider final messages but
-- those before interpretation (such as inserting variables :
-- integers, reals, strings)
-- If <failsonly> is True, only Fails are considered
-- Remark : global messages are recorded with a Null entity
fields
thesign : SignText; -- optional
end CheckCounter;
|