Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csFlags Class Reference

Set of flags which can be accessed through masks. More...

#include <flags.h>

List of all members.

Public Methods

 csFlags (int Value=0)
 Constructor.

void SetAll (unsigned value)
 Initialize all flags to the given mask.

void Set (unsigned mask)
 Set all given flags.

void Reset (unsigned mask)
 Reset all given flags.

void Set (unsigned mask, unsigned value)
 Set all flags with the given mask.

void SetBool (unsigned mask, bool value)
 Set all flags with the given value.

unsigned Get () const
 Get flags.

bool Check (unsigned mask) const
 Check if any of the given flags are set.

bool CheckAll (unsigned mask) const
 Check if all the given flags are set.


Detailed Description

Set of flags which can be accessed through masks.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000