Esempio n. 1
0
        /// <summary>Write a single summary file.</summary>
        /// <param name="dataStore">The data store containing the data</param>
        /// <param name="fileName">The file name to create</param>
        private static void WriteSummaryFile(DataStore dataStore, string fileName)
        {
            StreamWriter report = report = new StreamWriter(fileName);

            foreach (string simulationName in dataStore.SimulationNames)
            {
                Summary.WriteReport(dataStore, simulationName, report, null, outtype: Summary.OutputType.html);
                report.WriteLine();
                report.WriteLine();
                report.WriteLine("############################################################################");
            }
            report.Close();
        }
Esempio n. 2
0
 /// <summary>
 /// Write a single sumary file for all simulations.
 /// </summary>
 /// <param name="storage">The storage where the summary data is stored</param>
 /// <param name="fileName">The file name to write</param>
 public static void WriteSummaryToTextFiles(IStorageReader storage, string fileName)
 {
     using (StreamWriter report = new StreamWriter(fileName))
     {
         foreach (string simulationName in storage.SimulationNames)
         {
             Summary.WriteReport(storage, simulationName, report, null, outtype: Summary.OutputType.html);
             report.WriteLine();
             report.WriteLine();
             report.WriteLine("############################################################################");
         }
     }
 }