0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / Message / Message_Algorithm.lxx
CommitLineData
b311480e 1// Created on: 2007-07-06
2// Created by: Pavel TELKOV
973c2be1 3// Copyright (c) 2007-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16#include <Message_Algorithm.hxx>
17#include <TCollection_HExtendedString.hxx>
18
19//=======================================================================
20//function : SetStatus
21//purpose :
22//=======================================================================
23
24inline 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
36inline 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
48inline 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
60inline 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
72inline const Message_ExecStatus& Message_Algorithm::GetStatus() const
73{
74 return myStatus;
75}
76
77//=======================================================================
78//function : ChangeStatus
79//purpose :
80//=======================================================================
81
82inline Message_ExecStatus& Message_Algorithm::ChangeStatus()
83{
84 return myStatus;
85}
86
87//=======================================================================
88//function : GetMessenger
89//purpose :
90//=======================================================================
91
92inline Handle(Message_Messenger) Message_Algorithm::GetMessenger() const
93{
94 return myMessenger;
95}
96