The IBitFlag class is the abstract base class for the bitwise styles and attributes used by window and control classes in the Open Class Library. Because this class in an abstract base class, you cannot create objects of this class.
Deriving Classes from IBitFlag
Typically, you can declare classes derived from IBitFlag by using the macros that accompany this class. Optionally, these macros let you do the following:
Macro Descriptions
You can use the following macros to declare classes derived from IBitFlag:
These constructors are protected because objects derived from this class should not be arbitrarily constructed. To provide type safety for window and control constructors, you can only specify the following:
![]() |
protected:
IBitFlag(const IBitFlag& bitFlag)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
protected:
IBitFlag()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
protected:
IBitFlag( unsigned long count, const unsigned long bitIndex [ ] )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use this member to set the value of the object.
![]() |
protected:
IBitFlag& setValue(const IBitFlag& bitFlag)
Assigns the bits of the passed in IBitFlag object to this object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to compare bitflag values.
![]() |
public:
bool operator !=(const IBitFlag& rhs) const
Returns true if the object and the IBitFlag object passed in are not equal.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool operator ==(const IBitFlag& rhs) const
Returns true if the object and the IBitFlag object passed in are equal.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
protected:
bool comparisonAnd(const IBitFlag& rhs) const
Returns true if the object and the IBitFlag object passed in have any bits set in common.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to provide diagnostic information.
![]() |
public:
IString asDebugInfo() const
Returns the bits set in the IBitFlag object as a series of bits.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IString asString() const
Returns the bits set in the IBitFlag object as a series of unsigned long integers.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these members to return the value of the object.
![]() |
public:
static unsigned long maxNumberOfBits()
Returns the maximum number of bits that can be stored in an IBitFlag object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
protected:
IBitFlag bitwiseAnd(const IBitFlag& rhs) const
Returns an IBitFlag object that is the bitwise And of the object and the rhs argument.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
protected:
IBitFlag bitwiseOr(const IBitFlag& rhs) const
Returns an IBitFlag object that is the bitwise Or of the object and the rhs argument.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
protected:
IBitFlag negate() const
Returns an IBitFlag object that is the ones complement of the object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |