summaryrefslogtreecommitdiff
path: root/inc/Message_Msg.lxx
blob: ac8fa2281465d44ebccc3b2a4ac17824c40ba5d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// File:      Message_Msg.lxx
// Created:   04.07.07 10:11:15
// Author:    Pavel TELKOV
// Copyright: Open CASCADE 2007

#include <Message_Msg.hxx>

#ifndef _TCollection_HAsciiString_HeaderFile
#include <TCollection_HAsciiString.hxx>
#endif
#ifndef _TCollection_HExtendedString_HeaderFile
#include <TCollection_HExtendedString.hxx>
#endif

//=======================================================================
//function : Arg (TCollection_AsciiString)
//purpose  : 
//=======================================================================

inline Message_Msg& Message_Msg::Arg (const TCollection_AsciiString& theString)
{
  return Arg (theString.ToCString());
}

//=======================================================================
//function : Arg (TCollection_HAsciiString)
//purpose  : 
//=======================================================================

inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HAsciiString)& theString)
{
  return Arg (theString->String().ToCString());
}

//=======================================================================
//function : Arg (TCollection_HExtendedString)
//purpose  : 
//=======================================================================

inline Message_Msg& Message_Msg::Arg (const Handle(TCollection_HExtendedString)& theString)
{
  return Arg (theString->String());
}

//=======================================================================
//function : Original
//purpose  : 
//=======================================================================

inline const TCollection_ExtendedString& Message_Msg::Original() const
{
  return myOriginal;
}
 
//=======================================================================
//function : Value
//purpose  : 
//=======================================================================

inline const TCollection_ExtendedString& Message_Msg::Value() const
{
  return myMessageBody;
}
 
//=======================================================================
//function : IsEdited
//purpose  : 
//=======================================================================

inline Standard_Boolean Message_Msg::IsEdited() const
{
  return !myOriginal.IsEqual( myMessageBody );
}