CommandStringBuilder.cs 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Common
  7. {
  8. public class CommandStringBuilderFactory
  9. {
  10. public static CommandStringBuilder GetCommandStringBuilder(string deviceName)
  11. {
  12. if (deviceName.Contains("PfeifferHipace"))
  13. {
  14. return new PfeifferHipaceCommandStringBuilder();
  15. }
  16. return new CommandStringBuilder();
  17. }
  18. }
  19. public class CommandStringBuilder
  20. {
  21. public virtual void BuildCommandString()
  22. {
  23. }
  24. }
  25. public class PfeifferHipaceCommandStringBuilder : CommandStringBuilder
  26. {
  27. public override void BuildCommandString()
  28. {
  29. }
  30. }
  31. }