def toString(cls): s = [] flags = _libsmi.smiGetFlags() for flag, name in cls.stringmap.items(): if flags & flag: s.append(name) if s: return ", ".join(s) else: return ""
def test(flag): flags = _libsmi.smiGetFlags() return flags & flag & SMI_FLAG_MASK
def clear(flag): flags = _libsmi.smiGetFlags() flags &= ~(flag & SMI_FLAG_MASK) _libsmi.smiSetFlags(flags)
def set(flag): flags = _libsmi.smiGetFlags() flags |= (flag & SMI_FLAG_MASK) _libsmi.smiSetFlags(flags)
def get_flags(): flags = _libsmi.smiGetFlags() return flags
def smiGetFlags() -> "int" : return _libsmi.smiGetFlags()
def smiGetFlags() -> "int": return _libsmi.smiGetFlags()