CVB.Net 15.0
Loading...
Searching...
No Matches

GevServer NodeMap. More...

Inherits NodeDictionaryBase< TNode >, and IConfigurableNodeMap.

Public Member Functions

bool TryGetValue< TNode > (string name, out TNode node)
 Tries to get the node with the given name .
 
void Add (Node node)
 Adds the given node to this NodeMap.
 
bool Remove (Node node)
 Removes the node from this NodeMap.
 
- Public Member Functions inherited from NodeDictionaryBase< TNode >
void Dispose ()
 Disposes of this dictionary and all its nodes.
 
bool ContainsKey (string key)
 Gets whether this dictionaries contains the given key .
 
bool Remove (string key)
 Removes the node identified by the given key .
 

Protected Member Functions

override void Dispose (bool disposing)
 Disposes of all Nodes if disposing .
 
override void AddNode (string key, Node value)
 Adds the given value to this NodeMap.
 
override bool RemoveNode (string key)
 Removes a Node from this NodeMap by its key .
 
- Protected Member Functions inherited from NodeDictionaryBase< TNode >
void AddNode (string key, TNode value)
 Adds a new TNode value associated to the given key .
 
bool RemoveNode (string key)
 Removes the node at the given key .
 
TNode GetNode (string key)
 Actual implementation for getting nodes.
 
bool TryGetNode (string key, out TNode value)
 Tries to get the TNode value with the given key .
 

Properties

GevServer Server [get]
 Gets the GevServer object this node map belongs to.
 
override bool IsReadOnly [get]
 Gets whether this dictionary is read only.
 
string ModelName [get]
 Gets the model name of the Server.
 
string ModuleName [get]
 Gets this NodeMaps module name.
 
string TransportLayerNamespace [get]
 Gets this NodeMaps transport layer namespace.
 
string VendorName [get]
 Gets the device vendor name of the Server.
 
GenApiVersion XmlFileSchemaVersion [get]
 Gets the GenICam GenApi schema version this Server creates.
 
GenApiVersion XmlFileVersion [get, set]
 Gets or sets the version of this server's GenApi XML description.
 
- Properties inherited from NodeDictionaryBase< TNode >
bool IsDisposed [get]
 Gets whether this dictionary has been disposed.
 
IDictionary< string, TNode > Nodes = new Dictionary<string, TNode>() [get]
 Gets the dictionary holding all node objects.
 
TNode this[string key] [get, set]
 Indexer of this dictionary to get/add TNode objects.
 
int Count [get]
 Gets the number of TNodes in this dictionary.
 
bool IsReadOnly [get]
 Gets whether this dictionary is read only.
 
ICollection< string > Keys [get]
 Gets the keys for all nodes.
 
ICollection< TNode > Values [get]
 Gets all the TNodes in this dictionary.
 

Detailed Description

Member Function Documentation

◆ Add()

void Add ( Node node)

Adds the given node to this NodeMap.

The key will be the full node .Node.Name.

Parameters
nodeNode to add.

◆ AddNode()

override void AddNode ( string key,
Node value )
protected

Adds the given value to this NodeMap.

Parameters
keyMust be value .Node.Name.
valueThe Node to add.

◆ Dispose()

override void Dispose ( bool disposing)
protectedvirtual

Disposes of all Nodes if disposing .

Parameters
disposingtrue if called from IDisposable.Dispose; false if called from finalizer.

Reimplemented from NodeDictionaryBase< TNode >.

◆ Remove()

bool Remove ( Node node)

Removes the node from this NodeMap.

Parameters
nodeNode to remove.
Returns
true if node has been removed; false if not present in this NodeMap.

◆ RemoveNode()

override bool RemoveNode ( string key)
protected

Removes a Node from this NodeMap by its key .

Parameters
keyKey to identify the Node to remove.
Returns
true if key has been removed; false if not present in this NodeMap.

◆ TryGetValue< TNode >()

bool TryGetValue< TNode > ( string name,
out TNode node )

Tries to get the node with the given name .

Template Parameters
TNodeType of node to retrieve.
Parameters
nameName with or without the namespace prefix.
nodeNode instance; null if not found.
Returns
true if node with given name exists and is of type TNode.

Implements INodeMap.

Type Constraints
TNode :INode 

Property Documentation

◆ IsReadOnly

override bool IsReadOnly
get

Gets whether this dictionary is read only.

Read only when the Server is not in the GevServerState.Configuration GevServer.State.

◆ ModuleName

string ModuleName
get

Gets this NodeMaps module name.

This is the Device NodeMap.

Implements INodeMap.

◆ TransportLayerNamespace

string TransportLayerNamespace
get

Gets this NodeMaps transport layer namespace.

This is always GEV.

Implements INodeMap.

◆ XmlFileVersion

GenApiVersion XmlFileVersion
getset

Gets or sets the version of this server's GenApi XML description.

It is mandatory to increase the version information when you change anything about the GenApi XML description.

To distinguish between different GenApi XML feature sets use the GevServer.UserVersion property.

See GenApiVersion for a description of the version components.

Implements IConfigurableNodeMap.