public DataProviderWrap(Plugin_DataProvider provider) { this.factory = new DataReaderFactory(provider.GetDataPath()); this.provider = provider; this.codeReader = factory.CodeReader; this.klineDataReader = factory.KLineDataReader; this.tickDataReader = factory.TickDataReader; }
public DataUpdate_Old(DataProviderWrap dataProviderWrap) { this.dataProviderWrap = dataProviderWrap; Plugin_DataProvider dataProvider = dataProviderWrap.GetProvider(); update_Code = new DataUpdate_Code(dataProvider); update_KLine = new DataUpdate_KLine(dataProvider); update_Tick = new DataUpdate_Tick(dataProvider); }
public DataUpdate(DataProviderWrap dataProviderWrap) { this.dataProviderWrap = dataProviderWrap; Plugin_DataProvider dataProvider = dataProviderWrap.GetProvider(); update_Code = new DataUpdate_Code(dataProvider); update_OpenDate = new DataUpdate_OpenDate(dataProvider); update_KLine = new DataUpdate_KLine(dataProvider); update_Tick = new DataUpdate_Tick(dataProvider); this.dataReaderFactory = new DataReaderFactory(dataProviderWrap.GetDataPath()); }
public DataMgr() { List <Plugin_DataProvider> pluginproviders = new List <Plugin_DataProvider>(); List <PluginInfo2> plugs = PluginMgr2.Instance.Load(); for (int i = 0; i < plugs.Count; i++) { pluginproviders.AddRange(plugs[i].GetProviders()); } this.providers = new List <DataProviderWrap>(); this.dicProviders = new Dictionary <string, DataProviderWrap>(); for (int i = 0; i < pluginproviders.Count; i++) { Plugin_DataProvider provider = pluginproviders[i]; DataProviderWrap providerWrap = new DataProviderWrap(provider); providers.Add(providerWrap); dicProviders.Add(provider.GetName(), providerWrap); } }
public DataUpdate_Code(Plugin_DataProvider dataProvider) { this.dataProvider = dataProvider; this.utils = new DataPathUtils(dataProvider.GetDataPath()); this.codeStore = new InstrumentStore_File(utils.GetCodePath()); }
public DataUpdate_Tick(Plugin_DataProvider dataProvider) { this.utils = new DataPathUtils(dataProvider.GetDataPath()); this.dataProvider = dataProvider; }
public KLineDataGetter_FromTick(DataReaderFactory dataReaderFactory, Plugin_DataProvider dataProvider) { this.utils = new DataPathUtils(dataProvider.GetDataPath()); this.dataReaderFactory = dataReaderFactory; this.dataProvider = dataProvider; }
public DataUpdate_OpenDate(Plugin_DataProvider dataProvider) { this.pathUtils = new DataPathUtils(dataProvider.GetDataPath()); this.dataProvider = dataProvider; }