管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-07-26 a10e925cdda6f92a7bbf86188e317f5c5ee839b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace SimuTools.Domain
{
    public class Args
    {
        public string serviceName { set; get; }
 
        public string terrainFile { set; get; }
 
        public string buildingFile { set; get; }
 
        public string waterPath { set; get; }
 
        public string flowPath { set; get; }
 
        public string outPath { set; get; }
 
        public string temp { set; get; }
 
        public Dictionary<string, float[]> buildings { set; get; }
 
        public Args()
        {
            buildings = new Dictionary<string, float[]>();
        }
 
        public Args(string serviceName, string terrainFile, string buildingFile, string waterPath, string flowPath, string outPath) : this()
        {
            this.serviceName = serviceName;
            this.terrainFile = terrainFile;
            this.buildingFile = buildingFile;
            this.waterPath = waterPath;
            this.flowPath = flowPath;
            this.outPath = outPath;
 
            this.outPath = Path.Combine(this.outPath, serviceName);
            if (!Directory.Exists(this.outPath)) Directory.CreateDirectory(this.outPath);
 
            this.temp = Path.Combine(this.outPath, "temp");
            if (!Directory.Exists(this.temp)) Directory.CreateDirectory(this.temp);
        }
    }
}