Esempio n. 1
0
        public static TcxDataFactory CreateDefault()
        {
            Func<SourcedStream, ITcxData> lemond = r =>
                {
                    var provider = LeMondCsvDataProvider.Create(r);
                    var reader = new LeMondDataReader(provider);
                    return new LeMondTcxData(reader);
                };

            Func<SourcedStream, ITcxData> computrainer = r =>
                {
                    var provider = new CompuTrainer3DPFileProvider(r);
                    return new CompuTrainerTcxData(provider);
                };

            Func<SourcedStream, ITcxData> xtrainer = r =>
            {
                var provider = XtrainerDataProvider.Create(r);
                var reader = new XtrainerDataReader(provider);
                return new XtrainerTcxData(reader);
            };

            return new TcxDataFactory(lemond, computrainer, xtrainer);
        }
Esempio n. 2
0
 public XtrainerTcxData(XtrainerDataReader reader)
 {
     _reader = reader;
 }