HW3 class

————————————————————————-
Program.cs
Main()
– WeatherInfoFileManager.Import(디렉토리, 파일확장자명, ref wList)
while (종료하지않는다면) {
-LINQ 쿼리 (사용자 입력은 쿼리방식 지정)
-WeatherInfoFileManager.Export(쿼리파일명, ref queriedList)
-WeatherInfoManger Sort 후(사용자 입력은 Sort방식 지정)
-WeatherInfoFileManager.Export(소스된파일명, ref sortedList)
}


————————————————————————-
WeatherInfo: IComparable<WeatherInfo>, IEquatable<WeatherInfo> 
– 년,월,일,기온,… WindChillTemperature & HeatIndex 추가


————————————————————————-
WeatherInfoComparer.cs (여러개의 컴패어러 클래스들 포함)
-class WeatherYearComparer : IComparer<WeatherInfo>
-class WeatherMonthComparer : IComparer<WeatherInfo>
….


————————————————————————-
WeatherInfoManager
public List<WeatherInfo> wList = new List<WeatherInfo>();
-public void Sort(SortMode mode) { // 내부구현 필요 }
-public void Print()
-LINQ 사용해서 특정날짜나 특정 기준에 맞는 쿼리를 함


————————————————————————-
WeatherInfoFileManager
-public static void Import(string path, string ext, ref List<WeatherInfo> tList)


   string[] files = Directory.GetFiles(path, ext);




-public static void Import(string filename, ref List<WeatherInfo> tList)
-public static void Export(string filename, ref IList<WeatherInfo> tList)

Leave a Reply

Your email address will not be published. Required fields are marked *