// libportable/HtmlPage.h // Created by Robin Rowe on 2015/6/9 // License MIT Open Source // #ifndef HtmlPage_h #define HtmlPage_h #include using namespace std; class HtmlHeader {public: HtmlHeader() { cout<<"
/n"; } ~HtmlHeader() { cout<<"
\n"; } }; class HtmlTitle {public: HtmlTitle() { cout<<"\n"; } ~HtmlTitle() { cout<<"\n"; } }; class HtmlPage {public: HtmlPage(const char* contentType=0) { if(contentType) { cout<<"Content-Type: "<\n"; } ~HtmlPage() { cout<<"\n"; } }; class HtmlBody {public: HtmlBody() { cout<<"\n"; } ~HtmlBody() { cout<<"\n"; } }; class HtmlP {public: HtmlP() { cout<<"\n

"; } ~HtmlP() { cout<<"

\n"; } }; class HtmlTable {public: HtmlTable(unsigned border=0) { cout<<"\n"; } ~HtmlTable() { cout<<"
\n"; } }; class HtmlTr {public: HtmlTr() { cout<<"\n"; } ~HtmlTr() { cout<<"\n"; } }; class HtmlTd {public: HtmlTd() { cout<<""; } ~HtmlTd() { cout<<""; } }; class HtmlList {public: HtmlList() { cout<<"
    \n"; } ~HtmlList() { cout<<"
\n"; } }; class HtmlListI {public: HtmlListI() { cout<<"
  • "; } }; class HtmlHeading { unsigned level; public: HtmlHeading(unsigned level) : level(level) { cout<<""; } ~HtmlHeading() { cout<<""; } }; class HtmlFormat { const char* format; public: HtmlFormat(const char* format) : format(format) { cout<<"<"<"; } ~HtmlFormat() { cout<<""; } }; class HtmlHref { public: HtmlHref(const char* description,const char* link) { cout<<""<"; } }; #endif