boolflags.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __KMIME_BOOLFLAGS_H__
00018
#define __KMIME_BOOLFLAGS_H__
00019
00026 class BoolFlags {
00027
00028
public:
00029
BoolFlags() { clear(); }
00030 ~
BoolFlags() {}
00031
00032
void set(
unsigned int i,
bool b=
true);
00033
bool get(
unsigned int i);
00034
void clear() { bits[0]=0; bits[1]=0; }
00035
unsigned char *data() {
return bits; }
00036
00037
protected:
00038
unsigned char bits[2];
00039 };
00040
00041
#endif // __KMIME_BOOLFLAGS_H__
This file is part of the documentation for libkdenetwork Library Version 3.3.0.