1 // Created on: 2007-07-06
2 // Created by: Pavel TELKOV
3 // Copyright (c) 2007-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 #include <Message_Algorithm.hxx>
17 #include <TCollection_HExtendedString.hxx>
19 //=======================================================================
20 //function : SetStatus
22 //=======================================================================
24 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
25 const Standard_CString theStr,
26 const Standard_Boolean noRepetitions)
28 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
31 //=======================================================================
32 //function : SetStatus
34 //=======================================================================
36 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
37 const TCollection_AsciiString &theStr,
38 const Standard_Boolean noRepetitions)
40 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
43 //=======================================================================
44 //function : SetStatus
46 //=======================================================================
48 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
49 const Handle(TCollection_HAsciiString) &theStr,
50 const Standard_Boolean noRepetitions)
52 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
55 //=======================================================================
56 //function : SetStatus
58 //=======================================================================
60 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
61 const TCollection_ExtendedString &theStr,
62 const Standard_Boolean noRepetitions)
64 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
67 //=======================================================================
68 //function : GetStatus
70 //=======================================================================
72 inline const Message_ExecStatus& Message_Algorithm::GetStatus() const
77 //=======================================================================
78 //function : ChangeStatus
80 //=======================================================================
82 inline Message_ExecStatus& Message_Algorithm::ChangeStatus()
87 //=======================================================================
88 //function : GetMessenger
90 //=======================================================================
92 inline Handle(Message_Messenger) Message_Algorithm::GetMessenger() const