Contains all nodes of a device or module. More...
Inherits ReadOnlyDictionaryBase< string, Node >, INativeHandle, and INodeMap.
Public Member Functions | |
void | Dispose () |
Disposes the native object wrapped by this object immediately. More... | |
void | Close () |
Alias of the Dispose() method. More... | |
override bool | ContainsKey (string name) |
Gets whether a node with the name is contained in this node map. More... | |
bool | TryGetValue< TNode > (string name, out TNode node) |
Tries to get the node with the given name . More... | |
override bool | TryGetValue (string name, out Node value) |
Tries to get the node with the given name . More... | |
void | PollNodes () |
Polls all nodes of this node map that have a ValueNode.PollingTime. | |
void | LoadSettings (string filename) |
Loads the node values from the gcs file given in filename and sets the node values accordingly. More... | |
void | SaveSettings (string filename) |
Saves all nodes which have ValueNode.IsStreamable set to true . More... | |
void | SaveSettings (string filename, params string[] nodeNames) |
Saves all nodes which are listed in nodeNames . More... | |
void | SaveSettings (string filename, IEnumerable< Node > nodes) |
Saves all nodes . More... | |
string[] | GetAvailableFiles () |
Gets the currently available file identifiers, which can be downloaded or uploaded. More... | |
void | DownloadFile (string filename, string fileSelectorEntryName) |
Downloads a file from the camera via the GenApi file download. More... | |
void | UploadFile (string filename, string fileSelectorEntryName) |
Uploads a file to the camera via the GenApi file upload. More... | |
Public Member Functions inherited from ReadOnlyDictionaryBase< string, Node > | |
virtual bool | ContainsKey (TKey key) |
Determines whether the key is in this collection. More... | |
virtual bool | TryGetValue (TKey key, out TValue value) |
Retrieves the value that is associated with the specific key . More... | |
bool | TryGetValue< TNode > (string name, out TNode node) |
Tries to get the node with the given name . More... | |
Static Public Member Functions | |
static NodeMap | FromHandle (IntPtr nativeHandle) |
Create a NodeMap from a native handle. More... | |
static NodeMap | FromHandle (IntPtr nativeHandle, ShareObject doShare) |
Create a NodeMap from a native handle and potentially increment the unmanaged reference count on the native handle. More... | |
Protected Member Functions | |
override bool | Contains (KeyValuePair< string, Node > item) |
Gets whether the given pair item is contained in this node map. More... | |
override IEnumerator< KeyValuePair< string, Node > > | GetEnumerator () |
Gets the enumerator for the KeyValuePair<TKey, TValue>s. More... | |
Protected Member Functions inherited from ReadOnlyDictionaryBase< string, Node > | |
ReadOnlyDictionaryBase (IDictionary< TKey, TValue > dictionary) | |
Creates a new ReadOnlyDictionary wrapping the given dictionary . More... | |
virtual bool | Contains (KeyValuePair< TKey, TValue > item) |
Determines whether the item is in this collection. More... | |
virtual void | CopyTo (KeyValuePair< TKey, TValue >[] array, int arrayIndex) |
Copies the entire collection to a compatible one-dimensional array , starting at the specified arrayIndex . More... | |
virtual IEnumerator< KeyValuePair< TKey, TValue > > | GetEnumerator () |
Returns an enumerator that iterates through this collection. More... | |
Properties | |
bool | IsDisposed [get] |
Tests whether the native handle has been disposed. | |
IntPtr | Handle [get] |
Native CVB NODE handle. More... | |
override ICollection< Node > | Values [get] |
Gets the value-collection containing all available nodes. | |
override Node | this[string name] [get] |
Indexer to retrieve a node with the given name from this node map. More... | |
string | ModuleName [get, set] |
Gets the GenTL module name this node map refers to. | |
string | Description [get, set] |
Gets the descriptive text of this node map. | |
string | VendorName [get] |
Gets the name of the vendor, who created the XML description. More... | |
string | ModelName [get] |
Gets the name of the model, that the XML description is for. More... | |
string | TransportLayerNamespace [get] |
Gets the transport layer type of the device. | |
string | ToolTip [get] |
Gets the short descriptive text, if any is available. | |
GenApiVersion | XmlFileVersion [get] |
Gets the XML version. | |
GenApiVersion | XmlFileSchemaVersion [get] |
Gets the XML schema version. | |
Properties inherited from ReadOnlyDictionaryBase< string, Node > | |
IDictionary< TKey, TValue > | Dictionary [get] |
Gets the wrapped dictionary. | |
virtual TValue | this[TKey key] [get] |
Gets the element that has the specified key . More... | |
int | Count [get] |
Gets the number of items in the dictionary. | |
virtual ICollection< TKey > | Keys [get] |
Gets a read-only collection of all keys in this dictionary. | |
virtual ICollection< TValue > | Values [get] |
Gets a read-only collection of all values in this dictionary. | |
Properties inherited from INativeHandle | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Properties inherited from INodeMap | |
new INode | this[string name] [get] |
Indexer to retrieve a node with the given name from this node map. More... | |
string | ModuleName [get] |
Gets the GenTL module name this node map refers to. | |
string | VendorName [get] |
Gets the name of the vendor who created the XML description. More... | |
string | ModelName [get] |
Gets the name of the model that the XML description is for. More... | |
string | TransportLayerNamespace [get] |
Gets the transport layer type of the device. | |
GenApiVersion | XmlFileVersion [get] |
Gets the XML version. | |
GenApiVersion | XmlFileSchemaVersion [get] |
Gets the XML schema version. | |
Events | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Events inherited from INativeHandle | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Contains all nodes of a device or module.
void Close | ( | ) |
Alias of the Dispose() method.
Call this method to release the resources allocated by this node immediately. Remember that after calling Dispose, any subsequent access to references to this image will result in an ObjectDisposedException.
|
protected |
Gets whether the given pair item is contained in this node map.
item | Element to be checked. |
true
if the key/value pair exists; false
otherwise.override bool ContainsKey | ( | string | name | ) |
Gets whether a node with the name is contained in this node map.
name | Name of the node (namespace prefix necessary). |
true
if the name exists in this dictionary.void Dispose | ( | ) |
Disposes the native object wrapped by this object immediately.
Call this method to release the resources allocated by this node immediately. Remember that after calling Dispose, any subsequent access to references to this image will result in an ObjectDisposedException.
void DownloadFile | ( | string | filename, |
string | fileSelectorEntryName | ||
) |
Downloads a file from the camera via the GenApi file download.
See GetAvailableFiles for file ids which can be downloaded.
filename | Full path to file to save data to. |
fileSelectorEntryName | Symbolic name of the FileSelector EnumerationNode identifying the file to download. |
|
static |
Create a NodeMap
from a native handle.
Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.
nativeHandle | handle to create the naode map from. |
|
static |
Create a NodeMap
from a native handle and potentially increment the unmanaged reference count on the native handle.
Note that this function is not intended for general use. Providing invalid values on the nativeHandle parameter will most likely lead to severe problems in your application.
nativeHandle | handle to create the image from. |
doShare | ShareObject.Yes if nativeHandle is to be shared. |
string[] GetAvailableFiles | ( | ) |
Gets the currently available file identifiers, which can be downloaded or uploaded.
See DownloadFile(string, string) or UploadFile(string, string) for operations on the returned list.
|
protectedvirtual |
Gets the enumerator for the KeyValuePair<TKey, TValue>s.
Reimplemented from ReadOnlyDictionaryBase< string, Node >.
void LoadSettings | ( | string | filename | ) |
Loads the node values from the gcs file given in filename and sets the node values accordingly.
filename | Complete path to gcs file that contains the settings. |
void SaveSettings | ( | string | filename | ) |
Saves all nodes which have ValueNode.IsStreamable set to true
.
filename | Complete path to gcs file that contains the settings. |
void SaveSettings | ( | string | filename, |
IEnumerable< Node > | nodes | ||
) |
Saves all nodes .
filename | Complete path to gcs file that contains the settings. |
nodes | All nodes to save. |
void SaveSettings | ( | string | filename, |
params string[] | nodeNames | ||
) |
Saves all nodes which are listed in nodeNames .
filename | Complete path to gcs file that contains the settings. |
nodeNames | Array containing all names of the nodes to save. |
override bool TryGetValue | ( | string | name, |
out Node | value | ||
) |
Tries to get the node with the given name .
name | Name of the node (namespace prefix optional). |
value | Will contain the Node object if present. |
true
if name is contained in this dictionary; false
otherwise.bool TryGetValue< TNode > | ( | string | name, |
out TNode | node | ||
) |
Tries to get the node with the given name .
TNode | Type of node to retrieve. |
name | Name with or without the namespace prefix. |
node | Node instance; null if not found. |
Implements INodeMap.
TNode | : | INode |
void UploadFile | ( | string | filename, |
string | fileSelectorEntryName | ||
) |
Uploads a file to the camera via the GenApi file upload.
See GetAvailableFiles for file ids which can be uploaded.
filename | Full path to file to load data from. |
fileSelectorEntryName | Symbolic name of the FileSelector EnumerationNode identifying the file to upload. |
|
get |
Native CVB NODE handle.
It is normally not necessary to work with this handle in CVB.Net. Note that using this handle in connection with the legacy CVB managed wrappers may actually be disruptive to your application.
Implements INativeHandle.
|
get |
Gets the name of the model, that the XML description is for.
Attention:
often this name does not match the information of the GenTL port (discovery information).
Implements INodeMap.
|
get |
|
get |
Gets the name of the vendor, who created the XML description.
Attention:
often this name does not match the information of the GenTL port (discovery information).
Implements INodeMap.
NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.