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,2006,2007 Frank Hassanabad
00009  *
00010  * This file is part of RebeccaAIML.
00011  *
00012  * RebeccaAIML is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 3 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * RebeccaAIML is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00024  */
00025 
00026 
00027 //Custom Tag includes
00028 #include "Links.h"
00029 #include "typedefs.h"
00030 #include "sanitizeString.h"
00031 
00032 //Std includes
00033 #include <string>
00034 
00035 namespace customTag
00036 {
00037 namespace impl
00038 {
00039 
00040 using namespace std;
00041 
00052 class Html
00053 {
00054     public:
00055 
00061         Html();
00062         
00072         void writeHtmlHeader(ofstream &file);
00073         
00079         void writeHtmlFooter(ofstream &file);
00080         
00094         void createLink(string urlToLinkTo, string urlDisplayName, string urlToLinkFrom);
00095         
00108         void createTemplateLink(string urlToLinkTo, string templateString, string urlToLinkFrom);
00109 
00114         void writeWebPages();
00115         
00122         void writeDefaultStyleSheet(const string &fileName);
00123 
00124     private:
00125 
00130         string m_directoryName;
00131         
00135         string m_topCaption;
00136 
00144         MapWebPageMapStringLinks m_links;
00145         
00155         void to_lower(string &input);
00156         
00173         string replace_all_copy(const string &input, const char &character, const string &whatWith);
00174 
00175 };
00176 
00177 } //end of namespace impl
00178 } //end of namespace customTag
00179 
00180 
00181 #endif
00182 

Generated on Mon Aug 27 12:26:52 2007 for RebeccaAIML by  doxygen 1.5.3