Typedefs | |
typedef void * | NODE |
Handle to object representing a node. More... | |
typedef void * | NODECALLBACK |
Handle referencing a NODE specific registered callback function. More... | |
typedef void(__stdcall * | TFNode) (NODE Node, void *pPrivate) |
Callback function which is called with node related events. More... | |
Type Information | |
cvbbool_t | IsNode (NODE Node) |
Checks whether the given Node handle is valid. More... | |
cvbres_t | NType (NODE Node, TNodeType &Type) |
Gets the node type (implemented GenApi interface). More... | |
NODE Access | |
cvbres_t | NGetAsBoolean (NODE Node, cvbbool_t &Value) |
Gets the given Node value as a Boolean value. More... | |
cvbres_t | NGetAsFloat (NODE Node, double &Value) |
Gets the given Node value as a double. More... | |
cvbres_t | NGetAsInteger (NODE Node, cvbint64_t &Value) |
Gets the given Node value as an int64. More... | |
cvbres_t | NGetAsString (NODE Node, char *Value, size_t &ValueSize) |
Gets the given Node value as a C string. More... | |
cvbres_t | NGetAsStringW (NODE Node, wchar_t *Value, size_t &ValueSize) |
Gets the given Node value as a wide C string. More... | |
cvbres_t | NGetAsMemory (NODE PortNode, cvbint64_t Address, void *pBuffer, size_t BufferSize) |
Reads arbitrary data from a given Address. More... | |
cvbres_t | NInvalidate (NODE Node) |
Invalidates the given Node. More... | |
cvbres_t | NSetAsBoolean (NODE Node, cvbbool_t Value) |
Sets the given Node value as a Boolean. More... | |
cvbres_t | NSetAsFloat (NODE Node, double Value) |
Sets the given Node value as a double. More... | |
cvbres_t | NSetAsInteger (NODE Node, cvbint64_t Value) |
Sets the given Node value as an int64. More... | |
cvbres_t | NSetAsString (NODE Node, const char *Value) |
Sets the given Node value as a C string. More... | |
cvbres_t | NSetAsStringW (NODE Node, const wchar_t *Value) |
Sets the given Node value as a wide C string. More... | |
cvbres_t | NSetAsMemory (NODE PortNode, cvbint64_t Address, const void *pBuffer, size_t BufferSize) |
Writes arbitrary data to a given Address. More... | |
NODE Information | |
cvbres_t | NInfoAsBoolean (NODE Node, TNodeInfo Cmd, cvbbool_t &Info) |
Gets information about the given Node as a Boolean value. More... | |
cvbres_t | NInfoAsFloat (NODE Node, TNodeInfo Cmd, double &Info) |
Gets information about the given Node as a double value. More... | |
cvbres_t | NInfoAsInteger (NODE Node, TNodeInfo Cmd, cvbint64_t &Info) |
Gets information about the given Node as an int64 value. More... | |
cvbres_t | NInfoAsString (NODE Node, TNodeInfo Cmd, char *Info, size_t &InfoSize) |
Gets information about the given Node as a C string value. More... | |
cvbres_t | NInfoAsStringW (NODE Node, TNodeInfo Cmd, wchar_t *Info, size_t &InfoSize) |
Gets information about the given Node as a wide C string value. More... | |
cvbres_t | NInfoEnum (NODE Node, cvbdim_t Index, cvbint64_t &IntegerValue, char *StringValue, size_t &StringValueSize) |
Gets the available entries for a GenApi::IEnumeration node. More... | |
cvbres_t | NInfoEnumW (NODE Node, cvbdim_t Index, cvbint64_t &IntegerValue, wchar_t *StringValue, size_t &StringValueSize) |
Gets the available entries for a GenApi::IEnumeration node. More... | |
cvbres_t | NListCount (NODE Node, TNodeList List, cvbdim_t &NodeCount) |
Gets the number of entries of the specified List of the given Node. More... | |
cvbres_t | NList (NODE Node, TNodeList List, cvbdim_t Index, char *Entry, size_t &EntrySize) |
Gets the node Entry name at the given Index. More... | |
cvbres_t | NListW (NODE Node, TNodeList List, cvbdim_t Index, wchar_t *Entry, size_t &EntrySize) |
Gets the node Entry name at the given Index. More... | |
cvbres_t | NGetVerifyMode (NODE Node, TVerifyMode &Mode) |
Gets the current #TVerifyMode of this node. More... | |
cvbres_t | NSetVerifyMode (NODE Node, TVerifyMode Mode) |
Sets a new #TVerifyMode for this node. More... | |
NODE Callback Handling | |
cvbres_t | NRegisterUpdate (NODE Node, TFNode Callback, void *pPrivate, NODECALLBACK &Handle) |
Registers the node updated callback. More... | |
cvbres_t | NDeregisterUpdate (NODE Node, NODECALLBACK Handle) |
Unregisters a formerly registered function. More... | |
NODE functions | |
cvbres_t | NInfoAsBoolean (NODE Node, ::TNodeInfo Cmd, cvbbool_t &Info) |
cvbres_t | NInfoAsFloat (NODE Node, ::TNodeInfo Cmd, double &Info) |
cvbres_t | NInfoAsInteger (NODE Node, ::TNodeInfo Cmd, cvbint64_t &Info) |
cvbres_t | NInfoAsString (NODE Node, ::TNodeInfo Cmd, char *Info, size_t &InfoSize) |
cvbres_t | NInfoAsStringW (NODE Node, ::TNodeInfo Cmd, wchar_t *Info, size_t &InfoSize) |
Handle to object representing a node.
All types of nodes are referenced via this handle.
Handle referencing a NODE specific registered callback function.
This handle identifies a registered callback function on a node. Use this handle to unregister the callback on the node it was registered on.
void(* TFNode)(NODE Node, void *pPrivate) |
Callback function which is called with node related events.
This function can be registered by the NRegisterUpdate function to get notifications on invalidated (and thus updated) nodes.
Node | [in] Node object that was invalidated (changed). |
pPrivate | [in] Pointer to user data given in the register function. |
cvbbool_t IsNode | ( | NODE | Node | ) |
Checks whether the given Node handle is valid.
[in] | Node | Handle to be checked. |
cvbres_t NDeregisterUpdate | ( | NODE | Node, |
NODECALLBACK | Handle | ||
) |
Unregisters a formerly registered function.
[in] | Node | CVB Node to access. |
[in] | Handle | Handle of callback function to be unregistered. |
cvbres_t NGetAsBoolean | ( | NODE | Node, |
cvbbool_t & | Value | ||
) |
Gets the given Node value as a Boolean value.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Reference to variable in which the current value of the node is written. |
cvbres_t NGetAsFloat | ( | NODE | Node, |
double & | Value | ||
) |
Gets the given Node value as a double.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Reference to variable in which the current value of the node is written. |
cvbres_t NGetAsInteger | ( | NODE | Node, |
cvbint64_t & | Value | ||
) |
Gets the given Node value as an int64.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Reference to variable in which the current value of the node is written. |
cvbres_t NGetAsMemory | ( | NODE | PortNode, |
cvbint64_t | Address, | ||
void * | pBuffer, | ||
size_t | BufferSize | ||
) |
Reads arbitrary data from a given Address.
[in] | PortNode | The port node to read data from. |
[in] | Address | Address to read from. |
[in] | pBuffer | Buffer to write read data to. |
[in] | BufferSize | Size of the given pBuffer memory. |
cvbres_t NGetAsString | ( | NODE | Node, |
char * | Value, | ||
size_t & | ValueSize | ||
) |
Gets the given Node value as a C string.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | C string to be filled with requested value; NULL for size inquiry (see ValueSize). |
[in,out] | ValueSize | Gives the buffer size of Value or receives the minimal needed size (including the terminating zero in either case) if Value is NULL . |
cvbres_t NGetAsStringW | ( | NODE | Node, |
wchar_t * | Value, | ||
size_t & | ValueSize | ||
) |
Gets the given Node value as a wide C string.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Wide C string to be filled with requested value; NULL for size inquiry (see ValueSize). |
[in,out] | ValueSize | Gives the buffer size of Value or receives the minimal needed size if Value is NULL . |
cvbres_t NGetVerifyMode | ( | NODE | Node, |
TVerifyMode & | Mode | ||
) |
Gets the current #TVerifyMode of this node.
The mode indicates whether value reads and/or writes are to be verified. If a value is out of range no value is set/returned and an appropriate error code is returned.
[in] | Node | CVB Node to access. |
[out] | Mode | Reference to variable to contain the current mode. |
cvbres_t NInfoAsBoolean | ( | NODE | Node, |
TNodeInfo | Cmd, | ||
cvbbool_t & | Info | ||
) |
Gets information about the given Node as a Boolean value.
If a requested information is not available as a Boolean the function returns an error.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NInfoAsFloat | ( | NODE | Node, |
TNodeInfo | Cmd, | ||
double & | Info | ||
) |
Gets information about the given Node as a double value.
If a requested information is not available as a double the function returns an error.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NInfoAsInteger | ( | NODE | Node, |
TNodeInfo | Cmd, | ||
cvbint64_t & | Info | ||
) |
Gets information about the given Node as an int64 value.
If a requested information is not available as an int64 the function returns an error.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NInfoAsString | ( | NODE | Node, |
TNodeInfo | Cmd, | ||
char * | Info, | ||
size_t & | InfoSize | ||
) |
Gets information about the given Node as a C string value.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | C string to be filled with requested information; NULL for size inquiry (see InfoSize). |
[in,out] | InfoSize | Gives the buffer size of Info or receives the minimal needed size if Info is NULL . |
cvbres_t NInfoAsStringW | ( | NODE | Node, |
TNodeInfo | Cmd, | ||
wchar_t * | Info, | ||
size_t & | InfoSize | ||
) |
Gets information about the given Node as a wide C string value.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Wide C string to be filled with requested information; NULL for size inquiry (see InfoSize). |
[in,out] | InfoSize | Gives the buffer size of Info or receives the minimal needed size if Info is NULL . |
cvbres_t NInfoEnum | ( | NODE | Node, |
cvbdim_t | Index, | ||
cvbint64_t & | IntegerValue, | ||
char * | StringValue, | ||
size_t & | StringValueSize | ||
) |
Gets the available entries for a GenApi::IEnumeration
node.
The number of available enumeration entries can be inquired with the NL_EnumEntry command of the NInfoAsInteger function.
[in] | Node | CVB Node to access. |
[in] | Index | Index of entry to access [0 ... NListCount (NL_EnumEntry) - 1]. |
[out] | IntegerValue | Integer representation of enumeration entry. |
[out] | StringValue | C string to be filled with string representation of the enumeration entry; NULL for size inquiry (see StringValueSize). |
[out] | StringValueSize | Gives the buffer size of StringValue or receives the needed size if StringValue is NULL . |
cvbres_t NInfoEnumW | ( | NODE | Node, |
cvbdim_t | Index, | ||
cvbint64_t & | IntegerValue, | ||
wchar_t * | StringValue, | ||
size_t & | StringValueSize | ||
) |
Gets the available entries for a GenApi::IEnumeration
node.
The number of available enumeration entries can be inquired with the NL_EnumEntry command of the NInfoAsInteger function.
[in] | Node | CVB Node to access. |
[in] | Index | Index of entry to access [0 ... NListCount (NL_EnumEntry) - 1]. |
[out] | IntegerValue | Integer representation of enumeration entry. |
[out] | StringValue | Wide C string to be filled with string representation of the enumeration entry; NULL for size inquiry (see StringValueSize). |
[out] | StringValueSize | Gives the buffer size of StringValue or receives the needed size if StringValue is NULL . |
cvbres_t NInvalidate | ( | NODE | Node | ) |
Invalidates the given Node.
Resets the changed status of the given Node. If the value is cached the next time this node is accessed the actual value from the device is read. All features which depend on this one are also updated.
[in] | Node | CVB Node to be invalidated. |
cvbres_t NList | ( | NODE | Node, |
TNodeList | List, | ||
cvbdim_t | Index, | ||
char * | Entry, | ||
size_t & | EntrySize | ||
) |
Gets the node Entry name at the given Index.
[in] | Node | CVB Node to access. |
[in] | List | Type of list of the Node to be accessed. |
[in] | Index | Index of entry to access. |
[out] | Entry | Name of node entry at the given Index. |
[in,out] | EntrySize | Size of Entry buffer; inquiry of min number of bytes if Entry is NULL . |
cvbres_t NListCount | ( | NODE | Node, |
TNodeList | List, | ||
cvbdim_t & | NodeCount | ||
) |
Gets the number of entries of the specified List of the given Node.
[in] | Node | CVB Node to access. |
[in] | List | Type of list of the NODE to be accessed. |
[out] | NodeCount | Number of entries in the List. |
cvbres_t NListW | ( | NODE | Node, |
TNodeList | List, | ||
cvbdim_t | Index, | ||
wchar_t * | Entry, | ||
size_t & | EntrySize | ||
) |
Gets the node Entry name at the given Index.
[in] | Node | CVB Node to access. |
[in] | List | Type of list of the Node to be accessed. |
[in] | Index | Index of entry to access. |
[out] | Entry | Name of node entry at the given Index. |
[in,out] | EntrySize | Size of Entry buffer; inquiry of min number of bytes if Entry is NULL . |
cvbres_t NRegisterUpdate | ( | NODE | Node, |
TFNode | Callback, | ||
void * | pPrivate, | ||
NODECALLBACK & | Handle | ||
) |
Registers the node updated callback.
This callback is called when a node is invalidated (changed).
[in] | Node | CVB Node to access. |
[in] | Callback | Callback function pointer of function being called. |
[in] | pPrivate | User data pointer to be given in Callback function. |
[out] | Handle | Handle identifying the registered function. Needed to unregister the callback. |
cvbres_t NSetAsBoolean | ( | NODE | Node, |
cvbbool_t | Value | ||
) |
Sets the given Node value as a Boolean.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. |
cvbres_t NSetAsFloat | ( | NODE | Node, |
double | Value | ||
) |
Sets the given Node value as a double.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. |
cvbres_t NSetAsInteger | ( | NODE | Node, |
cvbint64_t | Value | ||
) |
Sets the given Node value as an int64.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. |
cvbres_t NSetAsMemory | ( | NODE | PortNode, |
cvbint64_t | Address, | ||
const void * | pBuffer, | ||
size_t | BufferSize | ||
) |
Writes arbitrary data to a given Address.
[in] | PortNode | The port node to write data to. |
[in] | Address | Address to write to. |
[in] | pBuffer | Buffer to write data from. |
[in] | BufferSize | Size of the given pBuffer memory. |
cvbres_t NSetAsString | ( | NODE | Node, |
const char * | Value | ||
) |
Sets the given Node value as a C string.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. This string must be 0 terminated. |
cvbres_t NSetAsStringW | ( | NODE | Node, |
const wchar_t * | Value | ||
) |
Sets the given Node value as a wide C string.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. This string must be 0 terminated. |
cvbres_t NSetVerifyMode | ( | NODE | Node, |
TVerifyMode | Mode | ||
) |
Sets a new #TVerifyMode for this node.
The mode indicates whether value reads and/or writes are to be verified. If a value is out of range no value is set/returned and an appropriate error code is returned.
[in] | Node | CVB Node to access. |
[out] | Mode | New mode. |
cvbres_t NType | ( | NODE | Node, |
TNodeType & | Type | ||
) |
Gets the node type (implemented GenApi interface).
Only value types are supported (GenApi::IValue
).
[in] | Node | CVB Node to retrieve information about. |
[out] | Type | GenApi node type of node. |