ZipArchiveLib::CBitFlag Struct Reference

#include <BitFlag.h>

List of all members.

Public Member Functions

 CBitFlag (int value)
 CBitFlag ()
void Change (int flags, bool set)
bool ChangeWithCheck (int flags, bool set)
void Clear (int flags)
bool ClearWithCheck (int flags)
bool IsSetAll (int flags) const
bool IsSetAny (int flags) const
 operator int () const
CBitFlagoperator= (const CBitFlag &flag)
bool operator== (const CBitFlag &flag)
bool operator== (int value)
void Set (int flags)
bool SetWithCheck (int flags)

Public Attributes

int m_value


Detailed Description

Provides functionality for bit operations on an integer value.

Definition at line 33 of file BitFlag.h.


Constructor & Destructor Documentation

ZipArchiveLib::CBitFlag::CBitFlag (  )  [inline]

Initializes a new instance of the CBitFlag class.

Definition at line 45 of file BitFlag.h.

ZipArchiveLib::CBitFlag::CBitFlag ( int  value  )  [inline]

Initializes a new instance of the CBitFlag class.

Parameters:
value The initial value.

Definition at line 56 of file BitFlag.h.


Member Function Documentation

void ZipArchiveLib::CBitFlag::Change ( int  flags,
bool  set 
) [inline]

Changes the given flags.

Parameters:
flags The flags to change.
set If true, the flags will be set; otherwise the flags will be cleared.

Definition at line 178 of file BitFlag.h.

bool ZipArchiveLib::CBitFlag::ChangeWithCheck ( int  flags,
bool  set 
) [inline]

Changes the given flags and examines if this caused a modification to the current object.

Parameters:
flags The flags to change.
set If true, the flags will be set; otherwise the flags will be cleared.
Returns:
true, if the operation caused a modification; false otherwise.

Definition at line 164 of file BitFlag.h.

void ZipArchiveLib::CBitFlag::Clear ( int  flags  )  [inline]

Clears the given flags.

Parameters:
flags The flags to clear.

Definition at line 78 of file BitFlag.h.

bool ZipArchiveLib::CBitFlag::ClearWithCheck ( int  flags  )  [inline]

Clears the given flags and examines if this caused a modification to the current object.

Parameters:
flags The flags to clear.
Returns:
true, if the operation caused modification; false otherwise.

Definition at line 142 of file BitFlag.h.

bool ZipArchiveLib::CBitFlag::IsSetAll ( int  flags  )  const [inline]

Returns the value indicating whether all of the given flags are set.

Parameters:
flags The flags to examine.
Returns:
true, if all of the given flags are set; false otherwise.

Definition at line 107 of file BitFlag.h.

bool ZipArchiveLib::CBitFlag::IsSetAny ( int  flags  )  const [inline]

Returns the value indicating whether any of the given flags is set.

Parameters:
flags The flags to examine.
Returns:
true, if any of the given flags is set; false otherwise.

Definition at line 92 of file BitFlag.h.

ZipArchiveLib::CBitFlag::operator int (  )  const [inline]

Returns the current value.

Definition at line 186 of file BitFlag.h.

void ZipArchiveLib::CBitFlag::Set ( int  flags  )  [inline]

Sets the given flags.

Parameters:
flags The flags to set.

Definition at line 67 of file BitFlag.h.

bool ZipArchiveLib::CBitFlag::SetWithCheck ( int  flags  )  [inline]

Sets the given flags and examines if this caused a modification to the current object.

Parameters:
flags The flags to set.
Returns:
true, if the operation caused modification; false otherwise.

Definition at line 122 of file BitFlag.h.


Member Data Documentation

The current value.

Definition at line 40 of file BitFlag.h.


The documentation for this struct was generated from the following file:

The ZipArchive Library Copyright © 2000 - 2009 Artpol Software - Tadeusz Dracz. Generated at Fri Apr 24 16:46:40 2009.