Example #1
0
 /// <summary>
 /// Reads in the map file at the specified path, returning null if any exceptions are encountered
 /// </summary>
 public static List <MapFileRow> SafeMapFileRowRead(string file)
 {
     try
     {
         return(MapFileRow.Read(file).ToList());
     }
     catch (Exception err)
     {
         Log.Error("MapFileResover.Create(): " + file + " \tError: " + err.Message);
         return(null);
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MapFileRowEntry"/> class
 /// </summary>
 /// <param name="entitySymbol">The map file that produced this row</param>
 /// <param name="mapFileRow">The map file row data</param>
 public MapFileRowEntry(string entitySymbol, MapFileRow mapFileRow)
 {
     MapFileRow   = mapFileRow;
     EntitySymbol = entitySymbol;
 }
Example #3
0
 /// <summary>
 /// Reads in an entire map file for the requested symbol from the DataFolder
 /// </summary>
 public static MapFile Read(string symbol)
 {
     return(new MapFile(symbol, MapFileRow.Read(symbol)));
 }
Example #4
0
 /// <summary>
 /// Reads in an entire map file for the requested symbol from the DataFolder
 /// </summary>
 public static MapFile Read(string symbol, string market)
 {
     return(new MapFile(symbol, MapFileRow.Read(symbol, market)));
 }