0022972: Eliminate macro definitions that has compiler-provided analogs (WNT and...
[occt.git] / src / Message / Message_Algorithm.lxx
1 // Created on: 2007-07-06
2 // Created by: Pavel TELKOV
3 // Copyright (c) 2007-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <Message_Algorithm.hxx>
17 #include <TCollection_HExtendedString.hxx>
18
19 //=======================================================================
20 //function : SetStatus
21 //purpose  :
22 //=======================================================================
23
24 inline void Message_Algorithm::SetStatus (const Message_Status& theStat, 
25                                           const Standard_CString theStr,
26                                           const Standard_Boolean noRepetitions)
27 {
28   SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
29 }
30
31 //=======================================================================
32 //function : SetStatus
33 //purpose  :
34 //=======================================================================
35
36 inline void Message_Algorithm::SetStatus (const Message_Status& theStat, 
37                                           const TCollection_AsciiString &theStr,
38                                           const Standard_Boolean noRepetitions)
39 {
40   SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
41 }
42
43 //=======================================================================
44 //function : SetStatus
45 //purpose  :
46 //=======================================================================
47
48 inline void Message_Algorithm::SetStatus (const Message_Status& theStat, 
49                                           const Handle(TCollection_HAsciiString) &theStr,
50                                           const Standard_Boolean noRepetitions)
51 {
52   SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
53 }
54
55 //=======================================================================
56 //function : SetStatus
57 //purpose  :
58 //=======================================================================
59
60 inline void Message_Algorithm::SetStatus (const Message_Status& theStat, 
61                                           const TCollection_ExtendedString &theStr,
62                                           const Standard_Boolean noRepetitions)
63 {
64   SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
65 }
66
67 //=======================================================================
68 //function : GetStatus
69 //purpose  :
70 //=======================================================================
71
72 inline const Message_ExecStatus& Message_Algorithm::GetStatus() const
73 {
74   return myStatus;
75 }
76
77 //=======================================================================
78 //function : ChangeStatus
79 //purpose  :
80 //=======================================================================
81
82 inline Message_ExecStatus& Message_Algorithm::ChangeStatus()
83 {
84   return myStatus;
85 }
86
87 //=======================================================================
88 //function : GetMessenger
89 //purpose  :
90 //=======================================================================
91
92 inline Handle(Message_Messenger) Message_Algorithm::GetMessenger() const
93 {
94   return myMessenger;
95 }
96