0024784: Move documentation in CDL files to proper location
[occt.git] / src / Message / Message.cdl
CommitLineData
b311480e 1-- Created on: 1999-07-29
2-- Created by: Roman LYGIN
3-- Copyright (c) 1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17package Message
18
19 ---Purpose: Defines
20 -- - tools to work with messages
21 -- - basic tools intended for progress indication
22
23uses
24
25 MMgt,
26 TColStd,
27 TCollection,
28 Standard
29
30is
31
32 enumeration Gravity is
33 ---Purpose: Defines gravity level of messages
34 -- - Trace: low-level details on algorithm execution (usually for debug purposes)
35 -- - Info: informative message
36 -- - Warning: warning message
37 -- - Alarm: non-critical error
38 -- - Fail: fatal error
39 Trace,
40 Info,
41 Warning,
42 Alarm,
43 Fail
44 end Gravity;
45
46 imported Status;
47 imported StatusType;
48 imported ExecStatus;
15cea4ef 49 imported HArrayOfMsg;
7fd59977 50
51 class Msg;
7fd59977 52 class MsgFile;
7fd59977 53 class Messenger;
7fd59977 54 class Algorithm;
7fd59977 55
56 deferred class Printer;
ff8178ef 57 class PrinterOStream;
7fd59977 58
59 class ListOfMsg instantiates List from TCollection (Msg from Message);
60
61 class SequenceOfPrinters instantiates
62 Sequence from TCollection (Printer from Message);
63
64 -- Progress indication
65 deferred class ProgressIndicator;
66 class ProgressScale;
67 class ProgressSentry;
68 class SequenceOfProgressScale instantiates
69 Sequence from TCollection (ProgressScale from Message);
70
71 DefaultMessenger returns Messenger from Message;
72 ---Purpose: Defines default messenger for OCCT applications.
73 -- This is global static instance of the messenger.
74 -- By default, it contains single printer directed to cout.
75 -- It can be customized according to the application needs.
76 ---C++: return const &
77
78 FillTime (Hour, Minute: Integer; Second: Real) returns AsciiString from TCollection;
79 ---Purpose: Returns the string filled with values of hours, minutes and seconds.
80 -- Example:
81 -- 1. (5, 12, 26.3345) returns "05h:12m:26.33s",
82 -- 2. (0, 6, 34.496 ) returns "06m:34.50s",
83 -- 3. (0, 0, 4.5 ) returns "4.50s"
84
85end Message;