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 occ::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 occ::handle<TCollection_HExtendedString>& theString)
0051 {
0052   return Arg(theString->String());
0053 }
0054 
0055 //=================================================================================================
0056 
0057 inline const TCollection_ExtendedString& Message_Msg::Original() const
0058 {
0059   return myOriginal;
0060 }
0061 
0062 //=================================================================================================
0063 
0064 inline const TCollection_ExtendedString& Message_Msg::Value() const
0065 {
0066   return myMessageBody;
0067 }
0068 
0069 //=================================================================================================
0070 
0071 inline bool Message_Msg::IsEdited() const
0072 {
0073   return !myOriginal.IsEqual(myMessageBody);
0074 }