![]() |
Imaging Control 4 C Library 1.4.0
|
String properties represent features whole value is a text. More...
Functions | |
| bool | ic4_prop_string_get_value (struct IC4_PROPERTY *prop, char *buffer, size_t *buffer_size) |
| Reads the current value of a string property. | |
| bool | ic4_prop_string_set_value (struct IC4_PROPERTY *prop, const char *buffer, size_t buffer_size) |
| Changes the value of a string property. | |
| bool | ic4_prop_string_get_max_len (struct IC4_PROPERTY *prop, uint64_t *pMaxLength) |
| Returns the maximum length of the string that can be stored in this property. | |
String properties represent features whole value is a text.
The maximum length of the text is indicated by ic4_prop_string_get_max_len().
| bool ic4_prop_string_get_max_len | ( | struct IC4_PROPERTY * | prop, |
| uint64_t * | pMaxLength | ||
| ) |
Returns the maximum length of the string that can be stored in this property.
| [in] | prop | A string property |
| [out] | pMaxLength | Pointer to an integer to receive the maximum length of the string value of this property |
true on success, otherwise false.prop is not a string property, the function fails and the error value is set to IC4_ERROR_GENICAM_TYPE_MISMATCH. | bool ic4_prop_string_get_value | ( | struct IC4_PROPERTY * | prop, |
| char * | buffer, | ||
| size_t * | buffer_size | ||
| ) |
Reads the current value of a string property.
| [in] | prop | A string property |
| [out] | buffer | Pointer to a character array to receive the string value. This parameter can be NULL to find out the required space without allocating an initial array. |
| [in,out] | buffer_size | Pointer to a size_t describing the length of the array pointed to by buffer.The function always writes the actual number of characters required to store the string representation. |
true on success, otherwise false.prop is not a string property, the function fails and the error value is set to IC4_ERROR_GENICAM_TYPE_MISMATCH. buffer is not NULL, and *buffer_size is less than the length of the value of this property, the function fails and the error value is set to IC4_ERROR_BUFFER_TOO_SMALL. | bool ic4_prop_string_set_value | ( | struct IC4_PROPERTY * | prop, |
| const char * | buffer, | ||
| size_t | buffer_size | ||
| ) |
Changes the value of a string property.
| [in] | prop | A string property |
| [in] | buffer | Pointer to a buffer containing the new string value |
| [in] | buffer_size | Length of buffer.If 0, interpret buffer as a null-terminated string. |
true on success, otherwise false.prop is not a string property, the function fails and the error value is set to IC4_ERROR_GENICAM_TYPE_MISMATCH.