private TradeReportTemplate parseIni(string resourceName) { ResourceLocator locator = ResourceLocator.of("classpath:" + resourceName); IniFile ini = IniFile.of(locator.CharSource); TradeReportTemplateIniLoader loader = new TradeReportTemplateIniLoader(); return(loader.load(ini)); }
/// <summary> /// Creates a trade report template by reading a template definition in an ini file. /// </summary> /// <param name="ini"> the ini file containing the definition of the template </param> /// <returns> a trade report template built from the definition in the ini file </returns> public static TradeReportTemplate load(IniFile ini) { TradeReportTemplateIniLoader loader = new TradeReportTemplateIniLoader(); return(loader.load(ini)); }