X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fcxx%2FQuantityFlag_methods.hpp;h=47e622fe1eaa2d663e7dae6e35f7792e3a274b89;hb=HEAD;hp=4bbe48db11397c3302865e71249cd0229850f8b6;hpb=c23c8659b8f8c4ca60bf59f6afd12bde7a0b2383;p=libsigrok.git diff --git a/bindings/cxx/QuantityFlag_methods.hpp b/bindings/cxx/QuantityFlag_methods.hpp index 4bbe48db..47e622fe 100644 --- a/bindings/cxx/QuantityFlag_methods.hpp +++ b/bindings/cxx/QuantityFlag_methods.hpp @@ -1,2 +1,7 @@ - static vector + /** Get flags corresponding to a bitmask. */ + static std::vector flags_from_mask(unsigned int mask); + + /** Get bitmask corresponding to a set of flags. */ + static unsigned int mask_from_flags( + std::vector flags);