ZskkIOManager.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Dicom.IO;
  2. using System.Text;
  3. /// <summary>
  4. /// .NET/Windows Desktop implementation of the I/O manager.
  5. /// </summary>
  6. public sealed class ZskkIOmanager : IOManager
  7. {
  8. /// <summary>
  9. /// Single instance of the desktop I/O manager.
  10. /// </summary>
  11. public static readonly IOManager Instance;
  12. /// <summary>
  13. /// Implementation of the base encoding getter.
  14. /// </summary>
  15. protected override Encoding BaseEncodingImpl => Encoding.ASCII;
  16. /// <summary>
  17. /// Gets the platform-specific path helper implementation.
  18. /// </summary>
  19. protected override IPath PathImpl => DesktopPath.Instance;
  20. /// <summary>
  21. /// Initializes the static fields of <see cref="T:Dicom.IO.DesktopIOManager" />
  22. /// </summary>
  23. static ZskkIOmanager();
  24. /// <summary>
  25. /// Platform-specific implementation to create a file reference.
  26. /// </summary>
  27. /// <param name="fileName">Name of the file.</param>
  28. /// <returns>A file reference object.</returns>
  29. protected override IFileReference CreateFileReferenceImpl(string fileName);
  30. /// <summary>
  31. /// Platform-specific implementation to create a directory reference.
  32. /// </summary>
  33. /// <param name="directoryName">Name of the directory.</param>
  34. /// <returns>A directory reference object.</returns>
  35. protected override IDirectoryReference CreateDirectoryReferenceImpl(string directoryName);
  36. }