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