/// <summary> /// 构造函数 /// </summary> /// <param name="ObsFileConvertOption"></param> /// <param name="inPath"></param> public ObsFileFormater(ObsFileConvertOption ObsFileConvertOption, string inPath) { this.Option = ObsFileConvertOption; this.OutputDirectory = this.Option.OutputDirectory; this.FilePath = inPath; this.FileName = Path.GetFileName(FilePath); this.IsHeaderWrited = false; }
private static void Format(ObsFileConvertOption opt, string inputPath) { ObsFileFormater ObsFileFormater = new ObsFileFormater(opt, inputPath); // ObsFileFormater.SubDirectory = subDir; ObsFileFormater.Init(); ObsFileFormater.Run(); }
public FormatObsParam() { Option = new ObsFileConvertOption(); Option.OutputDirectory = "./Formated"; Type = ProcessType.F; }