Added FileServiceEnabled and LogServiceEnabled settings to dotnet IED Server Configuration.

pull/208/head
Andrew Moorcroft 6 years ago
parent 0237c9b95c
commit d984573067

@ -50,6 +50,13 @@ namespace IEC61850.Server
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr IedServerConfig_getFileServiceBasePath(IntPtr self);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedServerConfig_enableFileService(IntPtr self, [MarshalAs(UnmanagedType.I1)] bool enable);
[return: MarshalAs(UnmanagedType.I1)]
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern bool IedServerConfig_isFileServiceEnabled(IntPtr self);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedServerConfig_setEdition(IntPtr self, byte edition);
@ -87,6 +94,13 @@ namespace IEC61850.Server
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern int IedServerConfig_getMaxDatasSetEntries(IntPtr self);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedServerConfig_enableLogService(IntPtr self, [MarshalAs(UnmanagedType.I1)] bool enable);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.I1)]
static extern bool IedServerConfig_isLogServiceEnabled(IntPtr self);
internal IntPtr self;
public IedServerConfig ()
@ -122,6 +136,22 @@ namespace IEC61850.Server
}
}
/// <summary>
/// Enable/Disable file service for MMS
/// </summary>
/// <value><c>true</c> if file service is enabled; otherwise, <c>false</c>.</value>
public bool FileServiceEnabled
{
get
{
return IedServerConfig_isFileServiceEnabled(self);
}
set
{
IedServerConfig_enableFileService(self, value);
}
}
/// <summary>
/// Gets or sets the edition of the IEC 61850 standard to use
/// </summary>
@ -206,6 +236,22 @@ namespace IEC61850.Server
}
}
/// <summary>
/// Enable/Disable log service for MMS
/// </summary>
/// <value><c>true</c> if log service is enabled; otherwise, <c>false</c>.</value>
public bool LogServiceEnabled
{
get
{
return IedServerConfig_isLogServiceEnabled(self);
}
set
{
IedServerConfig_enableLogService(self, value);
}
}
/// <summary>
/// Releases all resource used by the <see cref="IEC61850.Server.IedServerConfig"/> object.
/// </summary>

Loading…
Cancel
Save