-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessageItem.cpp
80 lines (69 loc) · 1.42 KB
/
MessageItem.cpp
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
74
75
76
77
78
79
80
// MessageItem.cpp: implementation of the CMessageItem class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MessageItem.hpp"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMessageItem::CMessageItem()
{
m_name[0] = _T('\0');
m_value[0] = _T('\0');
m_condition[0] = _T('\0');
m_numeric = false;
}
CMessageItem::~CMessageItem()
{
}
// Get/Set m_name
_TCHAR const * CMessageItem::GetName()
{
return &m_name[0];
}
void CMessageItem::SetName(const _TCHAR *name)
{
if (name != NULL) {
::_tcscpy(m_name, name);
}
}
// Get/Set m_value
_TCHAR const * CMessageItem::GetValue()
{
return &m_value[0];
}
void CMessageItem::SetValue(const _TCHAR *value)
{
if (value != NULL) {
::_tcscpy(m_value, value);
}
}
// Get/Set m_valuenum
long const CMessageItem::GetValueNumeric()
{
return m_valuenum;
}
void CMessageItem::SetValueNumeric(const long value)
{
m_valuenum = value;
}
// Get/Set m_numeric
bool const CMessageItem::IsNumeric()
{
return (m_numeric == true);
}
void CMessageItem::SetNumeric(const bool value)
{
m_numeric = value;
}
// Get/Set m_condition
_TCHAR const * CMessageItem::GetCondition()
{
return &m_condition[0];
}
void CMessageItem::SetCondition(const _TCHAR *condition)
{
if (condition != NULL) {
::_tcscpy(m_condition, condition);
}
}