IDataRow.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*********************************************************************************
  2. *Author: OnClick
  3. *Version: 0.0.1
  4. *UnityVersion: 2018.3.11f1
  5. *Date: 2019-09-08
  6. *Description: IFramework
  7. *History: 2018.11--
  8. *********************************************************************************/
  9. using System.Collections.Generic;
  10. using System.Text;
  11. namespace IFramework.Serialization.DataTable
  12. {
  13. /// <summary>
  14. /// 数据行
  15. /// </summary>
  16. public interface IDataRow
  17. {
  18. /// <summary>
  19. /// 读取一行
  20. /// </summary>
  21. /// <param name="val">行String</param>
  22. /// <param name="headNames">标题行</param>
  23. /// <returns></returns>
  24. List<DataColumn> ReadLine(string val, List<string> headNames);
  25. /// <summary>
  26. /// 读取标题行
  27. /// </summary>
  28. /// <param name="val">行String</param>
  29. /// <returns></returns>
  30. List<string> ReadHeadLine(string val);
  31. /// <summary>
  32. /// 写入一行
  33. /// </summary>
  34. /// <param name="cols">写入的信息</param>
  35. /// <param name="builder"></param>
  36. /// <returns></returns>
  37. void WriteLine(List<DataColumn> cols, StringBuilder builder);
  38. /// <summary>
  39. /// 写入标题行
  40. /// </summary>
  41. /// <param name="headNames">写入的标题</param>
  42. /// <param name="builder"></param>
  43. /// <returns></returns>
  44. void WriteHeadLine(List<string> headNames, StringBuilder builder);
  45. }
  46. }