b311480e |
1 | // Created on: 2007-07-04 |
2 | // Created by: Pavel TELKOV |
973c2be1 |
3 | // Copyright (c) 2007-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #include <Message_Msg.hxx> |
17 | |
18 | #ifndef _TCollection_HAsciiString_HeaderFile |
19 | #include <TCollection_HAsciiString.hxx> |
20 | #endif |
21 | #ifndef _TCollection_HExtendedString_HeaderFile |
22 | #include <TCollection_HExtendedString.hxx> |
23 | #endif |
24 | |
25 | //======================================================================= |
26 | //function : Arg (TCollection_AsciiString) |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | inline Message_Msg& Message_Msg::Arg (const TCollection_AsciiString& theString) |
31 | { |
32 | return Arg (theString.ToCString()); |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : Arg (TCollection_HAsciiString) |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HAsciiString)& theString) |
41 | { |
42 | return Arg (theString->String().ToCString()); |
43 | } |
44 | |
45 | //======================================================================= |
46 | //function : Arg (TCollection_HExtendedString) |
47 | //purpose : |
48 | //======================================================================= |
49 | |
50 | inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HExtendedString)& theString) |
51 | { |
52 | return Arg (theString->String()); |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : Original |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | inline const TCollection_ExtendedString& Message_Msg::Original() const |
61 | { |
62 | return myOriginal; |
63 | } |
64 | |
65 | //======================================================================= |
66 | //function : Value |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | inline const TCollection_ExtendedString& Message_Msg::Value() const |
71 | { |
72 | return myMessageBody; |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : IsEdited |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | inline Standard_Boolean Message_Msg::IsEdited() const |
81 | { |
82 | return !myOriginal.IsEqual( myMessageBody ); |
83 | } |