.NET Based OPC UA Client/Server SDK
3.2.1.522
|
The interface for methods implemented on the FileModel object. More...
Inherited by UnifiedAutomation.UaServer.FileModel, UnifiedAutomation.UaServer.IAddressSpaceFileMethods, UnifiedAutomation.UaServer.IPubSubConfigurationMethods, and UnifiedAutomation.UaServer.ITrustListMethods.
Public Member Functions | |
StatusCode | Close (RequestContext context, FileModel model, uint FileHandle) |
Closes a file represented by a UnifiedAutomation.UaServer.FileModel. More... | |
StatusCode | GetPosition (RequestContext context, FileModel model, uint FileHandle, out ulong Position) |
Provides the current position of the FileHandle. More... | |
StatusCode | Open (RequestContext context, FileModel model, byte Mode, out uint FileHandle) |
Opens a file represented by an object of UnifiedAutomation.UaServer.FileModel. More... | |
StatusCode | Read (RequestContext context, FileModel model, uint FileHandle, int Length, out byte[] Data) |
Reads a part of the file starting from the current file position. More... | |
StatusCode | SetPosition (RequestContext context, FileModel model, uint FileHandle, ulong Position) |
Sets the current position of the FileHandle. More... | |
StatusCode | Write (RequestContext context, FileModel model, uint FileHandle, byte[] Data) |
Writes a part of the file starting from the current file position. More... | |
The interface for methods implemented on the FileModel object.
StatusCode UnifiedAutomation.UaServer.IFileMethods.Close | ( | RequestContext | context, |
FileModel | model, | ||
uint | FileHandle | ||
) |
Closes a file represented by a UnifiedAutomation.UaServer.FileModel.
When a client closes a file, the handle becomes invalid.
context | |
model | |
FileHandle |
Implemented in UnifiedAutomation.UaServer.FileModel.
StatusCode UnifiedAutomation.UaServer.IFileMethods.GetPosition | ( | RequestContext | context, |
FileModel | model, | ||
uint | FileHandle, | ||
out ulong | Position | ||
) |
Provides the current position of the FileHandle.
context | |
model | |
FileHandle | |
Position | out: |
Implemented in UnifiedAutomation.UaServer.FileModel.
StatusCode UnifiedAutomation.UaServer.IFileMethods.Open | ( | RequestContext | context, |
FileModel | model, | ||
byte | Mode, | ||
out uint | FileHandle | ||
) |
Opens a file represented by an object of UnifiedAutomation.UaServer.FileModel.
When a client opens a file, it gets a FileHandle that is valid while the session is open. Clients shall use the UnifiedAutomation.UaServer.IFileMethods.Close method to release the handle when they do not need access to the file anymore. Clients can open the same file several times for reading. A request to open for writing shall return Bad_NotWritable when the file is already opened.
context | |
model | |
Mode | |
FileHandle | out: |
Implemented in UnifiedAutomation.UaServer.TrustListModel, and UnifiedAutomation.UaServer.FileModel.
StatusCode UnifiedAutomation.UaServer.IFileMethods.Read | ( | RequestContext | context, |
FileModel | model, | ||
uint | FileHandle, | ||
int | Length, | ||
out byte[] | Data | ||
) |
Reads a part of the file starting from the current file position.
The file position is advanced by the number of bytes read.
context | |
model | |
FileHandle | |
Length | |
Data | out: |
Implemented in UnifiedAutomation.UaServer.FileModel.
StatusCode UnifiedAutomation.UaServer.IFileMethods.SetPosition | ( | RequestContext | context, |
FileModel | model, | ||
uint | FileHandle, | ||
ulong | Position | ||
) |
Sets the current position of the FileHandle.
context | |
model | |
FileHandle | |
Position |
Implemented in UnifiedAutomation.UaServer.FileModel.
StatusCode UnifiedAutomation.UaServer.IFileMethods.Write | ( | RequestContext | context, |
FileModel | model, | ||
uint | FileHandle, | ||
byte[] | Data | ||
) |
Writes a part of the file starting from the current file position.
The file position is advanced by the number of bytes written
context | |
model | |
FileHandle | |
Data |
Implemented in UnifiedAutomation.UaServer.FileModel.