Html.h

00001 #ifndef CUSTOMHTML_HTML_H
00002 #define CUSTOMHTML_HTML_H
00003 
00004 /*
00005  * RebeccaAIML, Artificial Intelligence Markup Language 
00006  * C++ api and engine.
00007  *
00008  * Copyright (C) 2005 Frank Hassanabad
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
00024 
00025 
00026 //Custom Tag includes
00027 #include "Links.h"
00028 #include "typedefs.h"
00029 #include "sanitizeString.h"
00030 
00031 //Std includes
00032 #include <string>
00033 
00034 namespace customTag
00035 {
00036 namespace impl
00037 {
00038 
00039 using namespace std;
00040 
00051 class Html
00052 {
00053     public:
00054 
00060         Html();
00061         
00071         void writeHtmlHeader(ofstream &file);
00072         
00078         void writeHtmlFooter(ofstream &file);
00079         
00093         void createLink(string urlToLinkTo, string urlDisplayName, string urlToLinkFrom);
00094         
00107         void createTemplateLink(string urlToLinkTo, string templateString, string urlToLinkFrom);
00108 
00113         void writeWebPages();
00114         
00121         void writeDefaultStyleSheet(const string &fileName);
00122 
00123     private:
00124 
00129         string m_directoryName;
00130         
00134         string m_topCaption;
00135 
00143         MapWebPageMapStringLinks m_links;
00144 };
00145 
00146 } //end of namespace impl
00147 } //end of namespace customTag
00148 
00149 
00150 #endif
00151 

Generated on Tue Feb 14 22:44:43 2006 for RebeccaAIML by  doxygen 1.4.5