public DataLoader_Abstract(PluginHelper pluginHelper, string srcDataPath) { this.srcDataPath = srcDataPath; this.dataLoader_Instrument = new DataLoader_InstrumentInfo(pluginHelper.PluginDirPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginHelper.PluginDirPath, this.dataLoader_Instrument); this.plugin_HistoryData_CnFutures = new Plugin_HistoryData_CnFutures(new PluginHelper(pluginHelper.PluginInfo)); }
public UpdatedDataLoader(string pluginPath, string csvDataPath) { PluginHelper helper = new PluginHelper(pluginPath); this.plugin_HistoryData = new Plugin_HistoryData_CnFutures(helper, csvDataPath); this.tradingDayCache = new CacheUtils_TradingDay(plugin_HistoryData.GetTradingDays()); this.codeInfoCache = new CacheUtils_CodeInfo(plugin_HistoryData.GetInstruments()); this.mainContracts = plugin_HistoryData.GetMainContractInfos(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="pluginHelper">插件帮助类,提供插件相关数据</param> /// <param name="dataProvider">数据提供者</param> /// <param name="srcDataPath">源数据目录</param> /// <param name="targetDataPath">目标目录</param> public DataLoader(PluginHelper pluginHelper, IDataProvider dataProvider, String srcDataPath, string targetDataPath) { this.dataProvider = dataProvider; this.srcDataPath = srcDataPath; this.targetDataPath = targetDataPath; this.dataLoader_Variety = new DataLoader_Variety(pluginHelper.PluginDirPath); //this.dataLoader_Instrument = new CodeInfoGenerator(pluginHelper.PluginDirPath); this.dataLoader_TradingSessionDetail = new DataLoader_TradingSessionDetail(pluginHelper.PluginDirPath, dataLoader_Variety); this.plugin_HistoryData_CnFutures = new Plugin_HistoryData_CnFutures(pluginHelper); }