forked from mz-automation/lib60870.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLibraryCommon.cs
42 lines (35 loc) · 1.01 KB
/
LibraryCommon.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
using System;
namespace lib60870
{
/// <summary>
/// Common information functions about the library
/// </summary>
public class LibraryCommon
{
/// <summary>
/// Library major version number
/// </summary>
public const int VERSION_MAJOR = 2;
/// <summary>
/// Library minor version number
/// </summary>
public const int VERSION_MINOR = 1;
/// <summary>
/// Library patch number
/// </summary>
public const int VERSION_PATCH = 0;
/// <summary>
/// Gets the library version as string {major}.{minor}.{patch}.
/// </summary>
/// <returns>The library version as string.</returns>
public static string GetLibraryVersionString()
{
return "" + VERSION_MAJOR + "." + VERSION_MINOR + "." + VERSION_PATCH;
}
}
/// <summary>
/// Raw message handler. Can be used to access the raw message.
/// Returns true when message should be handled by the protocol stack, false, otherwise.
/// </summary>
public delegate bool RawMessageHandler (object parameter, byte[] message, int messageSize);
}