Source: status.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
                          status.h  -  description
                             -------------------
    begin                : Sat Jan 22 2000
    copyright            : (C) 2000 by Daniel Roberge
    email                : droberge@uvic.ca
 ***************************************************************************/

#ifndef _STATUS_H
#define _STATUS_H

#define VALID 0x01

/**Keeps track of eight bit-flags.
  *@author Daniel Roberge
  */

class Status
{
 private:
  char flags;
 public:
  /**Just sets up a Status object*/
  Status() { flags = 0; };
  /**Sets flags in arg*/
  void setFlag(char arg) { flags |= arg; };
  /**Clears flags in arg*/
  void clearFlag(char arg) { flags &= !arg; };
  /**Returns true if all flags in arg are set*/
  bool checkFlag(char arg) { return ((flags & arg) == arg); };
};

typedef Status& RStatus;
typedef Status* PStatus;

#endif

Generated by: droberge@magebook.localdomain on Mon Jul 3 13:20:08 200.