3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // Portions copyright (C) 2001-2003 RibbonSoft
7 // Copyright (C) 2010 Underground Software
8 // See the README and GPLv2 files for licensing and warranty information
10 // JLH = James L. Hammons <jlhamm@acm.org>
13 // --- ---------- -----------------------------------------------------------
14 // JLH 08/03/2010 Created this file. :-)
19 /** Default constructor. Resets all flags to 0. */
25 /** Constructor with initialisation to the given flags. */
26 Flags::Flags(unsigned int f)
31 /*virtual*/ Flags::~Flags()
35 unsigned int Flags::getFlags() const
40 void Flags::resetFlags()
45 void Flags::setFlags(unsigned int f)
50 void Flags::setFlag(unsigned int f)
55 void Flags::delFlag(unsigned int f)
60 void Flags::toggleFlag(unsigned int f)
65 bool Flags::getFlag(unsigned int f) const
67 return (flags & f ? true : false);