1 // Created on: 2007-07-04
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_Msg.hxx>
18 #ifndef _TCollection_HAsciiString_HeaderFile
19 #include <TCollection_HAsciiString.hxx>
21 #ifndef _TCollection_HExtendedString_HeaderFile
22 #include <TCollection_HExtendedString.hxx>
25 //=======================================================================
26 //function : Arg (TCollection_AsciiString)
28 //=======================================================================
30 inline Message_Msg& Message_Msg::Arg (const TCollection_AsciiString& theString)
32 return Arg (theString.ToCString());
35 //=======================================================================
36 //function : Arg (TCollection_HAsciiString)
38 //=======================================================================
40 inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HAsciiString)& theString)
42 return Arg (theString->String().ToCString());
45 //=======================================================================
46 //function : Arg (TCollection_HExtendedString)
48 //=======================================================================
50 inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HExtendedString)& theString)
52 return Arg (theString->String());
55 //=======================================================================
58 //=======================================================================
60 inline const TCollection_ExtendedString& Message_Msg::Original() const
65 //=======================================================================
68 //=======================================================================
70 inline const TCollection_ExtendedString& Message_Msg::Value() const
75 //=======================================================================
78 //=======================================================================
80 inline Standard_Boolean Message_Msg::IsEdited() const
82 return !myOriginal.IsEqual( myMessageBody );