ThermalPrint_def_g.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #ifndef __THERMALPRINT_DEF_G_H
  2. #define __THERMALPRINT_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace ThermalPrint {
  7. //
  8. // const goes here
  9. //
  10. #define ThermalPrintService_Method_DoPrint 0
  11. #define ThermalPrintService_Method_PrinterStatus 1
  12. #define ThermalPrintService_Method_PrintEntityStatus 2
  13. #define ThermalPrintService_MethodSignature_DoPrint 1114050611
  14. #define ThermalPrintService_MethodSignature_PrinterStatus -513392423
  15. #define ThermalPrintService_MethodSignature_PrintEntityStatus 709479848
  16. struct ThermalPrintService_DoPrint_Req
  17. {
  18. CSimpleStringW uuid;
  19. CSimpleStringW print_data;
  20. int paper_type;
  21. int paper_width;
  22. int reserve1;
  23. CSimpleStringW reserve2;
  24. void Serialize(SpBuffer &Buf)
  25. {
  26. auto & buf = Buf & uuid & print_data & paper_type & paper_width & reserve1 & reserve2;
  27. }
  28. };
  29. struct ThermalPrintService_DoPrint_Ans
  30. {
  31. CSimpleStringW error_code;
  32. CSimpleStringW error_msg;
  33. void Serialize(SpBuffer &Buf)
  34. {
  35. auto & buf = Buf & error_code & error_msg;
  36. }
  37. };
  38. struct ThermalPrintService_PrinterStatus_Req
  39. {
  40. void Serialize(SpBuffer &Buf)
  41. {
  42. }
  43. };
  44. struct ThermalPrintService_PrinterStatus_Ans
  45. {
  46. int print_status;
  47. CSimpleStringW status_msg;
  48. void Serialize(SpBuffer &Buf)
  49. {
  50. auto & buf = Buf & print_status & status_msg;
  51. }
  52. };
  53. struct ThermalPrintService_PrintEntityStatus_Req
  54. {
  55. void Serialize(SpBuffer &Buf)
  56. {
  57. }
  58. };
  59. struct ThermalPrintService_PrintEntityStatus_Ans
  60. {
  61. bool isSupportPrint;
  62. bool isPrinting;
  63. void Serialize(SpBuffer &Buf)
  64. {
  65. auto & buf = Buf & isSupportPrint & isPrinting;
  66. }
  67. };
  68. ///////////////////////////
  69. } // namespace ThermalPrint
  70. #endif // __THERMALPRINT_DEF_G_H