UA Bundle SDK .NET
2.4.1.366
|
An object that represents a directory that can be accessed via the server. More...
Inherits UnifiedAutomation.UaServer.FolderModel, UnifiedAutomation.UaServer.IMethodDispatcher, UnifiedAutomation.UaServer.IFileDirectoryMethods, and IDisposable.
Public Member Functions | |
void | Dispose () |
Frees any unmanaged resources. More... | |
StatusCode | CreateDirectory (RequestContext context, FileDirectoryModel model, string directoryName, out NodeId directoryNodeId) |
Creates a new sub-directory. More... | |
StatusCode | CreateFile (RequestContext context, FileDirectoryModel model, string fileName, bool requestFileOpen, out NodeId fileNodeId, out uint fileHandle) |
Creates a new file in the directory. More... | |
StatusCode | Delete (RequestContext context, FileDirectoryModel model, NodeId objectToDelete) |
Deletes a file or directory. More... | |
StatusCode | MoveOrCopy (RequestContext context, FileDirectoryModel model, NodeId objectToMoveOrCopy, NodeId targetDirectory, bool createCopy, string newName, out NodeId newNodeId) |
Moves or copies a file or directory. More... | |
FileDirectoryModel () | |
Initializes a new instance of the FileDirectoryModel class. More... | |
FileDirectoryModel (FileDirectoryModel template) | |
Initializes a new instance of the FileDirectoryModel class. More... | |
virtual CallMethodEventHandler | GetMethodDispatcher (RequestContext context, NodeId objectId, NodeId methodId) |
Gets the method dispatcher. More... | |
virtual StatusCode | DispatchMethod (RequestContext context, MethodHandle methodHandle, IList< Variant > inputArguments, List< StatusCode > inputArgumentResults, List< Variant > outputArguments) |
Dispatches the method. More... | |
Public Member Functions inherited from UnifiedAutomation.UaServer.FolderModel | |
FolderModel () | |
Initializes a new instance of the FolderModel class. More... | |
FolderModel (FolderModel template) | |
Initializes a new instance of the FolderModel class. More... | |
Public Member Functions inherited from UnifiedAutomation.UaServer.BaseObjectModel | |
BaseObjectModel () | |
Initializes a new instance of the BaseObjectModel class. More... | |
BaseObjectModel (BaseObjectModel template) | |
Initializes a new instance of the BaseObjectModel class. More... | |
Public Member Functions inherited from UnifiedAutomation.UaServer.ModelControllerBase | |
virtual ModelHandle | GetModelHandle (StringTable namespaceUris, object instance) |
Gets the metadata handle. More... | |
virtual DataValue | GetValue (IMapperContext context, ModelMapping mapping) |
Gets the value associated with the mapping. More... | |
virtual bool | SetValue (IMapperContext context, ModelMapping mapping, DataValue value) |
Sets the value associated with the mapping. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
An overrideable version of the Dispose. More... | |
Protected Attributes | |
object | Lock = new object() |
An object used to synchronize access to the file object. More... | |
Properties | |
NodeId | NodeId [get, set] |
Gets or sets the node identifier. More... | |
DirectoryInfo | DirectoryOnDisk [get, set] |
Gets or sets the directory on disk that is managed by the object. More... | |
IFileDirectoryMethods | FileDirectoryMethods [get, set] |
Gets or sets the FileDirectory methods. More... | |
Properties inherited from UnifiedAutomation.UaServer.ModelControllerBase | |
ModelHandle | ModelHandle [get, set] |
Gets or sets the metadata handle. More... | |
object | UserData [get, set] |
Gets or sets the user data. More... | |
Events | |
EventHandler < CreateDirectoryRequestEventArgs > | CreateDirectoryRequest |
Occurs when a request to create a new directory is received. More... | |
EventHandler < CreateFileRequestEventArgs > | CreateFileRequest |
Occurs when a request to create a new file is received. More... | |
EventHandler < DeleteFileRequestEventArgs > | DeleteFileRequest |
Occurs when a request to delete a file is received. More... | |
EventHandler < MoveFileRequestEventArgs > | MoveFileRequest |
Occurs when a request to move a file is received. More... | |
An object that represents a directory that can be accessed via the server.
Defines a type for the representation of file directories.
This class implements support for the FileDirectoryType object on the server side.
It is expected that OPC UA Servers will create vendor specific subtypes of the UnifiedAutomation.UaServer.FileDirectoryModel with additional functionalities like methods for creating symbolic links or setting access permissions. OPC UA Clients providing specialized file transfer user interfaces should be prepared to expose such additional methods to the user.
Instances of the ObjectType contain a list of UnifiedAutomation.UaServer.FileDirectoryModel objects representing the subdirectories of the file directory represented by the instance of this ObjectType.
Instances of the ObjectType contain a list of UnifiedAutomation.UaServer.FileModel objects representing the files in the file directory represented by the instance of this ObjectType.
|
inline |
Initializes a new instance of the FileDirectoryModel class.
|
inline |
Initializes a new instance of the FileDirectoryModel class.
template | The template. |
|
inline |
Creates a new sub-directory.
context | The request context. |
model | The parent directory. |
directoryName | Name of the directory. |
directoryNodeId | The NodeId assigned to the new directory. |
Implements UnifiedAutomation.UaServer.IFileDirectoryMethods.
|
inline |
Creates a new file in the directory.
context | The request context. |
model | The file directory model. |
fileName | Name of the file. |
requestFileOpen | if set to true then the file should be opened after it is created. |
fileNodeId | The file node identifier. |
fileHandle | The file handle. |
Implements UnifiedAutomation.UaServer.IFileDirectoryMethods.
|
inline |
Deletes a file or directory.
context | The request context. |
model | The file directory model. |
objectToDelete | The file or directory to delete. |
Implements UnifiedAutomation.UaServer.IFileDirectoryMethods.
|
inlinevirtual |
Dispatches the method.
context | The context. |
methodHandle | The method handle. |
inputArguments | The input arguments. |
inputArgumentResults | The input argument results. |
outputArguments | The output arguments. |
|
inline |
Frees any unmanaged resources.
|
inlineprotectedvirtual |
An overrideable version of the Dispose.
|
inlinevirtual |
Gets the method dispatcher.
context | The context. |
objectId | The object id. |
methodId | The method id. |
Implements UnifiedAutomation.UaServer.IMethodDispatcher.
|
inline |
Moves or copies a file or directory.
context | The request context. |
model | The file directory model. |
objectToMoveOrCopy | The file or directory to move or copy. |
targetDirectory | The target directory. |
createCopy | if set to true then the file or directory is copied. |
newName | The new name. |
newNodeId | The new node identifier. |
Implements UnifiedAutomation.UaServer.IFileDirectoryMethods.
|
protected |
An object used to synchronize access to the file object.
|
getset |
Gets or sets the directory on disk that is managed by the object.
The directory on disk that is managed by the object.
|
getset |
Gets or sets the FileDirectory methods.
The FileDirectory methods.
|
getset |
Gets or sets the node identifier.
The node identifier.
EventHandler<CreateDirectoryRequestEventArgs> UnifiedAutomation.UaServer.FileDirectoryModel.CreateDirectoryRequest |
Occurs when a request to create a new directory is received.
EventHandler<CreateFileRequestEventArgs> UnifiedAutomation.UaServer.FileDirectoryModel.CreateFileRequest |
Occurs when a request to create a new file is received.
EventHandler<DeleteFileRequestEventArgs> UnifiedAutomation.UaServer.FileDirectoryModel.DeleteFileRequest |
Occurs when a request to delete a file is received.
EventHandler<MoveFileRequestEventArgs> UnifiedAutomation.UaServer.FileDirectoryModel.MoveFileRequest |
Occurs when a request to move a file is received.