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);
|
}
|
}
|
}
|