-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFilter.hpp
70 lines (60 loc) · 1.49 KB
/
Filter.hpp
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
/******************************************************************************
** (C) Chris Oldwood
**
** MODULE: FILTER.HPP
** COMPONENT: The Application
** DESCRIPTION: The CFilter class declaration.
**
*******************************************************************************
*/
// Check for previous inclusion
#ifndef FILTER_HPP
#define FILTER_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/StrArray.hpp>
/******************************************************************************
**
** The data class used to store the filter settings.
**
*******************************************************************************
*/
class CFilter
{
public:
//
// Constructors/Destructor.
//
CFilter();
~CFilter();
//
// Members.
//
CString m_strName; // Filter name.
CString m_strDesc; // Filter description.
bool m_bFltMods; // Filter by mod name?
CStrArray m_astrMods; // Mods to include.
bool m_bFltPing; // Filter by ping?
int m_nPingTime; // Ping threshold.
bool m_bFltErrors; // Filter by errors?
bool m_bFltNames; // Filter by server name?
CStrArray m_astrNames; // Names to include.
};
/******************************************************************************
**
** Implementation of inline functions.
**
*******************************************************************************
*/
inline CFilter::CFilter()
: m_bFltMods(false)
, m_bFltPing(false)
, m_nPingTime(250)
, m_bFltErrors(true)
{
}
inline CFilter::~CFilter()
{
}
#endif // FILTER_HPP