protected override void Init(Gmetadata Gmetadata) { this.ItemSpliters = Gmetadata.ItemSplliter; PropertyIndexes = new Dictionary <string, int>(); int i = 0; foreach (var name in this.Metadata.PropertyNames) { PropertyIndexes.Add(name.Trim(), i++); } //采用默认序列 if (PropertyIndexes.Count == 0) { var defaultObj = Activator.CreateInstance <EpochInfo>();// typeof(TLineClass); var names = defaultObj.OrderedProperties; this.Metadata.PropertyNames = names.ToArray(); i = 0; foreach (var name in this.Metadata.PropertyNames) { PropertyIndexes.Add(name.Trim(), i++); } } InitStreamReader(); }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <AppendStringToLineParam>(m => m.FileToAppdend), Geo.Utils.ObjectUtil.GetPropertyName <AppendStringToLineParam>(m => m.Content), }; return(data); }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.OutputFilePath = @"Data\OutputFilePath_" + DateTime.Now.Ticks + ".url"; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <CreateTxtParam>(m => m.OutputPath), Geo.Utils.ObjectUtil.GetPropertyName <CreateTxtParam>(m => m.Content), }; return(data); }
/// <summary> /// 初始化 /// </summary> /// <param name="Gmetadata"></param> protected override void Init(Gmetadata Gmetadata) { base.Init(Gmetadata); this.ItemSpliters = new string[] { " " }; StartIndex = 0; this.CommentMarkers = new string[] { "#", "*" }; ItemLengthes = new List <int>() { 7, 18, 19, 19, 9, 8, 8, 8, 20, 20, 20, 20 }; }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.InputPath), Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.OutputPath), Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.IsDeleteSource), Geo.Utils.ObjectUtil.GetPropertyName <DecompressParam>(m => m.IsOverwrite) }; return(data); }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.OutputFilePath = @"Data\OutputFilePath_" + DateTime.Now.Ticks + ".url"; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <TimeScopeStringGeneratorParam>(m => m.Pattern), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.StartTime), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.EndTime), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.Interval), }; return(data); }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.InputPath), Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.OutputPath), Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.IsOverwrite), Geo.Utils.ObjectUtil.GetPropertyName <FtpParam>(m => m.Extension), VariableNames.UserName, VariableNames.Password }; return(data); }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.Pattern), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.SourceName), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.StartTime), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.EndTime), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.Interval), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.OutputPath), Geo.Utils.ObjectUtil.GetPropertyName <Sp3UrlGeneratorParam>(m => m.LocalDirectory), }; return(data); }
/// <summary> /// 默认的元数据 /// </summary> /// <returns></returns> public override Gmetadata GetDefaultMetadata() { Gmetadata data = Gmetadata.NewInstance; data.PropertyNames = new string[] { Geo.Utils.ObjectUtil.GetPropertyName <XYZ>(m => m.X), Geo.Utils.ObjectUtil.GetPropertyName <XYZ>(m => m.Y), Geo.Utils.ObjectUtil.GetPropertyName <XYZ>(m => m.Z), Geo.Utils.ObjectUtil.GetPropertyName <XyzToGeoCoordParam>(m => m.OutputPath), VariableNames.SemiMinorAxis, VariableNames.FlatteningOrInverse, Geo.Utils.ObjectUtil.GetPropertyName <XyzToGeoCoordParam>(m => m.AngleUnit), }; return(data); }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public PointPositionParamWriter(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public TimeScopeStringGeneratorReader(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="gofFilePath"></param> /// <param name="Gmetadata"></param> public DifferFcbOfSatDcbReader(string gofFilePath, Gmetadata Gmetadata) : base(gofFilePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public DoubleDifferParamWriter(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数,以数据流初始化 /// </summary> /// <param name="stream"></param> /// <param name="Gmetadata"></param> public GnsserXyzCoordWriter(Stream stream, Gmetadata Gmetadata) : base(stream, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public FtpParamWriter(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public BaselineReader(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public DecompressParamWriter(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public CreateTxtParamReader(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public XyzToGeoCoordWriter(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="gofFilePath"></param> /// <param name="Gmetadata"></param> public FcbOfUpdWriter(string gofFilePath, Gmetadata Gmetadata) : base(gofFilePath, Gmetadata) { ItemSpliter = '\t'; }
protected override void Init(Gmetadata Gmetadata) { base.Init(Gmetadata); this.ItemSpliters = new string[] { "\t" }; StartIndex = 1; }
/// <summary> /// 构造函数 /// </summary> /// <param name="gofFilePath"></param> /// <param name="Gmetadata"></param> public GnsserXyzCoordReader(string gofFilePath, Gmetadata Gmetadata) : base(gofFilePath, Gmetadata) { //默认路径是 ProjectDirectory/Script/GofFileName.gof this.BaseDirectory = (Path.GetDirectoryName(gofFilePath)); }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public EpochInfoWriter(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public AppendStringToLineParamReader(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数,以数据流初始化 /// </summary> /// <param name="stream"></param> /// <param name="Gmetadata"></param> public StationInfoWriter(Stream stream, Gmetadata Gmetadata) : base(stream, Gmetadata, Encoding.ASCII) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public SiteInfoReader(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="filePath"></param> /// <param name="Gmetadata"></param> public Sp3UrlGeneratorReader(string filePath, Gmetadata Gmetadata) : base(filePath, Gmetadata) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="gofFilePath"></param> /// <param name="Gmetadata"></param> public OperationInfoWriter(string gofFilePath, Gmetadata Gmetadata) : base(gofFilePath, Gmetadata) { //默认路径是 ProjectDirectory/Script/GofFileName.gof this.BaseDirectory = (Path.GetDirectoryName(gofFilePath)); }
/// <summary> /// 构造函数 /// </summary> /// <param name="gofFilePath"></param> /// <param name="Gmetadata"></param> public WideLaneBiasItemReader(string gofFilePath, Gmetadata Gmetadata) : base(gofFilePath, Gmetadata) { ItemSpliters = new string[] { " " }; }
/// <summary> /// 构造函数,以数据流初始化 /// </summary> /// <param name="stream"></param> /// <param name="Gmetadata"></param> public OperationInfoWriter(Stream stream, Gmetadata Gmetadata) : base(stream, Gmetadata) { }