00001
00002 #ifndef HTML_GENATTR_HH
00003 #define HTML_GENATTR_HH
00004
00005 #include "html/Attrib.hh"
00006 #include <string>
00007
00008 namespace html {
00009 class writer;
00010
00018 class genAttr : public attrib {
00019 public:
00022 genAttr(const std::string& value);
00023
00026 virtual ~genAttr(void);
00027
00031 virtual genAttr* clone(void) const;
00032
00038 virtual bool isDefault(void) const;
00039
00045 virtual bool hasArg(void) const;
00046
00049 virtual void putAttr(writer& w) const;
00050
00053 virtual void setValue(const std::string& value);
00054
00057 bool operator==(const genAttr& x) const;
00058
00059 private:
00060 std::string mValue;
00061 };
00062
00063 }
00064
00065 #endif // HTML_GENATTR_HH