Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBflags.hxx

Go to the documentation of this file.
00001 #ifndef _CTBflags_HXX
00002 #define _CTBflags_HXX 1
00003 
00008 /*----------------------------------------------------------------------------*/
00009 /* C Tool Box: Designed and implemented by:                                   */
00010 /*    Walter F.J. Mueller   Gesellschaft fuer Schwerionenforschung (GSI)      */
00011 /*                          Planckstrasse 1, D-64291 Darmstadt, Germany       */
00012 /*                  Email:  W.F.J.Mueller@gsi.de                              */
00013 /*                  WWW:    http://www-kp3.gsi.de/www/kp3/people/mueller.html */
00014 /*------------------------------------------+---------------------------------*/
00015 
00016 class CTBflags {
00017 
00018   public:
00019                     CTBflags();
00020                     CTBflags(CTBuint32 i_flags);
00021 
00022     void            SetBit(CTBuint32 i_flags);
00023     void            SetBit(CTBuint32 i_flags, bool b_val);
00024     void            ClearBit(CTBuint32 i_flags);
00025 
00026     bool            TestSomeBits(CTBuint32 i_flags) const;
00027     bool            TestAllBits(CTBuint32 i_flags) const;
00028 
00029                     operator CTBuint32() const;
00030 
00031     bool            operator!() const;
00032 
00033     CTBflags&       operator=(const CTBuint32 i_flags); 
00034 
00035   private:
00036 
00037     CTBuint32       mi_flags;               // the flag word
00038 };
00039 
00040 // implementation is all inline !!
00041 #include "CTBflags.icc"
00042 
00043 #endif

Generated at Fri Oct 24 18:11:28 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001