7fd59977 |
1 | // File: Message_Msg.lxx |
2 | // Created: 04.07.07 10:11:15 |
3 | // Author: Pavel TELKOV |
4 | // Copyright: Open CASCADE 2007 |
5 | |
6 | #include <Message_Msg.hxx> |
7 | |
8 | #ifndef _TCollection_HAsciiString_HeaderFile |
9 | #include <TCollection_HAsciiString.hxx> |
10 | #endif |
11 | #ifndef _TCollection_HExtendedString_HeaderFile |
12 | #include <TCollection_HExtendedString.hxx> |
13 | #endif |
14 | |
15 | //======================================================================= |
16 | //function : Arg (TCollection_AsciiString) |
17 | //purpose : |
18 | //======================================================================= |
19 | |
20 | inline Message_Msg& Message_Msg::Arg (const TCollection_AsciiString& theString) |
21 | { |
22 | return Arg (theString.ToCString()); |
23 | } |
24 | |
25 | //======================================================================= |
26 | //function : Arg (TCollection_HAsciiString) |
27 | //purpose : |
28 | //======================================================================= |
29 | |
30 | inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HAsciiString)& theString) |
31 | { |
32 | return Arg (theString->String().ToCString()); |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : Arg (TCollection_HExtendedString) |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HExtendedString)& theString) |
41 | { |
42 | return Arg (theString->String()); |
43 | } |
44 | |
45 | //======================================================================= |
46 | //function : Original |
47 | //purpose : |
48 | //======================================================================= |
49 | |
50 | inline const TCollection_ExtendedString& Message_Msg::Original() const |
51 | { |
52 | return myOriginal; |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : Value |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | inline const TCollection_ExtendedString& Message_Msg::Value() const |
61 | { |
62 | return myMessageBody; |
63 | } |
64 | |
65 | //======================================================================= |
66 | //function : IsEdited |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | inline Standard_Boolean Message_Msg::IsEdited() const |
71 | { |
72 | return !myOriginal.IsEqual( myMessageBody ); |
73 | } |