]> sigrok.org Git - libsigrok.git/blob - bindings/cxx/ConfigKey_methods.hpp
C++ binding: Allow to re-use ConfigKey::parse_string() for Option class
[libsigrok.git] / bindings / cxx / ConfigKey_methods.hpp
1     /** Data type used for this configuration key. */
2     const DataType *data_type() const;
3     /** String identifier for this configuration key, suitable for CLI use. */
4     string identifier() const;
5     /** Description of this configuration key. */
6     string description() const;
7     /** Get configuration key by string identifier. */
8     static const ConfigKey *get_by_identifier(string identifier);
9     /** Parse a string argument into the appropriate type for this key. */
10     static Glib::VariantBase parse_string(string value, enum sr_datatype dt);
11     Glib::VariantBase parse_string(string value) const;