1 -- Created on: 2001-01-06
2 -- Created by: OCC Team
3 -- Copyright (c) 2001-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 deferred class Printer from Message inherits TShared from MMgt
18 ---Purpose: Abstract interface class defining printer as output context for
21 -- The message, besides being text string, has associated gravity
22 -- level, which can be used by printer to decide either to process
23 -- a message or ignore it.
28 AsciiString from TCollection,
29 ExtendedString from TCollection
33 Send (me; theString: ExtendedString from TCollection;
34 theGravity: Gravity from Message;
35 putEndl: Boolean) is deferred;
36 ---Purpose: Send a string message with specified trace level.
37 -- The parameter putEndl specified whether end-of-line
38 -- should be added to the end of the message.
39 -- This method must be redefined in descentant.
41 Send (me; theString: CString; theGravity: Gravity from Message;
42 putEndl: Boolean) is virtual;
43 ---Purpose: Send a string message with specified trace level.
44 -- The parameter putEndl specified whether end-of-line
45 -- should be added to the end of the message.
46 -- Default implementation calls first method Send().
48 Send (me; theString: AsciiString from TCollection;
49 theGravity: Gravity from Message;
50 putEndl: Boolean) is virtual;
51 ---Purpose: Send a string message with specified trace level.
52 -- The parameter putEndl specified whether end-of-line
53 -- should be added to the end of the message.
54 -- Default implementation calls first method Send().