Exemple #1
0
 public Engine(DispelOptions options)
 {
     sessions     = new List <Session>();
     sessionLines = new List <Line>();
     inSession    = true;
     this.options = options;
 }
Exemple #2
0
        public static Func <Log, OutputFile[]> GetGenerator(OutputFormat format, DispelOptions options)
        {
            switch (format)
            {
            case OutputFormat.Text:
                return(TextGenerator.Format);

            case OutputFormat.WebPage:
                return(new WebGenerator(options).FormatPage);

            case OutputFormat.WebSite:
                return(new WebGenerator(options).FormatSite);

            case OutputFormat.Wiki:
                return(WikiGenerator.Format);

            default:
                throw new NotSupportedException();
            }
        }
        public WebGenerator(DispelOptions options)
        {
            this.options = options;
            this.prefix  = @$ "<!DOCTYPE html>
<meta charset=" "utf-8" ">
<title>{options.Title ?? " mIRC Logfile "}</title>