html/boolAttr.hh

00001 /* -*- mode: c++; c-basic-offset: 4; -*- */
00002 #ifndef HTML_BOOLATTR_HH
00003 #define HTML_BOOLATTR_HH
00004 
00005 #include "html/Attrib.hh"
00006 #include <string>
00007 
00008 namespace html {
00009   class writer;
00010 
00011 
00018   class boolAttr : public attrib {
00019   public:
00024     boolAttr(bool value=true);
00025 
00029     ~boolAttr(void);
00030 
00035     boolAttr* clone(void) const;
00036 
00040     bool isDefault(void) const;
00041 
00047     bool hasArg(void) const;
00048 
00053     void putAttr(writer& w) const;
00054 
00059     void setValue(bool value=true);
00060 
00066     bool operator==(const boolAttr& x) const;
00067 
00068   private:
00069     bool mValue;
00070   };
00071 
00072 }
00073 
00074 #endif //  HTML_BOOLATTR_HH

Generated on Sun Mar 8 19:20:48 2009 for dmt by  doxygen 1.5.4