Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/Message_Msg.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 2007-07-04
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_Msg.hxx>
0017 
0018 #ifndef _TCollection_HAsciiString_HeaderFile
0019 #include <TCollection_HAsciiString.hxx>
0020 #endif
0021 #ifndef _TCollection_HExtendedString_HeaderFile
0022 #include <TCollection_HExtendedString.hxx>
0023 #endif
0024 
0025 //=======================================================================
0026 //function : Arg (TCollection_AsciiString)
0027 //purpose  : 
0028 //=======================================================================
0029 
0030 inline Message_Msg& Message_Msg::Arg (const TCollection_AsciiString& theString)
0031 {
0032   return Arg (theString.ToCString());
0033 }
0034 
0035 //=======================================================================
0036 //function : Arg (TCollection_HAsciiString)
0037 //purpose  : 
0038 //=======================================================================
0039 
0040 inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HAsciiString)& theString)
0041 {
0042   return Arg (theString->String().ToCString());
0043 }
0044 
0045 //=======================================================================
0046 //function : Arg (TCollection_HExtendedString)
0047 //purpose  : 
0048 //=======================================================================
0049 
0050 inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HExtendedString)& theString)
0051 {
0052   return Arg (theString->String());
0053 }
0054 
0055 //=======================================================================
0056 //function : Original
0057 //purpose  : 
0058 //=======================================================================
0059 
0060 inline const TCollection_ExtendedString& Message_Msg::Original() const
0061 {
0062   return myOriginal;
0063 }
0064  
0065 //=======================================================================
0066 //function : Value
0067 //purpose  : 
0068 //=======================================================================
0069 
0070 inline const TCollection_ExtendedString& Message_Msg::Value() const
0071 {
0072   return myMessageBody;
0073 }
0074  
0075 //=======================================================================
0076 //function : IsEdited
0077 //purpose  : 
0078 //=======================================================================
0079 
0080 inline Standard_Boolean Message_Msg::IsEdited() const
0081 {
0082   return !myOriginal.IsEqual( myMessageBody );
0083 }