Typedefs | |
typedef void * | NODEMAP |
Handle to object holding all nodes of a device. | |
typedef cvbbool_t(__stdcall * | TFNodeProc) (NODE Node, cvbres_t Reason, void *pPrivate) |
Callback function when several nodes are processed. More... | |
Enumerations | |
enum | TFirmwareUpdateInfo { FWUI_Key = 0 , FWUI_Value , FWUI_LanguageCode } |
Defines commands to retrieve firmware information from a GUF file. More... | |
enum | TNodeMapInfo { NMI_Vendor = 0 , NMI_Model , NMI_SchemaVersionMajor , NMI_SchemaVersionMinor , NMI_SchemaVersionSubMinor , NMI_DeviceVersionMajor , NMI_DeviceVersionMinor , NMI_DeviceVersionSubMinor , NMI_Namespace , NMI_ProductGUID , NMI_VersionGUID , NMI_Tooltip , NMI_Last } |
Defines commands to retrieve information about a Node Map. More... | |
Functions | |
cvbres_t | cvbGenApi::CreateFirmwareUpdater (const char *Filename, cvbbool_t Verify, FWUPDATER &Updater) |
Creates a firmware updater, Validates a guf file and sets the location of the guf file as C string. More... | |
cvbres_t | cvbGenApi::CreateFirmwareUpdaterW (const wchar_t *Filename, cvbbool_t Verify, FWUPDATER &Updater) |
Creates a firmware updater, Validates a guf file and sets the location of the guf file as wide string. More... | |
cvbres_t | cvbGenApi::FWUpdate (FWUPDATER Updater, NODEMAP NodeMap, const size_t UpdateFileSelection, TFDeviceReset Callback, void *pPrivate) |
Runs the firmware update process for a device. More... | |
cvbres_t | cvbGenApi::FWUpdateFileCount (FWUPDATER Updater, size_t &FileCount) |
Gets the number of available update files in a guf file. More... | |
cvbres_t | cvbGenApi::FWUpdateFileInfo (FWUPDATER Updater, size_t FileIndex, size_t InfoIndex, TFirmwareUpdateInfo Cmd, char *Info, size_t &InfoSize) |
Identifies a single firmware update and gets information about the firmware update as C string. More... | |
cvbres_t | cvbGenApi::FWUpdateFileInfoCount (FWUPDATER Updater, size_t FileIndex, size_t &InfoCount) |
Gets the number of available update infos in a guf file. More... | |
cvbres_t | cvbGenApi::FWUpdateFileInfoW (FWUPDATER Updater, size_t FileIndex, size_t InfoIndex, TFirmwareUpdateInfo Cmd, wchar_t *Info, size_t &InfoSize) |
Identifies a single firmware update and gets information about the firmware update as wide string. More... | |
cvbres_t | GetGenApiVersion (cvbval_t &VersionMajor, cvbval_t &VersionMinor, cvbval_t &VersionSubMinor) |
Gets the version of the underlying GenICam GenApi. More... | |
NODE Access | |
cvbres_t | NMGetNode (NODEMAP NodeMap, const char *NodeName, NODE &Node) |
Gets the Node object with the given NodeName. More... | |
cvbres_t | NMGetNodeW (NODEMAP NodeMap, const wchar_t *NodeName, NODE &Node) |
Gets the Node object with the given NodeName. More... | |
cvbres_t | NMListNode (NODEMAP NodeMap, cvbdim_t Index, char *NodeName, size_t &NodeNameSize) |
Gets the name of the Node at the given Index. More... | |
cvbres_t | NMListNodeW (NODEMAP NodeMap, cvbdim_t Index, wchar_t *NodeName, size_t &NodeNameSize) |
Gets the name of the Node at the given Index. More... | |
cvbres_t | NMNodeCount (NODEMAP NodeMap, cvbdim_t &NodeCount) |
Gets the number of nodes in the given NodeMap. More... | |
cvbres_t | NMPollNodes (NODEMAP NodeMap, cvbval_t DeltaMS) |
Polls all pollable nodes in the given NodeMap. More... | |
NODEMAP Information | |
cvbbool_t | IsNodeMap (NODEMAP NodeMap) |
Checks whether the given NodeMap handle is valid. More... | |
cvbres_t | NMInfoAsBoolean (NODEMAP NodeMap, TNodeMapInfo Cmd, cvbbool_t &Info) |
Gets information about the given NodeMap as a Boolean value. More... | |
cvbres_t | NMInfoAsFloat (NODEMAP NodeMap, TNodeMapInfo Cmd, double &Info) |
Gets information about the given NodeMap as a double value. More... | |
cvbres_t | NMInfoAsInteger (NODEMAP NodeMap, TNodeMapInfo Cmd, cvbint64_t &Info) |
Gets information about the given NodeMap as a int64 value. More... | |
cvbres_t | NMInfoAsString (NODEMAP NodeMap, TNodeMapInfo Cmd, char *Info, size_t &InfoSize) |
Gets information about the given NodeMap as a C string value. More... | |
cvbres_t | NMInfoAsStringW (NODEMAP NodeMap, TNodeMapInfo Cmd, wchar_t *Info, size_t &InfoSize) |
Gets information about the given NodeMap as a wide C string value. More... | |
NODEMAP Functions | |
cvbres_t | NMLoadSetEx (NODEMAP NodeMap, const char *Filename, cvbbool_t Validate, TFNodeProc Callback, void *pPrivate) |
Loads the settings from the given Filename to the NodeMap. More... | |
cvbres_t | NMLoadSetExW (NODEMAP NodeMap, const wchar_t *Filename, cvbbool_t Validate, TFNodeProc Callback, void *pPrivate) |
Loads the settings from the given Filename to the NodeMap. More... | |
cvbres_t | NMLoadSet (NODEMAP NodeMap, const char *Filename, TFNodeProc Callback, void *pPrivate) |
Loads the settings from the given Filename to the NodeMap. More... | |
cvbres_t | NMLoadSetW (NODEMAP NodeMap, const wchar_t *Filename, TFNodeProc Callback, void *pPrivate) |
Loads the settings from the given Filename to the NodeMap. More... | |
cvbres_t | NMLoadSetString (NODEMAP NodeMap, const char *Settings, cvbbool_t Validate, TFNodeProc Callback, void *pPrivate) |
Loads the settings from the given Settings buffer to the NodeMap. More... | |
cvbres_t | NMLoadSetStringW (NODEMAP NodeMap, const wchar_t *Settings, cvbbool_t Validate, TFNodeProc Callback, void *pPrivate) |
Loads the settings from the given Settings buffer to the NodeMap. More... | |
cvbres_t | NMSaveSet (NODEMAP NodeMap, const char *Filename, TFNodeProc Callback, void *pPrivate) |
Saves all streamable features with values in the given NodeMap to the given Filename. More... | |
cvbres_t | NMSaveSetW (NODEMAP NodeMap, const wchar_t *Filename, TFNodeProc Callback, void *pPrivate) |
Saves all streamable features with values in the given NodeMap to the given Filename. More... | |
cvbres_t | NMSaveSetEx (NODEMAP NodeMap, const char *Filename, const char *NodeList, TFNodeProc Callback, void *pPrivate) |
Saves the features given in NodeList with values from the given NodeMap to the given Filename. More... | |
cvbres_t | NMSaveSetExW (NODEMAP NodeMap, const wchar_t *Filename, const wchar_t *NodeList, TFNodeProc Callback, void *pPrivate) |
Saves the features given in NodeList with values from the given NodeMap to the given Filename. More... | |
cvbres_t | NMSaveSetString (NODEMAP NodeMap, char *Settings, size_t &SettingsSize, TFNodeProc Callback, void *pPrivate) |
Saves all streamable features with values in the given NodeMap to the given Settings buffer. More... | |
cvbres_t | NMSaveSetStringW (NODEMAP NodeMap, wchar_t *Settings, size_t &SettingsSize, TFNodeProc Callback, void *pPrivate) |
Saves all streamable features with values in the given NodeMap to the given Settings buffer. More... | |
cvbres_t | NMSaveSetStringEx (NODEMAP NodeMap, char *Settings, size_t &SettingsSize, const char *NodeList, TFNodeProc Callback, void *pPrivate) |
Saves the features given in NodeList with values from the given NodeMap to the given Settings buffer. More... | |
cvbres_t | NMSaveSetStringExW (NODEMAP NodeMap, wchar_t *Settings, size_t &SettingsSize, const wchar_t *NodeList, TFNodeProc Callback, void *pPrivate) |
Saves the features given in NodeList with values from the given NodeMap to the given Settings buffer. More... | |
cvbres_t | NMDownloadFile (NODEMAP NodeMap, const char *FileSelectorEntryName, const char *Filename) |
Downloads a file from the device which is present in the Std::FileSelector and saves it do disk. More... | |
cvbres_t | NMDownloadFileW (NODEMAP NodeMap, const wchar_t *FileSelectorEntryName, const wchar_t *Filename) |
Downloads a file from the device which is present in the Std::FileSelector and saves it do disk. More... | |
cvbres_t | NMDownloadFileMemory (NODEMAP NodeMap, const char *FileSelectorEntryName, void *pBuffer, size_t &BufferSize) |
Downloads a file from the device which is present in the Std::FileSelector and saves it do memory. More... | |
cvbres_t | NMDownloadFileMemoryW (NODEMAP NodeMap, const wchar_t *FileSelectorEntryName, void *pBuffer, size_t &BufferSize) |
Downloads a file from the device which is present in the Std::FileSelector and saves it do memory. More... | |
cvbres_t | NMUploadFile (NODEMAP NodeMap, const char *FileSelectorEntryName, const char *Filename) |
Uploads a file to the device which is present in the Std::FileSelector from disk. More... | |
cvbres_t | NMUploadFileW (NODEMAP NodeMap, const wchar_t *FileSelectorEntryName, const wchar_t *Filename) |
Uploads a file to the device which is present in the Std::FileSelector from disk. More... | |
cvbres_t | NMUploadFileMemory (NODEMAP NodeMap, const char *FileSelectorEntryName, const void *pBuffer, size_t BufferSize) |
Uploads a file to the device which is present in the Std::FileSelector and loads it from memory. More... | |
cvbres_t | NMUploadFileMemoryW (NODEMAP NodeMap, const wchar_t *FileSelectorEntryName, const void *pBuffer, size_t BufferSize) |
Uploads a file to the device which is present in the Std::FileSelector and loads it from memory. More... | |
cvbres_t | NMCreateStream (NODEMAP NodeMap, TStreamType StreamType, NODEMAPSTREAM &NodeMapStream) |
Create the node map stream form a given node map. More... | |
cvbres_t | NMStreamPush (NODEMAPSTREAM NodeMapStream, NODE Node) |
Update the node information such as display name, type of node and value of node. More... | |
cvbres_t | NMStreamDump (NODEMAPSTREAM NodeMapStream, char *Settings, size_t &SettingsSize) |
Dump the node information in the stream to a string. More... | |
cvbres_t | NMStreamDumpW (NODEMAPSTREAM NodeMapStream, wchar_t *Settings, size_t &SettingsSize) |
Dump the node information in the stream to a string. More... | |
cvbbool_t(* TFNodeProc)(NODE Node, cvbres_t Reason, void *pPrivate) |
Callback function when several nodes are processed.
This callback is given as a parameter in node 'processing' functions. So far the load and save settings function use this callback for error reporting.
[in] | Node | Current node object. |
[in] | Reason | Reason why the error occurred (CVC error code). |
[in] | pPrivate | Pointer to user data given in the register function. |
enum TFirmwareUpdateInfo |
Defines commands to retrieve firmware information from a GUF file.
These commands define which kind of information is retrieved from a GUF file.
enum TNodeMapInfo |
Defines commands to retrieve information about a Node Map.
These commands define which kind of information is retrieved from a Node Map.
cvbres_t cvbGenApi::CreateFirmwareUpdater | ( | const char * | Filename, |
cvbbool_t | Verify, | ||
FWUPDATER & | Updater | ||
) |
Creates a firmware updater, Validates a guf file and sets the location of the guf file as C string.
[in] | Filename | Path and name of the guf file to be applied to the camera as C string. |
[in] | Verify | If true the guf file will be validated. |
[out] | Updater | Newly created firmware updater object. |
cvbres_t cvbGenApi::CreateFirmwareUpdaterW | ( | const wchar_t * | Filename, |
cvbbool_t | Verify, | ||
FWUPDATER & | Updater | ||
) |
Creates a firmware updater, Validates a guf file and sets the location of the guf file as wide string.
[in] | Filename | Path and name of the guf file to be applied to the camera as wide string. |
[in] | Verify | If true the guf file will be validated. |
[out] | Updater | Newly created firmware updater object. |
cvbres_t cvbGenApi::FWUpdate | ( | FWUPDATER | Updater, |
NODEMAP | NodeMap, | ||
const size_t | UpdateFileSelection, | ||
TFDeviceReset | Callback, | ||
void * | pPrivate | ||
) |
Runs the firmware update process for a device.
Double checks if the device can be updated by firmware update info. Can update another device after failure.
[in] | Updater | Handle to the updater object. |
[in] | NodeMap | CVB Node Map to access. |
[in] | UpdateFileSelection | Index of the update from a guf file to apply to the camera. |
[in] | Callback | Function pointer to function to be called on to reset the device, re-discover it and set the new node map. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t cvbGenApi::FWUpdateFileCount | ( | FWUPDATER | Updater, |
size_t & | FileCount | ||
) |
Gets the number of available update files in a guf file.
[in] | Updater | Firmware updater object. |
[in,out] | FileCount | Number of available firmware update files in guf. |
cvbres_t cvbGenApi::FWUpdateFileInfo | ( | FWUPDATER | Updater, |
size_t | FileIndex, | ||
size_t | InfoIndex, | ||
TFirmwareUpdateInfo | Cmd, | ||
char * | Info, | ||
size_t & | InfoSize | ||
) |
Identifies a single firmware update and gets information about the firmware update as C string.
[in] | Updater | Firmware updater object. |
[in] | FileIndex | Index of update file within guf file. |
[in] | InfoIndex | Index of the update info to use. |
[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 needed size if Info is NULL . |
cvbres_t cvbGenApi::FWUpdateFileInfoCount | ( | FWUPDATER | Updater, |
size_t | FileIndex, | ||
size_t & | InfoCount | ||
) |
Gets the number of available update infos in a guf file.
[in] | Updater | Firmware updater object. |
[in] | FileIndex | Index of update file within guf to read infos from. |
[in,out] | InfoCount | Number of available firmware update infos. |
cvbres_t cvbGenApi::FWUpdateFileInfoW | ( | FWUPDATER | Updater, |
size_t | FileIndex, | ||
size_t | InfoIndex, | ||
TFirmwareUpdateInfo | Cmd, | ||
wchar_t * | Info, | ||
size_t & | InfoSize | ||
) |
Identifies a single firmware update and gets information about the firmware update as wide string.
[in] | Updater | Firmware updater object. |
[in] | FileIndex | Index of update file within guf file. |
[in] | Cmd | Command to identify the information to be retrieved. |
[in] | InfoIndex | Index of the update info to use. |
[out] | Info | Wide 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 needed size if Info is NULL . |
cvbres_t GetGenApiVersion | ( | cvbval_t & | VersionMajor, |
cvbval_t & | VersionMinor, | ||
cvbval_t & | VersionSubMinor | ||
) |
Gets the version of the underlying GenICam GenApi.
[out] | VersionMajor | Major version number. |
[out] | VersionMinor | Minor version number. |
[out] | VersionSubMinor | Sub-minor version number. |
cvbbool_t IsNodeMap | ( | NODEMAP | NodeMap | ) |
Checks whether the given NodeMap handle is valid.
[in] | NodeMap | Handle to be checked. |
cvbres_t NMCreateStream | ( | NODEMAP | NodeMap, |
TStreamType | StreamType, | ||
NODEMAPSTREAM & | NodeMapStream | ||
) |
Create the node map stream form a given node map.
[in] | NodeMap | Node map to create the stream from. |
[in] | StreamType | The format to of the stream. |
[out] | NodeMapStream | New node map stream object. |
cvbres_t NMDownloadFile | ( | NODEMAP | NodeMap, |
const char * | FileSelectorEntryName, | ||
const char * | Filename | ||
) |
Downloads a file from the device which is present in the Std::FileSelector
and saves it do disk.
[in] | NodeMap | CVB NodeMap from which the file is downloaded. |
[in] | FileSelectorEntryName | File to download. |
[in] | Filename | Path to save FileSelectorEntryName to. |
cvbres_t NMDownloadFileMemory | ( | NODEMAP | NodeMap, |
const char * | FileSelectorEntryName, | ||
void * | pBuffer, | ||
size_t & | BufferSize | ||
) |
Downloads a file from the device which is present in the Std::FileSelector
and saves it do memory.
[in] | NodeMap | CVB NodeMap from which the file is downloaded. |
[in] | FileSelectorEntryName | File to download. |
[in] | pBuffer | Memory to write file to; NULL to query file size. |
[in,out] | BufferSize | The size of the pBuffer in bytes if pBuffer is not NULL and will receive number of bytes actually filled after successful operation; if pBuffer is NULL the minimal buffer size is written here. |
cvbres_t NMDownloadFileMemoryW | ( | NODEMAP | NodeMap, |
const wchar_t * | FileSelectorEntryName, | ||
void * | pBuffer, | ||
size_t & | BufferSize | ||
) |
Downloads a file from the device which is present in the Std::FileSelector
and saves it do memory.
[in] | NodeMap | CVB NodeMap from which the file is downloaded. |
[in] | FileSelectorEntryName | File to download. |
[in] | pBuffer | Memory to write file to; NULL to query file size. |
[in,out] | BufferSize | The size of the pBuffer in bytes if pBuffer is not NULL and will receive number of bytes actually filled after successful operation; if pBuffer is NULL the minimal buffer size is written here. |
cvbres_t NMDownloadFileW | ( | NODEMAP | NodeMap, |
const wchar_t * | FileSelectorEntryName, | ||
const wchar_t * | Filename | ||
) |
Downloads a file from the device which is present in the Std::FileSelector
and saves it do disk.
[in] | NodeMap | CVB NodeMap from which the file is downloaded. |
[in] | FileSelectorEntryName | File to download. |
[in] | Filename | Path to save FileSelectorEntryName to. |
Gets the Node object with the given NodeName.
If no namespace is given with the name (Cust or Standard separated with a double colon (::
) ), this function first tries to get the node from the Standard namespace. If it is not available it tries to get it from the Cust namespace. If the name can not be found either, an error is returned.
Only value types defined in TNodeType are supported.
Use ShareObject and ReleaseObject for lifetime management.
[in] | NodeMap | CVB Node Map to access. |
[in] | NodeName | Name of the node to retrieve. This string must be 0 terminated. |
[out] | Node | Reference to handle to receive the Node. |
Gets the Node object with the given NodeName.
If no namespace is given with the name (Cust or Standard separated with a double colon (::
) ), this function first tries to get the node from the Standard namespace. If it is not available it tries to get it from the Cust namespace. If the name can not be found either, an error is returned.
Only value types defined in TNodeType are supported.
Use ShareObject and ReleaseObject for lifetime management.
[in] | NodeMap | CVB Node Map to access. |
[in] | NodeName | Name of the node to retrieve. This string must be 0 terminated. |
[out] | Node | Reference to handle to receive the Node. |
cvbres_t NMInfoAsBoolean | ( | NODEMAP | NodeMap, |
TNodeMapInfo | Cmd, | ||
cvbbool_t & | Info | ||
) |
Gets information about the given NodeMap as a Boolean value.
If a requested information is not available as a Boolean the function returns an error.
[in] | NodeMap | CVB Node Map to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NMInfoAsFloat | ( | NODEMAP | NodeMap, |
TNodeMapInfo | Cmd, | ||
double & | Info | ||
) |
Gets information about the given NodeMap as a double value.
If a requested information is not available as a double the function returns an error.
[in] | NodeMap | CVB Node Map to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NMInfoAsInteger | ( | NODEMAP | NodeMap, |
TNodeMapInfo | Cmd, | ||
cvbint64_t & | Info | ||
) |
Gets information about the given NodeMap as a int64 value.
If a requested information is not available as an int64 the function returns an error.
[in] | NodeMap | CVB Node Map to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NMInfoAsString | ( | NODEMAP | NodeMap, |
TNodeMapInfo | Cmd, | ||
char * | Info, | ||
size_t & | InfoSize | ||
) |
Gets information about the given NodeMap as a C string value.
If a requested information is not available as a C string the function returns an error.
[in] | NodeMap | CVB NodeMap 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 needed size if Info is NULL . |
cvbres_t NMInfoAsStringW | ( | NODEMAP | NodeMap, |
TNodeMapInfo | Cmd, | ||
wchar_t * | Info, | ||
size_t & | InfoSize | ||
) |
Gets information about the given NodeMap as a wide C string value.
If a requested information is not available as a wide C string the function returns an error.
[in] | NodeMap | CVB NodeMap 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 needed size if Info is NULL . |
cvbres_t NMListNode | ( | NODEMAP | NodeMap, |
cvbdim_t | Index, | ||
char * | NodeName, | ||
size_t & | NodeNameSize | ||
) |
Gets the name of the Node at the given Index.
Use this function to inquire the names of available nodes. With the returned name the node can be acquired by calling NMGetNode.
All nodes in the NodeMap are listed. Even those which are not supported by this interface. You will get an error for these nodes.
[in] | NodeMap | CVB Node Map to access. |
[in] | Index | Index of node to access [0 ... NMNodeCount - 1]. |
[out] | NodeName | C string to be filled with name; NULL for size inquiry (see NodeNameSize). |
[in,out] | NodeNameSize | Gives the buffer size of NodeName or receives the needed size if NodeName is NULL . |
cvbres_t NMListNodeW | ( | NODEMAP | NodeMap, |
cvbdim_t | Index, | ||
wchar_t * | NodeName, | ||
size_t & | NodeNameSize | ||
) |
Gets the name of the Node at the given Index.
Use this function to inquire the names of available nodes. With the returned name the node can be acquired by calling NMGetNodeW.
All nodes in the NodeMap are listed. Even those which are not supported by this interface. You will get an error for these nodes.
[in] | NodeMap | CVB Node Map to access. |
[in] | Index | Index of node to access [0 ... NMNodeCount - 1]. |
[out] | NodeName | Wide C string to be filled with name; NULL for size inquiry (see NodeNameSize). |
[in,out] | NodeNameSize | Gives the buffer size of NodeName or receives the needed size if NodeName is NULL . |
cvbres_t NMLoadSet | ( | NODEMAP | NodeMap, |
const char * | Filename, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Loads the settings from the given Filename to the NodeMap.
The features are written in the order they appear in the given Filename and without software verification. If the device supports streaming also the device validation is disabled for the individual writes. After writing the settings the device will validate the values.
The device supports streaming if the following features are present:
Std::DeviceRegistersStreamingStart
Std::DeviceRegistersStreamingEnd
Std::DeviceRegistersCheck
Std::DeviceRegistersValid
If only a subset of the listed features are available only these are used.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap to write settings to. |
[in] | Filename | Filename of settings file to load. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMLoadSetEx | ( | NODEMAP | NodeMap, |
const char * | Filename, | ||
cvbbool_t | Validate, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Loads the settings from the given Filename to the NodeMap.
This function works like the NMLoadSet function except that software validation after writing to the device is performed if Validate is true. The settings in the Filename are compared against the settings in the device.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap to write settings to. |
[in] | Filename | Filename of settings file to load. |
[in] | Validate | true if software validation is to be done; false otherwise. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMLoadSetExW | ( | NODEMAP | NodeMap, |
const wchar_t * | Filename, | ||
cvbbool_t | Validate, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Loads the settings from the given Filename to the NodeMap.
This function works like the NMLoadSet function except that software validation after writing to the device is performed if Validate is true. The settings in the Filename are compared against the settings in the device.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap to write settings to. |
[in] | Filename | Filename of settings file to load. |
[in] | Validate | true if software validation is to be done; false otherwise. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMLoadSetString | ( | NODEMAP | NodeMap, |
const char * | Settings, | ||
cvbbool_t | Validate, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Loads the settings from the given Settings buffer to the NodeMap.
This function works like the NMLoadSet
function except that software validation after writing to the device is performed if Validate is true. The settings in the Filename are compared against the settings in the device.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap to write settings to. |
[in] | Settings | Pointer to Buffer of settings to load. |
[in] | Validate | true if software validation is to be done; false otherwise. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMLoadSetStringW | ( | NODEMAP | NodeMap, |
const wchar_t * | Settings, | ||
cvbbool_t | Validate, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Loads the settings from the given Settings buffer to the NodeMap.
This function works like the NMLoadSet
function except that software validation after writing to the device is performed if Validate is true. The settings in the Filename are compared against the settings in the device.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap to write settings to. |
[in] | Settings | Pointer to Buffer of settings to load. |
[in] | Validate | true if software validation is to be done; false otherwise. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMLoadSetW | ( | NODEMAP | NodeMap, |
const wchar_t * | Filename, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Loads the settings from the given Filename to the NodeMap.
The features are written in the order they appear in the given Filename and without software verification. If the device supports streaming also the device validation is disabled for the individual writes. After writing the settings the device will validate the values.
The device supports streaming if the following features are present:
Std::DeviceRegistersStreamingStart
Std::DeviceRegistersStreamingEnd
Std::DeviceRegistersCheck
Std::DeviceRegistersValid
If only a subset of the listed features are available only these are used.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap to write settings to. |
[in] | Filename | Filename of settings file to load. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMNodeCount | ( | NODEMAP | NodeMap, |
cvbdim_t & | NodeCount | ||
) |
Gets the number of nodes in the given NodeMap.
All nodes in the NodeMap are counted. Even those which are not supported by this interface. Use the NMListNode function to get the full name of a node for an index.
[in] | NodeMap | CVB Node Map to access. |
[out] | NodeCount | Number of nodes in the NodeMap. |
cvbres_t NMPollNodes | ( | NODEMAP | NodeMap, |
cvbval_t | DeltaMS | ||
) |
Polls all pollable nodes in the given NodeMap.
This function scans for pollable (auto-update) feature in the NodeMap and invalidates them if necessary.
[in] | NodeMap | CVB Node Map to access. |
[in] | DeltaMS | Time since last call of this function in milliseconds. |
cvbres_t NMSaveSet | ( | NODEMAP | NodeMap, |
const char * | Filename, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves all streamable features with values in the given NodeMap to the given Filename.
If Filename exists it is overwritten.
The streamable features must be readable and writable.
Streamable features are features for which the NInfoAsBoolean with the NI_Streamable command returns a non zero value.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[in] | Filename | Name of the file in which the settings are written. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetEx | ( | NODEMAP | NodeMap, |
const char * | Filename, | ||
const char * | NodeList, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves the features given in NodeList with values from the given NodeMap to the given Filename.
If Filename exists it is overwritten.
Feature names for the NodeList are separated by pipes (|). E.g. "Std::ExposureTimeAbs|Std::GainAbs"
saves both exposure time and gain settings.
The given features must be readable and writable.
This function can be used if the device vendor didn't provide streamable features or only a sub-set of features is needed.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[in] | Filename | Name of the file in which the settings are written. |
[in] | NodeList | Pipe (|) separated list of feature names to be saved. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetExW | ( | NODEMAP | NodeMap, |
const wchar_t * | Filename, | ||
const wchar_t * | NodeList, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves the features given in NodeList with values from the given NodeMap to the given Filename.
If Filename exists it is overwritten.
Feature names for the NodeList are separated by pipes (|). E.g. "Std::ExposureTimeAbs|Std::GainAbs"
saves both exposure time and gain settings.
The given features must be readable and writable.
This function can be used if the device vendor didn't provide streamable features or only a sub-set of features is needed.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[in] | Filename | Name of the file in which the settings are written. |
[in] | NodeList | Pipe (|) separated list of feature names to be saved. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetString | ( | NODEMAP | NodeMap, |
char * | Settings, | ||
size_t & | SettingsSize, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves all streamable features with values in the given NodeMap to the given Settings buffer.
The streamable features must be readable and writable.
Streamable features are features for which the NInfoAsBoolean with the NI_Streamable command returns a non zero value.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[out] | Settings | Pointer to buffer to be filled with settings document; NULL for size inquiry. |
[in,out] | SettingsSize | Size of Settings buffer; Number of bytes needed if Settings is NULL . |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetStringEx | ( | NODEMAP | NodeMap, |
char * | Settings, | ||
size_t & | SettingsSize, | ||
const char * | NodeList, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves the features given in NodeList with values from the given NodeMap to the given Settings buffer.
Feature names for the NodeList are separated by pipes (|). E.g. "Std::ExposureTimeAbs|Std::GainAbs"
saves both exposure time and gain settings.
The given features must be readable and writeable.
This function can be used if the device vendor didn't provide streamable features or only a sub-set of features is needed.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[out] | Settings | Pointer to buffer to be filled with settings document; NULL for size inquiry. |
[in,out] | SettingsSize | Size of Settings buffer; Number of bytes needed if Settings is NULL . |
[in] | NodeList | Pipe (|) separated list of feature names to be saved. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetStringExW | ( | NODEMAP | NodeMap, |
wchar_t * | Settings, | ||
size_t & | SettingsSize, | ||
const wchar_t * | NodeList, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves the features given in NodeList with values from the given NodeMap to the given Settings buffer.
Feature names for the NodeList are separated by pipes (|). E.g. "Std::ExposureTimeAbs|Std::GainAbs"
saves both exposure time and gain settings.
The given features must be readable and writeable.
This function can be used if the device vendor didn't provide streamable features or only a sub-set of features is needed.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[out] | Settings | Pointer to buffer to be filled with settings document; NULL for size inquiry. |
[in,out] | SettingsSize | Size of Settings buffer; Number of bytes needed if Settings is NULL . |
[in] | NodeList | Pipe (|) separated list of feature names to be saved. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetStringW | ( | NODEMAP | NodeMap, |
wchar_t * | Settings, | ||
size_t & | SettingsSize, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves all streamable features with values in the given NodeMap to the given Settings buffer.
The streamable features must be readable and writable.
Streamable features are features for which the NInfoAsBoolean with the NI_Streamable command returns a non zero value.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[out] | Settings | Pointer to buffer to be filled with settings document; NULL for size inquiry. |
[in,out] | SettingsSize | Size of Settings buffer; Number of bytes needed if Settings is NULL . |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMSaveSetW | ( | NODEMAP | NodeMap, |
const wchar_t * | Filename, | ||
TFNodeProc | Callback, | ||
void * | pPrivate | ||
) |
Saves all streamable features with values in the given NodeMap to the given Filename.
If Filename exists it is overwritten.
The streamable features must be readable and writable.
Streamable features are features for which the NInfoAsBoolean with the NI_Streamable command returns a non zero value.
The callback function, if given, is only called for recoverable errors. If a critical error occurs the function returns always without an additional call. If the operation is canceled the error code is returned by the function.
[in] | NodeMap | CVB NodeMap from which streamable features are to be saved. |
[in] | Filename | Name of the file in which the settings are written. |
[in] | Callback | Function pointer to function to be called on errors; NULL if not needed. |
[in] | pPrivate | Pointer to user data given in Callback. |
cvbres_t NMStreamDump | ( | NODEMAPSTREAM | NodeMapStream, |
char * | Settings, | ||
size_t & | SettingsSize | ||
) |
Dump the node information in the stream to a string.
[in] | NodeMapStream | Node map stream from which stream able features are to be saved. |
[in] | Settings | Pointer to buffer to be filled with settings; NULL for size inquiry. |
[in] | SettingsSize | Size of Settings buffer; Number of bytes needed if Settings is NULL . |
cvbres_t NMStreamDumpW | ( | NODEMAPSTREAM | NodeMapStream, |
wchar_t * | Settings, | ||
size_t & | SettingsSize | ||
) |
Dump the node information in the stream to a string.
[in] | NodeMapStream | Node map stream from which stream able features are to be saved. |
[in] | Settings | Pointer to buffer to be filled with settings; NULL for size inquiry. |
[in] | SettingsSize | Size of Settings buffer; Number of bytes needed if Settings is NULL . |
cvbres_t NMStreamPush | ( | NODEMAPSTREAM | NodeMapStream, |
NODE | Node | ||
) |
Update the node information such as display name, type of node and value of node.
[in] | NodeMapStream | Node map stream to hold the node information. |
[in] | Node | Node, that will be dumped to the stream. |
cvbres_t NMUploadFile | ( | NODEMAP | NodeMap, |
const char * | FileSelectorEntryName, | ||
const char * | Filename | ||
) |
Uploads a file to the device which is present in the Std::FileSelector
from disk.
[in] | NodeMap | CVB NodeMap to which the file is uploaded. |
[in] | FileSelectorEntryName | File to upload. |
[in] | Filename | Path to load FileSelectorEntryName from. |
cvbres_t NMUploadFileMemory | ( | NODEMAP | NodeMap, |
const char * | FileSelectorEntryName, | ||
const void * | pBuffer, | ||
size_t | BufferSize | ||
) |
Uploads a file to the device which is present in the Std::FileSelector
and loads it from memory.
[in] | NodeMap | CVB NodeMap to which the file is uploaded. |
[in] | FileSelectorEntryName | File to upload. |
[in] | pBuffer | Memory to read file from. |
[in] | BufferSize | The size of the pBuffer in bytes. |
cvbres_t NMUploadFileMemoryW | ( | NODEMAP | NodeMap, |
const wchar_t * | FileSelectorEntryName, | ||
const void * | pBuffer, | ||
size_t | BufferSize | ||
) |
Uploads a file to the device which is present in the Std::FileSelector
and loads it from memory.
[in] | NodeMap | CVB NodeMap to which the file is uploaded. |
[in] | FileSelectorEntryName | File to upload. |
[in] | pBuffer | Memory to read file from. |
[in] | BufferSize | The size of the pBuffer in bytes. |
cvbres_t NMUploadFileW | ( | NODEMAP | NodeMap, |
const wchar_t * | FileSelectorEntryName, | ||
const wchar_t * | Filename | ||
) |
Uploads a file to the device which is present in the Std::FileSelector
from disk.
[in] | NodeMap | CVB NodeMap to which the file is uploaded. |
[in] | FileSelectorEntryName | File to upload. |
[in] | Filename | Path to load FileSelectorEntryName from. |