X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fcxx%2FQuantityFlag_methods.hpp;h=47e622fe1eaa2d663e7dae6e35f7792e3a274b89;hb=HEAD;hp=dfb3c1e8b3fef2e184d7453fa9b367896dc1b44c;hpb=84c870852af95aebf9c1c2fd3e30350b8c2c029a;p=libsigrok.git diff --git a/bindings/cxx/QuantityFlag_methods.hpp b/bindings/cxx/QuantityFlag_methods.hpp index dfb3c1e8..47e622fe 100644 --- a/bindings/cxx/QuantityFlag_methods.hpp +++ b/bindings/cxx/QuantityFlag_methods.hpp @@ -1,3 +1,7 @@ /** Get flags corresponding to a bitmask. */ - static vector + 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);