Yate
|
A 32 bit length list of flags. More...
#include <yatecbase.h>
Public Member Functions | |
Flags32 () | |
Flags32 (u_int32_t value) | |
u_int32_t | flags () const |
void | set (u_int32_t mask) |
void | reset (u_int32_t mask) |
u_int32_t | flag (u_int32_t mask) const |
void | changeFlag (u_int32_t mask, bool on) |
bool | changeFlagCheck (u_int32_t mask, bool ok) |
void | change (u_int32_t value) |
operator u_int32_t () const | |
const Flags32 & | operator= (int value) |
Protected Attributes | |
u_int32_t | m_flags |
A 32 bit length list of flags.
This class keeps a 32bit length flag mask
|
inline |
Constructor
|
inline |
Constructor
value | Flags value |
|
inline |
Change flags
value | New flags value |
|
inline |
Set or reset flags
mask | Flag(s) |
on | True to set, false to reset |
References Flags32::reset(), and Flags32::set().
Referenced by Flags32::changeFlagCheck().
|
inline |
Set or reset flags, check if changed
mask | Flag(s) |
ok | True to set, false to reset |
References Flags32::changeFlag(), and Flags32::flag().
Referenced by ClientResource::setAudio(), and ClientResource::setFileTransfer().
|
inline |
Check if a mask of flags is set
mask | Flag(s) to check |
Referenced by Flags32::changeFlagCheck(), ClientContact::subscriptionFrom(), and ClientContact::subscriptionTo().
|
inline |
Retrieve flags value
|
inline |
Conversion to u_int32_t operator
|
inline |
Asignement from int operator
|
inline |
|
inline |