|
|
@ -50,6 +50,13 @@ namespace IEC61850.Server
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern IntPtr IedServerConfig_getFileServiceBasePath(IntPtr self);
|
|
|
|
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)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern void IedServerConfig_setEdition(IntPtr self, byte edition);
|
|
|
|
static extern void IedServerConfig_setEdition(IntPtr self, byte edition);
|
|
|
|
|
|
|
|
|
|
|
@ -87,6 +94,13 @@ namespace IEC61850.Server
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
static extern int IedServerConfig_getMaxDatasSetEntries(IntPtr self);
|
|
|
|
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;
|
|
|
|
internal IntPtr self;
|
|
|
|
|
|
|
|
|
|
|
|
public IedServerConfig ()
|
|
|
|
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>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the edition of the IEC 61850 standard to use
|
|
|
|
/// Gets or sets the edition of the IEC 61850 standard to use
|
|
|
|
/// </summary>
|
|
|
|
/// </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>
|
|
|
|
/// <summary>
|
|
|
|
/// Releases all resource used by the <see cref="IEC61850.Server.IedServerConfig"/> object.
|
|
|
|
/// Releases all resource used by the <see cref="IEC61850.Server.IedServerConfig"/> object.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|