0022627: Change OCCT memory management defaults
[occt.git] / src / Message / Message_Algorithm.lxx
CommitLineData
7fd59977 1// File: Message_Algorithm.lxx
2// Created: 06.07.07 10:27:14
3// Author: Pavel TELKOV
4// Copyright: Open CASCADE S.A. 2007
5
6#include <Message_Algorithm.hxx>
7#include <TCollection_HExtendedString.hxx>
8
9//=======================================================================
10//function : SetStatus
11//purpose :
12//=======================================================================
13
14inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
15 const Standard_CString theStr,
16 const Standard_Boolean noRepetitions)
17{
18 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
19}
20
21//=======================================================================
22//function : SetStatus
23//purpose :
24//=======================================================================
25
26inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
27 const TCollection_AsciiString &theStr,
28 const Standard_Boolean noRepetitions)
29{
30 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
31}
32
33//=======================================================================
34//function : SetStatus
35//purpose :
36//=======================================================================
37
38inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
39 const Handle(TCollection_HAsciiString) &theStr,
40 const Standard_Boolean noRepetitions)
41{
42 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
43}
44
45//=======================================================================
46//function : SetStatus
47//purpose :
48//=======================================================================
49
50inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
51 const TCollection_ExtendedString &theStr,
52 const Standard_Boolean noRepetitions)
53{
54 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
55}
56
57//=======================================================================
58//function : GetStatus
59//purpose :
60//=======================================================================
61
62inline const Message_ExecStatus& Message_Algorithm::GetStatus() const
63{
64 return myStatus;
65}
66
67//=======================================================================
68//function : ChangeStatus
69//purpose :
70//=======================================================================
71
72inline Message_ExecStatus& Message_Algorithm::ChangeStatus()
73{
74 return myStatus;
75}
76
77//=======================================================================
78//function : GetMessenger
79//purpose :
80//=======================================================================
81
82inline Handle(Message_Messenger) Message_Algorithm::GetMessenger() const
83{
84 return myMessenger;
85}
86