|
|
| GeneralOptions (const GeneralOptions &other)=default |
| |
|
GeneralOptions & | operator= (const GeneralOptions &other)=default |
| |
|
| GeneralOptions (GeneralOptions &&other) noexcept=default |
| |
|
GeneralOptions & | operator= (GeneralOptions &&other) noexcept=default |
| |
| bool | has (const std::string &key) const |
| | Check if a key is present.
|
| |
| iolink::DataType | dtype (const std::string &key) const |
| | Get the option data type.
|
| |
| size_t | count (const std::string &key) const |
| | Get the number of values associated with a key.
|
| |
| void | remove (const std::string &key) |
| | Remove a key from the option map.
|
| |
| bool | getBool (const std::string &key) const |
| | Get a boolean value.
|
| |
| const std::string & | getString (const std::string &key) const |
| | Get a string value.
|
| |
| const int64_t * | getIntPtr (const std::string &key) const |
| | Get a pointer to the integer array first value.
|
| |
| int64_t | getInt (const std::string &key, size_t index) const |
| | Get the integer value at a given index.
|
| |
| int64_t | getInt (const std::string &key) const |
| | Get an integer value.
|
| |
| const double * | getFloatPtr (const std::string &key) const |
| | Get a pointer to the float array first value.
|
| |
| double | getFloat (const std::string &key, size_t index) const |
| | Get the float value at the given index.
|
| |
| double | getFloat (const std::string &key) const |
| | Get a float value.
|
| |
| void | setBool (const std::string &key, bool value) |
| | Associate a boolean value with a specific key.
|
| |
| void | setString (const std::string &key, const std::string &value) |
| | Associate a string value with a specific key.
|
| |
| void | setInt (const std::string &key, const int64_t *values, size_t count) |
| | Associate an integer array with a specific key.
|
| |
| void | setInt (const std::string &key, int64_t value) |
| | Associate an integer value with a specific key.
|
| |
| void | setFloat (const std::string &key, const double *values, size_t count) |
| | Associate a float array with a specific key.
|
| |
| void | setFloat (const std::string &key, double value) |
| | Associate a float value with a specific key.
|
| |
| OptionMap | select (const std::string &plugin, const std::string &format) const |
| | Select a subset of options.
|
| |
|
| OptionMap (const OptionMap &other) |
| |
|
OptionMap & | operator= (const OptionMap &other) |
| |
|
| OptionMap (OptionMap &&other) noexcept |
| |
|
OptionMap & | operator= (OptionMap &&other) noexcept |
| |
|
size_t | size () const |
| | Get the number of element in the option map.
|
| |
|
bool | empty () const |
| | Check if the option map is empty.
|
| |
| bool | has (const std::string &key) const |
| | Check if a key is present.
|
| |
| iolink::DataType | dtype (const std::string &key) const |
| | Get the option data type.
|
| |
| size_t | count (const std::string &key) const |
| | Get the number of values associated with a key.
|
| |
| void | remove (const std::string &key) |
| | Remove a key from the option map.
|
| |
|
std::string | toString () const |
| | Get a string representation of the option map.
|
| |
| bool | getBool (const std::string &key) const |
| | Get a boolean value.
|
| |
| const std::string & | getString (const std::string &key) const |
| | Get a string value.
|
| |
| const int64_t * | getIntPtr (const std::string &key) const |
| | Get a pointer to the integer array first value.
|
| |
| int64_t | getInt (const std::string &key, size_t index) const |
| | Get the integer value at a given index.
|
| |
| int64_t | getInt (const std::string &key) const |
| | Get an integer value.
|
| |
| const double * | getFloatPtr (const std::string &key) const |
| | Get a pointer to the float array first value.
|
| |
| double | getFloat (const std::string &key, size_t index) const |
| | Get the float value at the given index.
|
| |
| double | getFloat (const std::string &key) const |
| | Get a float value.
|
| |
| void | setBool (const std::string &key, bool value) |
| | Associate a boolean value with a specific key.
|
| |
| void | setString (const std::string &key, const std::string &value) |
| | Associate a string value with a specific key.
|
| |
| void | setInt (const std::string &key, const int64_t *values, size_t count) |
| | Associate an integer array with a specific key.
|
| |
| void | setInt (const std::string &key, int64_t value) |
| | Associate an integer value with a specific key.
|
| |
| void | setFloat (const std::string &key, const double *values, size_t count) |
| | Associate a float array with a specific key.
|
| |
| void | setFloat (const std::string &key, double value) |
| | Associate a float value with a specific key.
|
| |
|
iterator | begin () const |
| | Get an iterator on the beginning of the option map.
|
| |
|
iterator | end () const |
| | Get an iterator on the end of the option map.
|
| |
A collection of general options.
This class behaves in a way similar to OptionMap, but it does some processing on the keys to allow for a more flexible use of the options.
The keys are formatted as a three part string: "plugin:format:option". You can use special values for the first two parts:
- "all" to match any plugin
- "ANY" to match any format/protocol For example, the key "all:TIFF:compression" will match any option that is specific to the TIFF format, regardless of the plugin. And the key "all:ANY:compression" will match any option that is related to the compression, regardless of the format or the plugin.
The first segment can be ommited, in which case it will be considered as "all". the first and second segments can be ommited, in which case they will be considered as "all" and "ANY" respectively. For example the option key, "compression" is equivalent to "all:ANY:compression" and ANY:compression".
Plus, the "TIFF:compression" key is equivalent to "all:TIFF:compression".