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
0021 inline void Message_Algorithm::SetStatus(const Message_Status& theStat,
0022 const char* const theStr,
0023 const bool noRepetitions)
0024 {
0025 SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions);
0026 }
0027
0028 //=================================================================================================
0029
0030 inline void Message_Algorithm::SetStatus(const Message_Status& theStat,
0031 const TCollection_AsciiString& theStr,
0032 const bool noRepetitions)
0033 {
0034 SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions);
0035 }
0036
0037 //=================================================================================================
0038
0039 inline void Message_Algorithm::SetStatus(const Message_Status& theStat,
0040 const occ::handle<TCollection_HAsciiString>& theStr,
0041 const bool noRepetitions)
0042 {
0043 SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions);
0044 }
0045
0046 //=================================================================================================
0047
0048 inline void Message_Algorithm::SetStatus(const Message_Status& theStat,
0049 const TCollection_ExtendedString& theStr,
0050 const bool noRepetitions)
0051 {
0052 SetStatus(theStat, new TCollection_HExtendedString(theStr), noRepetitions);
0053 }
0054
0055 //=================================================================================================
0056
0057 inline const Message_ExecStatus& Message_Algorithm::GetStatus() const
0058 {
0059 return myStatus;
0060 }
0061
0062 //=================================================================================================
0063
0064 inline Message_ExecStatus& Message_Algorithm::ChangeStatus()
0065 {
0066 return myStatus;
0067 }
0068
0069 //=================================================================================================
0070
0071 inline occ::handle<Message_Messenger> Message_Algorithm::GetMessenger() const
0072 {
0073 return myMessenger;
0074 }