00001 #ifndef _CGI_TITLE_H 00002 #define _CGI_TITLE_H 00003 00004 #include "Element.h" 00005 00006 namespace Cgi 00007 { 00008 00009 00010 class Title : public Element 00011 { 00012 public: 00013 Title(const std::string& title) : Element("title") { 00014 SetContent( title ); 00015 } 00016 00017 Element *Copy() { return new Title( *this ); } 00018 00019 void SetTitle(const std::string& title) { SetContent(title); } 00020 const std::string& GetTitle() { return GetContent(); } 00021 00022 }; 00023 00024 00025 } // namespace Cgi 00026 00027 00028 #endif // _CGI_TITLE_H