Imaging Control 4 C++ Library 1.2.0
|
Represents the property interface of a component, usually a video capture device. More...
Public Member Functions | |
PropertyMap ()=default | |
Creates an invalid property map. | |
bool | is_valid () const noexcept |
Checks whether this property map is a valid object. | |
Property | operator[] (const char *prop_name) const |
Finds the property with a specified name in the property map. | |
Property | operator[] (const std::string &prop_name) const |
Finds the property with a specified name in the property map. | |
PropInteger | operator[] (const PropId::PropIdInteger &integer_id) const |
Finds the integer property specified by the given property id in the property map. | |
PropFloat | operator[] (const PropId::PropIdFloat &float_id) const |
Finds the float property specified by the given property id in the property map. | |
PropCommand | operator[] (const PropId::PropIdCommand &command_id) const |
Finds the command property specified by the given property id in the property map. | |
PropEnumeration | operator[] (const PropId::PropIdEnumeration &enumeration_id) const |
Finds the enumeration property specified by the given property id in the property map. | |
PropBoolean | operator[] (const PropId::PropIdBoolean &boolean_id) const |
Finds the boolean property specified by the given property id in the property map. | |
PropString | operator[] (const PropId::PropIdString &string_id) const |
Finds the string property specified by the given property id in the property map. | |
PropRegister | operator[] (const PropId::PropIdRegister ®ister_id) const |
Finds the register property specified by the given property id in the property map. | |
std::vector< Property > | all (Error &err=Error::Default()) const |
Returns a list of all properties reachable from the property map's "Root" category. | |
bool | executeCommand (const char *cmd_name, Error &err=Error::Default()) |
Executes a command with a known name. | |
bool | executeCommand (const std::string &cmd_name, Error &err=Error::Default()) |
Executes a command with a known name. | |
bool | executeCommand (const PropId::PropIdCommand &command_id, Error &err=Error::Default()) |
Executes a command with a specified identifier. | |
bool | setValue (const char *integer_name, int64_t value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed integer value. | |
bool | setValue (const std::string &integer_name, int64_t value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed integer value. | |
bool | setValue (const PropId::PropIdInteger &integer_id, int64_t value, Error &err=Error::Default()) |
Set the value of an integer property with specified identifier to the passed integer value. | |
bool | setValue (const char *float_name, double value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed double value. | |
bool | setValue (const std::string &float_name, double value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed double value. | |
bool | setValue (const PropId::PropIdFloat &float_id, double value, Error &err=Error::Default()) |
Set the value of a float property with specified identifier to the passed double value. | |
bool | setValue (const char *boolean_name, bool value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed bool value. | |
bool | setValue (const std::string &boolean_name, bool value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed bool value. | |
bool | setValue (const PropId::PropIdBoolean &boolean_id, bool value, Error &err=Error::Default()) |
Set the value of a boolean property with specified identifier to the passed bool value. | |
bool | setValue (const PropId::PropIdEnumeration &enumeration_id, bool value, Error &err=Error::Default()) |
Selects an entry in the enumeration property with specified identifier matching the passed bool value. | |
bool | setValue (const char *string_name, const char *value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed string value. | |
bool | setValue (const std::string &string_name, const std::string &value, Error &err=Error::Default()) |
Set the value of a property with a known name to the passed string value. | |
bool | setValue (const PropId::PropIdString &string_id, const char *value, Error &err=Error::Default()) |
Set the value of a string property with a specified identifier to the passed string value. | |
bool | setValue (const PropId::PropIdEnumeration &enumeration_id, const char *value, Error &err=Error::Default()) |
Set the value of an enumeration property with a specified identifier to the passed string value. | |
bool | setValue (const PropId::PropIdBoolean &boolean_id, const char *value, Error &err=Error::Default()) |
Set the value of a boolean property with a specified identifier to the passed string value. | |
int64_t | getValueInt64 (const char *prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as an integer. | |
double | getValueDouble (const char *prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as a double. | |
bool | getValueBool (const char *prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as a bool. | |
std::string | getValueString (const char *prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as a string. | |
int64_t | getValueInt64 (const std::string &prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as an integer. | |
double | getValueDouble (const std::string &prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as a double. | |
bool | getValueBool (const std::string &prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as a bool. | |
std::string | getValueString (const std::string &prop_name, Error &err=Error::Default()) const |
Get the value of a property with a known name interpreted as a string. | |
int64_t | getValueInt64 (const PropId::PropIdInteger &integer_id, Error &err=Error::Default()) const |
Get the value of an integer property with a known name. | |
int64_t | getValueInt64 (const PropId::PropIdBoolean &boolean_id, Error &err=Error::Default()) const |
Get the value of a boolean property with a known name interpreted as an integer. | |
double | getValueDouble (const PropId::PropIdFloat &float_id, Error &err=Error::Default()) const |
Get the value of a float property with a known name. | |
double | getValueDouble (const PropId::PropIdInteger &integer_id, Error &err=Error::Default()) const |
Get the value of an integer property with a known name interpreted as a double. | |
bool | getValueBool (const PropId::PropIdBoolean &boolean_id, Error &err=Error::Default()) const |
Get the value of a boolean property with a known name. | |
bool | getValueBool (const PropId::PropIdEnumeration &enumeration_id, Error &err=Error::Default()) const |
Get the value of an enumeration property with a known name interpreted as bool. | |
std::string | getValueString (const PropId::PropIdString &string_id, Error &err=Error::Default()) const |
Get the value of a string property with a known name. | |
std::string | getValueString (const PropId::PropIdEnumeration &enumeration_id, Error &err=Error::Default()) const |
Get the value of an enumeration property with a known name. | |
std::string | getValueString (const PropId::PropIdBoolean &boolean_id, Error &err=Error::Default()) const |
Get a string representation of the value of a boolean property with a known name. | |
std::string | getValueString (const PropId::PropIdInteger &integer_id, Error &err=Error::Default()) const |
Get a string representation of the value of an integer property with a known name. | |
std::string | getValueString (const PropId::PropIdFloat &float_id, Error &err=Error::Default()) const |
Get a string representation of the value of a float property with a known name. | |
Property | find (const char *prop_name, Error &err=Error::Default()) const |
Finds the property with a specified name in the property map. | |
Property | find (const std::string &prop_name, Error &err=Error::Default()) const |
Finds the property with a specified name in the property map. | |
PropCommand | find (const PropId::PropIdCommand &command_id, Error &err=Error::Default()) const |
Finds the command property with a specified identifier in the property map. | |
PropCommand | findCommand (const std::string &command_name, Error &err=Error::Default()) const |
Finds the command property with a specified name in the property map. | |
PropCommand | findCommand (const char *command_name, Error &err=Error::Default()) const |
Finds the command property with a specified name in the property map. | |
PropInteger | find (const PropId::PropIdInteger &integer_id, Error &err=Error::Default()) const |
Finds the integer property with a specified identifier in the property map. | |
PropInteger | findInteger (const std::string &integer_name, Error &err=Error::Default()) const |
Finds the integer property with a specified name in the property map. | |
PropInteger | findInteger (const char *integer_name, Error &err=Error::Default()) const |
Finds the integer property with a specified name in the property map. | |
PropFloat | find (const PropId::PropIdFloat &float_id, Error &err=Error::Default()) const |
Finds the float property with a specified identifier in the property map. | |
PropFloat | findFloat (const std::string &float_name, Error &err=Error::Default()) const |
Finds the float property with a specified name in the property map. | |
PropFloat | findFloat (const char *float_name, Error &err=Error::Default()) const |
Finds the float property with a specified name in the property map. | |
PropBoolean | find (const PropId::PropIdBoolean &boolean_id, Error &err=Error::Default()) const |
Finds the boolean property with a specified identifier in the property map. | |
PropBoolean | findBoolean (const std::string &boolean_name, Error &err=Error::Default()) const |
Finds the boolean property with a specified name in the property map. | |
PropBoolean | findBoolean (const char *boolean_name, Error &err=Error::Default()) const |
Finds the boolean property with a specified name in the property map. | |
PropString | find (const PropId::PropIdString &string_id, Error &err=Error::Default()) const |
Finds the string property with a specified identifier in the property map. | |
PropString | findString (const std::string &string_name, Error &err=Error::Default()) const |
Finds the string property with a specified name in the property map. | |
PropString | findString (const char *string_name, Error &err=Error::Default()) const |
Finds the string property with a specified name in the property map. | |
PropEnumeration | find (const PropId::PropIdEnumeration &enumeration_id, Error &err=Error::Default()) const |
Finds the enumeration property with a specified identifier in the property map. | |
PropEnumeration | findEnumeration (const std::string &enumeration_name, Error &err=Error::Default()) const |
Finds the enumeration property with a specified name in the property map. | |
PropEnumeration | findEnumeration (const char *enumeration_name, Error &err=Error::Default()) const |
Finds the enumeration property with a specified name in the property map. | |
PropRegister | find (const PropId::PropIdRegister ®ister_id, Error &err=Error::Default()) const |
Finds the register property with a specified identifier in the property map. | |
PropRegister | findRegister (const std::string ®ister_name, Error &err=Error::Default()) const |
Finds the register property with a specified name in the property map. | |
PropRegister | findRegister (const char *register_name, Error &err=Error::Default()) const |
Finds the register property with a specified name in the property map. | |
PropCategory | findCategory (const std::string &category_name, Error &err=Error::Default()) const |
Finds the category property with a specified name in the property map. | |
PropCategory | findCategory (const char *category_name, Error &err=Error::Default()) const |
Finds the category property with a specified name in the property map. | |
bool | connectChunkData (const std::shared_ptr< ic4::ImageBuffer > &image_buffer, Error &err=Error::Default()) |
Enables the use of the chunk data in the passed ImageBuffer as a backend for chunk properties in the property map. | |
bool | serialize (std::vector< uint8_t > &buffer, Error &err=Error::Default()) const |
Saves the state of the properties in this property map in a memory buffer. | |
bool | serialize (const std::string &file_path, Error &err=Error::Default()) const |
Saves the state of the properties in this property map into a file. | |
bool | deSerialize (const std::vector< uint8_t > &buffer, Error &err=Error::Default()) |
Restores the state of the properties in this property map from a memory buffer containing data that was previously written by PropertyMap::serialize(). | |
bool | deSerialize (const std::string &file_path, Error &err=Error::Default()) |
Restores the state of the properties in this property map from a file that was previously written by PropertyMap::serialize(). | |
Represents the property interface of a component, usually a video capture device.
A property map offers quick access to known properties as well as functions to enumerate all features through the category tree.
There is a plethora of overloaded functions to access properties with a known name and type. For example, to find a known integer property, use:
To find a property with a known name, but unknown type, use one of the untyped functions:
Property values for known properties can also be set directly, for example by calling:
Additionally, property values for known properties can be queried directly, for example by calling:
To get a flat list of all properties in the property map's category tree, call PropertyMap::all().
The current values of all properties in a property map can be saved to a file or a memory buffer using PropertyMap::serialize(). To restore the settings at a later time, call PropertyMap::deSerialize().
An image buffer containing chunk data can be connected to a property map using PropertyMap::connectChunkData(). Doing so lets the property map uses the image buffer as the data source for chunk property read operations.
PropertyMap instances are created by their respective component when queried, for example by calling Grabber::devicePropertyMap() or VideoWriter::propertyMap().
When a function creating a property map fails, or the default constructor is used, an invalid object is created. For invalid objects, PropertyMap::is_valid() will return false, and all other member functions will fail.
PropertyMap objects are copyable.
|
inline |
Returns a list of all properties reachable from the property map's "Root" category.
[out] | err | Reference to an error handler. See Error Handling for details. |
std::vector
containing all properties in the property map.
|
inline |
Enables the use of the chunk data in the passed ImageBuffer as a backend for chunk properties in the property map.
[in] | image_buffer | An image buffer with chunk data. This parameter may be nullptr to disconnect the previously connected buffer. |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.nullptr
is passed in the image_buffer argument.
|
inline |
Restores the state of the properties in this property map from a file that was previously written by PropertyMap::serialize().
[in] | file_path | Path to a file containing the serialized property data |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Restores the state of the properties in this property map from a memory buffer containing data that was previously written by PropertyMap::serialize().
[in] | buffer | A std::vector containing the serialized property data |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Executes a command with a known name.
[in] | cmd_name | Name of a command property in this property map |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Executes a command with a specified identifier.
[in] | command_id | Identifier of a command property in this property map |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Executes a command with a known name.
[in] | cmd_name | Name of a command property in this property map |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Finds the property with a specified name in the property map.
[in] | prop_name | The name of the property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the boolean property with a specified identifier in the property map.
[in] | boolean_id | The identifier of the boolean property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the command property with a specified identifier in the property map.
[in] | command_id | The identifier of the command property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the enumeration property with a specified identifier in the property map.
[in] | enumeration_id | The identifier of the enumeration property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the float property with a specified identifier in the property map.
[in] | float_id | The identifier of the float property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the integer property with a specified identifier in the property map.
[in] | integer_id | The identifier of the integer property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the register property with a specified identifier in the property map.
[in] | register_id | The identifier of the register property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the string property with a specified identifier in the property map.
[in] | string_id | The identifier of the string property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the property with a specified name in the property map.
[in] | prop_name | The name of the property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the boolean property with a specified name in the property map.
[in] | boolean_name | The name of the boolean property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the boolean property with a specified name in the property map.
[in] | boolean_name | The name of the boolean property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the category property with a specified name in the property map.
[in] | category_name | The name of the category property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the category property with a specified name in the property map.
[in] | category_name | The name of the category property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the command property with a specified name in the property map.
[in] | command_name | The name of the command property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the command property with a specified name in the property map.
[in] | command_name | The name of the command property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the enumeration property with a specified name in the property map.
[in] | enumeration_name | The name of the enumeration property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the enumeration property with a specified name in the property map.
[in] | enumeration_name | The name of the enumeration property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the float property with a specified name in the property map.
[in] | float_name | The name of the float property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the float property with a specified name in the property map.
[in] | float_name | The name of the float property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the integer property with a specified name in the property map.
[in] | integer_name | The name of the integer property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the integer property with a specified name in the property map.
[in] | integer_name | The name of the integer property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the register property with a specified name in the property map.
[in] | register_name | The name of the register property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the register property with a specified name in the property map.
[in] | register_name | The name of the register property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the string property with a specified name in the property map.
[in] | string_name | The name of the string property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Finds the string property with a specified name in the property map.
[in] | string_name | The name of the string property to find |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as a bool.
The behavior depends on the type of the property:
true
or false
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a boolean property with a known name.
[in] | boolean_id | Id of a boolean property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of an enumeration property with a known name interpreted as bool.
A boolean value is returned if the name of the currently selected entry unambiguously suggests to represent true
or false
.
[in] | enumeration_id | Id of an enumeration property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as a bool.
The behavior depends on the type of the property:
true
or false
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as a double.
The behavior depends on the type of the property:
double
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a float property with a known name.
[in] | float_id | Id of a float property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of an integer property with a known name interpreted as a double.
[in] | integer_id | Id of an integer property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as a double.
The behavior depends on the type of the property:
double
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as an integer.
The behavior depends on the type of the property:
1
or 0
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a boolean property with a known name interpreted as an integer.
The value returned is 1
or 0
.
[in] | boolean_id | Id of a boolean property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of an integer property with a known name.
[in] | integer_id | Id of an integer property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as an integer.
The behavior depends on the type of the property:
1
or 0
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as a string.
The behavior depends on the type of the property:
"true"
or "false"
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get a string representation of the value of a boolean property with a known name.
The returned string is either "true"
or "false"
.
[in] | boolean_id | Id of a boolean property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of an enumeration property with a known name.
[in] | enumeration_id | Id of an enumeration property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get a string representation of the value of a float property with a known name.
[in] | float_id | Id of a float property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get a string representation of the value of an integer property with a known name.
[in] | integer_id | Id of an integer property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a string property with a known name.
[in] | string_id | Id of a string property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inline |
Get the value of a property with a known name interpreted as a string.
The behavior depends on the type of the property:
"true"
or "false"
.[in] | prop_name | Name of a property inside map |
[out] | err | Reference to an error handler. See Error Handling for details. |
|
inlinenoexcept |
Checks whether this property map is a valid object.
If there is an error in the function creating this property map and function was not configured to throw on error, or the default constructor is used, an invalid object is created. All member function calls will fail.
true
, if this property object was constructed successfully, otherwise false
.
|
inline |
Finds the property with a specified name in the property map.
[in] | prop_name | The name of the property to find |
|
inline |
Finds the boolean property specified by the given property id in the property map.
[in] | boolean_id | Identifier of the property to find |
|
inline |
Finds the command property specified by the given property id in the property map.
[in] | command_id | Identifier of the property to find |
|
inline |
Finds the enumeration property specified by the given property id in the property map.
[in] | enumeration_id | Identifier of the property to find |
|
inline |
Finds the float property specified by the given property id in the property map.
[in] | float_id | Identifier of the property to find |
|
inline |
Finds the integer property specified by the given property id in the property map.
[in] | integer_id | Identifier of the property to find |
|
inline |
Finds the register property specified by the given property id in the property map.
[in] | register_id | Identifier of the property to find |
|
inline |
Finds the string property specified by the given property id in the property map.
[in] | string_id | Identifier of the property to find |
|
inline |
Finds the property with a specified name in the property map.
[in] | prop_name | The name of the property to find |
|
inline |
Saves the state of the properties in this property map into a file.
[in] | file_path | A path to a file that the property state is written to |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Saves the state of the properties in this property map in a memory buffer.
[out] | buffer | A reference to a std::vector to receive the serialized property data |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed bool value.
The behavior depends on the type of the property:
true
or false
, if available.true
.[in] | boolean_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed double value.
The behavior depends on the type of the property:
[in] | float_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed integer value.
The behavior depends on the type of the property:
1
or 0
, it is set to true
or false
respectively. Other values result in an error."PixelFormat"
.1
.[in] | integer_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed string value.
The behavior depends on the type of the property:
true
or false
."1"
, "true"
or "execute"
.[in] | string_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a boolean property with specified identifier to the passed bool value.
[in] | boolean_id | Identifier of a boolean property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a boolean property with a specified identifier to the passed string value.
The value is set if the string can be unambiguously identified to represent true
or false
.
boolean_id | Identifier of a boolean property in this property map |
value | New value to be set |
err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Selects an entry in the enumeration property with specified identifier matching the passed bool value.
An entry is only selected if there is an entry with a name that unambiguously suggests to represent true
or false
.
enumeration_id | Identifier of an enumeration property in this property map |
value | New value to be set |
err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of an enumeration property with a specified identifier to the passed string value.
The entry with a name matching the passed value is selected.
[in] | enumeration_id | Identifier of an enumeration property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a float property with specified identifier to the passed double value.
[in] | float_id | Identifier of a float property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of an integer property with specified identifier to the passed integer value.
[in] | integer_id | Identifier of an integer property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a string property with a specified identifier to the passed string value.
[in] | string_id | Identifier of a string property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed bool value.
The behavior depends on the type of the property:
true
or false
, if available.true
.[in] | boolean_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed double value.
The behavior depends on the type of the property:
[in] | float_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed integer value.
The behavior depends on the type of the property:
1
or 0
, it is set to true
or false
respectively. Other values result in an error."PixelFormat"
.1
.[in] | integer_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.
|
inline |
Set the value of a property with a known name to the passed string value.
The behavior depends on the type of the property:
true
or false
."1"
, "true"
or "execute"
.[in] | string_name | Name of a property in this property map |
[in] | value | New value to be set |
[out] | err | Reference to an error handler. See Error Handling for details. |
true
on success, otherwise false
.