Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

robhtml.h

Go to the documentation of this file.
00001 /*
00002  * robhtml.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00015 
00020 #ifndef __RT_HTML__
00021 #define __RT_HTML__
00022 
00023 #include <rtstring.h>
00024 #include <rtfile.h>
00025 
00026 #include "robtopmgr.h"
00027 
00028 using namespace lrt;
00029 
00030 namespace rt {
00031 
00035 class HtmlCreator {
00036 
00037 public:
00042         static String defaultChartsIniName;
00047         static String defaultChartsHtmlName;
00048 
00050         static String toHtml(const String& text);
00051 
00064         HtmlCreator(const String& competitionName, const File& competitionFolder,
00065                 const File& outputFolder, bool createLinks, bool createDownloadLinks);
00066 
00067         ~HtmlCreator() {}
00068 
00070         File getDetailedHtml(const String& botFileName);
00071         
00076         bool createChartsHtml(bool recalc = false, 
00077                 const String& iniName = defaultChartsIniName,
00078                 const String& htmlName = defaultChartsHtmlName);
00080         bool createDetailedHtml(const String& botFileName);
00081 
00082 
00083 protected:
00084         String competitionName;
00085         // from last createChartsHtml() run
00086         String chartsHtmlName;
00087         File competitionFolder;
00088         File outputFolder;
00089         bool createLinks;
00090         bool createDownloadLinks;
00091 
00092         TopManager myManager;
00093 
00094         // Reads the Detailed Result File and all of the referenced info files for
00095         // the given bot into the store. The store is cleared first.
00096         bool readDetailed(const String& botFileName, Vector<TopTourResult>& store);
00097         
00098         static String cssName;
00099         bool cssExists();
00100         // Copies the CSS file (resource) to the output folder. 
00101         bool writeCss();
00102 };
00103 
00104 
00105 
00106 } // namespace
00107 
00108 # endif
00109 

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer