Go to the documentation of this file.
28 #ifndef _ID3LIB_FLAGS_H_
29 #define _ID3LIB_FLAGS_H_
41 TYPE get()
const {
return _f; }
42 bool test(
TYPE f)
const {
return (this->
get() & f) == f; }
43 bool set(
TYPE f) {
bool r = (_f != f); _f = f;
return r; }
45 bool remove(
TYPE f) {
return this->
set(this->
get() & ~f); }
47 bool set(
TYPE f,
bool b){
if (b)
return this->
add(f);
return this->
remove(f); }
50 {
if (
this != &f) { this->
set(f.
get()); }
return *
this; }