Warning, /include/opencascade/Message_Algorithm.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 2007-07-06
0002 // Created by: Pavel TELKOV
0003 // Copyright (c) 2007-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015
0016 #include <Message_Algorithm.hxx>
0017 #include <TCollection_HExtendedString.hxx>
0018
0019 //=======================================================================
0020 //function : SetStatus
0021 //purpose :
0022 //=======================================================================
0023
0024 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
0025 const Standard_CString theStr,
0026 const Standard_Boolean noRepetitions)
0027 {
0028 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
0029 }
0030
0031 //=======================================================================
0032 //function : SetStatus
0033 //purpose :
0034 //=======================================================================
0035
0036 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
0037 const TCollection_AsciiString &theStr,
0038 const Standard_Boolean noRepetitions)
0039 {
0040 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
0041 }
0042
0043 //=======================================================================
0044 //function : SetStatus
0045 //purpose :
0046 //=======================================================================
0047
0048 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
0049 const Handle(TCollection_HAsciiString) &theStr,
0050 const Standard_Boolean noRepetitions)
0051 {
0052 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
0053 }
0054
0055 //=======================================================================
0056 //function : SetStatus
0057 //purpose :
0058 //=======================================================================
0059
0060 inline void Message_Algorithm::SetStatus (const Message_Status& theStat,
0061 const TCollection_ExtendedString &theStr,
0062 const Standard_Boolean noRepetitions)
0063 {
0064 SetStatus ( theStat, new TCollection_HExtendedString ( theStr ), noRepetitions );
0065 }
0066
0067 //=======================================================================
0068 //function : GetStatus
0069 //purpose :
0070 //=======================================================================
0071
0072 inline const Message_ExecStatus& Message_Algorithm::GetStatus() const
0073 {
0074 return myStatus;
0075 }
0076
0077 //=======================================================================
0078 //function : ChangeStatus
0079 //purpose :
0080 //=======================================================================
0081
0082 inline Message_ExecStatus& Message_Algorithm::ChangeStatus()
0083 {
0084 return myStatus;
0085 }
0086
0087 //=======================================================================
0088 //function : GetMessenger
0089 //purpose :
0090 //=======================================================================
0091
0092 inline Handle(Message_Messenger) Message_Algorithm::GetMessenger() const
0093 {
0094 return myMessenger;
0095 }
0096