00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
00086 String chartsHtmlName;
00087 File competitionFolder;
00088 File outputFolder;
00089 bool createLinks;
00090 bool createDownloadLinks;
00091
00092 TopManager myManager;
00093
00094
00095
00096 bool readDetailed(const String& botFileName, Vector<TopTourResult>& store);
00097
00098 static String cssName;
00099 bool cssExists();
00100
00101 bool writeCss();
00102 };
00103
00104
00105
00106 }
00107
00108 # endif
00109