-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathILogFilter.cs
49 lines (44 loc) · 1.42 KB
/
ILogFilter.cs
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
using System.IO;
namespace PacketLogConverter
{
/// <summary>
/// All methods needed for a log filter
/// </summary>
public interface ILogFilter
{
/// <summary>
/// Activates the filter.
/// </summary>
/// <returns>
/// <code>true</code> if filter has changed and log should be updated.
/// </returns>
bool ActivateFilter();
/// <summary>
/// Determines whether the packet should be ignored.
/// </summary>
/// <param name="packet">The packet.</param>
/// <returns>
/// <c>true</c> if packet should be ignored; otherwise, <c>false</c>.
/// </returns>
bool IsPacketIgnored(Packet packet);
/// <summary>
/// Gets or sets a value indicating whether this instance is active.
/// </summary>
/// <value>
/// <c>true</c> if this instance is active; otherwise, <c>false</c>.
/// </value>
bool IsFilterActive { get; set; }
/// <summary>
/// Serializes data of instance of this filter.
/// </summary>
/// <param name="data">The data.</param>
/// <returns><code>true</code> if filter is serialized, <code>false</code> otherwise.</returns>
bool Serialize(MemoryStream data);
/// <summary>
/// Deserializes data of instance of this filter.
/// </summary>
/// <param name="data">The data.</param>
/// <returns><code>true</code> if filter is deserialized, <code>false</code> otherwise.</returns>
bool Deserialize(MemoryStream data);
}
}