Example #1
0
        /// <summary>
        /// 转换基准
        /// </summary>
        /// <param name="basePrn"></param>
        /// <returns></returns>
        public FcbOfUpdFile ToFile(SatelliteNumber basePrn)
        {
            FcbOfUpdFile result = new FcbOfUpdFile();

            foreach (var item in this)
            {
                var toVal = item.ConvertTo(basePrn);
                if (toVal == null)
                {
                    continue;
                }
                result.Add(toVal);
            }
            return(result);
        }
Example #2
0
        /// <summary>
        /// 读取为文件
        /// </summary>
        /// <returns></returns>
        public FcbOfUpdFile ReadToFile()
        {
            FcbOfUpdFile file = new FcbOfUpdFile();

            file.Name = System.IO.Path.GetFileName(InputPath);
            foreach (var item in this)
            {
                if (item == null)
                {
                    continue;
                }

                file.Add(item);
            }

            return(file);
        }
Example #3
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="gofFilePath"></param>
        /// <param name="metaFilePath"></param>
        public FcbOfUpdWriter(string gofFilePath, string metaFilePath = null) : base(gofFilePath, metaFilePath)
        {
            ItemSpliter         = '\t';
            this.PropertieNames = FcbOfUpdFile.BuildTitles();

            this.WriteHeaderLine();
            //this.WriteCommentLine("Epoch"
            //    + ItemSpliter + "WnMarker"
            //    + ItemSpliter + "BasePrn"
            //    + ItemSpliter + "Count"
            //    + ItemSpliter + "G01" + ItemSpliter + "G02" + ItemSpliter + "G03" + ItemSpliter + "G04" + ItemSpliter + "G05"
            //    + ItemSpliter + "G06" + ItemSpliter + "G07" + ItemSpliter + "G08" + ItemSpliter + "G09" + ItemSpliter + "G10"
            //    + ItemSpliter + "G11" + ItemSpliter + "G12" + ItemSpliter + "G13" + ItemSpliter + "G14" + ItemSpliter + "G15"
            //    + ItemSpliter + "G16" + ItemSpliter + "G17" + ItemSpliter + "G18" + ItemSpliter + "G19" + ItemSpliter + "G20"
            //    + ItemSpliter + "G21" + ItemSpliter + "G22" + ItemSpliter + "G23" + ItemSpliter + "G24" + ItemSpliter + "G25"
            //    + ItemSpliter + "G26" + ItemSpliter + "G27" + ItemSpliter + "G28" + ItemSpliter + "G29" + ItemSpliter + "G30"
            //    + ItemSpliter + "G31" + ItemSpliter + "G32"
            //    );
        }