#include <mncommon.h>
Public Member Functions |
|
FlagUser () | |
void | SetFlag (DWORD fl, bool val=TRUE) |
void | ClearFlag (DWORD fl) |
bool | GetFlag (DWORD fl) const |
void | ClearAllFlags () |
void | CopyFlags (DWORD fl) |
void | CopyFlags (const FlagUser &fu) |
void | CopyFlags (const FlagUser *fu) |
void | CopyFlags (DWORD fl, DWORD mask) |
void | CopyFlags (const FlagUser &fu, DWORD mask) |
void | CopyFlags (const FlagUser *fu, DWORD mask) |
void | OrFlags (const FlagUser &fu) |
void | OrFlags (const FlagUser *fu) |
void | AndFlags (const FlagUser &fu) |
void | AndFlags (const FlagUser *fu) |
bool | FlagMatch (DWORD fmask, DWORD fl) const |
bool | FlagMatch (DWORD fmask, const FlagUser &fu) const |
bool | FlagMatch (DWORD fmask, const FlagUser *fu) const |
DWORD | ExportFlags () const |
void | ImportFlags (DWORD fl) |
IOResult | WriteFlags (ISave *isave, ULONG *nb) const |
IOResult | ReadFlags (ILoad *iload, ULONG *nb) |
FlagUser | ( | ) | [inline] |
{ FlagUserFlags=0; }
void SetFlag | ( | DWORD | fl, |
bool | val = TRUE |
||
) | [inline] |
{ if (val) FlagUserFlags |= fl; else FlagUserFlags -= (FlagUserFlags & fl); }
void ClearFlag | ( | DWORD | fl | ) | [inline] |
Reimplemented in MNMesh.
{ FlagUserFlags -= (FlagUserFlags & fl); }
bool GetFlag | ( | DWORD | fl | ) | const [inline] |
{ return (FlagUserFlags & fl) ? 1 : 0; }
void ClearAllFlags | ( | ) | [inline] |
{ FlagUserFlags = 0; }
void CopyFlags | ( | DWORD | fl | ) | [inline] |
void CopyFlags | ( | const FlagUser & | fu | ) | [inline] |
{ FlagUserFlags = fu.FlagUserFlags; }
void CopyFlags | ( | const FlagUser * | fu | ) | [inline] |
{ FlagUserFlags = fu->FlagUserFlags; }
void CopyFlags | ( | DWORD | fl, |
DWORD | mask | ||
) | [inline] |
{ FlagUserFlags |= (fl & mask); }
void CopyFlags | ( | const FlagUser & | fu, |
DWORD | mask | ||
) | [inline] |
{ FlagUserFlags |= (fu.FlagUserFlags & mask); }
void CopyFlags | ( | const FlagUser * | fu, |
DWORD | mask | ||
) | [inline] |
{ FlagUserFlags |= (fu->FlagUserFlags & mask); }
void OrFlags | ( | const FlagUser & | fu | ) | [inline] |
{ FlagUserFlags |= fu.FlagUserFlags; }
void OrFlags | ( | const FlagUser * | fu | ) | [inline] |
{ FlagUserFlags |= fu->FlagUserFlags; }
void AndFlags | ( | const FlagUser & | fu | ) | [inline] |
{ FlagUserFlags &= fu.FlagUserFlags; }
void AndFlags | ( | const FlagUser * | fu | ) | [inline] |
{ FlagUserFlags &= fu->FlagUserFlags; }
bool FlagMatch | ( | DWORD | fmask, |
DWORD | fl | ||
) | const [inline] |
{
return ((FlagUserFlags & fmask) == (fl & fmask));
}
bool FlagMatch | ( | DWORD | fmask, |
const FlagUser & | fu | ||
) | const [inline] |
{
return ((FlagUserFlags & fmask) == (fu.FlagUserFlags & fmask));
}
bool FlagMatch | ( | DWORD | fmask, |
const FlagUser * | fu | ||
) | const [inline] |
{
return ((FlagUserFlags & fmask) == (fu->FlagUserFlags & fmask));
}
DWORD ExportFlags | ( | ) | const [inline] |
{ return FlagUserFlags; }
void ImportFlags | ( | DWORD | fl | ) | [inline] |
{ FlagUserFlags = fl; }
{ return isave->Write(&FlagUserFlags, sizeof(DWORD), nb); }
{ return iload->Read (&FlagUserFlags, sizeof(DWORD), nb); }