-
Notifications
You must be signed in to change notification settings - Fork 0
/
Options.h
60 lines (42 loc) · 1.23 KB
/
Options.h
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
// ============================================================================
// Options.h
// interface for the COptions class.
// ============================================================================
// Copyright (c) WildPackets, Inc. 2004. All rights reserved.
#pragma once
#include "XRefCounter.h"
#include "XMLDoc.h"
class CPeekPlugin;
#define kPref_Filters _T( "Filters" )
#define kPref_Options _T( "Options" )
#define kPref_Name _T( "Name" )
#define kPref_Filter _T( "Filter" )
#define kPref_Comment _T( "Comment" )
// -----------------------------------------------------------------------------
// CFilter
// -----------------------------------------------------------------------------
class CFilter
{
public:
X_DECLARE_OBJ( CString, Name );
X_DECLARE_OBJ( CString, Filter );
X_DECLARE_OBJ( CString, Comment );
X_DECLARE_COUNTER( Count );
void operator=( CFilter& in )
{
CopyFilter( in );
}
void CopyFilter( CFilter& in )
{
SetName( in.GetName() );
SetFilter( in.GetFilter() );
SetComment( in.GetComment() );
}
CFilter()
{
m_nCount = 0;
}
~CFilter() {}
XXMLElement* WriteXML();
void ReadXML(XXMLElement* pElement);
};