#include "CtrlPropCommon.h" VectorMap BidirProps(Ctrl& c) { VectorMap is; Value vs; Props::Get(c, "listset", vs); if(!vs.Is()) return is; ValueArray vas = vs; for(int i = 0; i < vas.GetCount(); i++) { int& m = is.GetAdd(vas.Get(i), 0); m |= 1; } Value vg; Props::Get(c, "listget", vg); if(!vg.Is()) return is; ValueArray vag = vg; for(int i = 0; i < vag.GetCount(); i++) { int& m = is.GetAdd(vag.Get(i), 0); m |= 2; } return is; }