Ups_def_g.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #ifndef __UPS_DEF_G_H
  2. #define __UPS_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace Ups {
  7. //
  8. // const goes here
  9. //
  10. #define UpsService_Method_Open 0
  11. #define UpsService_Method_GetStatus 1
  12. #define UpsService_Method_Shutdown 2
  13. #define UpsService_Method_Close 3
  14. #define UpsService_MethodSignature_Open 1935607479
  15. #define UpsService_MethodSignature_GetStatus 384808567
  16. #define UpsService_MethodSignature_Shutdown -315118099
  17. #define UpsService_MethodSignature_Close -811482585
  18. struct UpsService_Open_Req
  19. {
  20. CSimpleStringA Com;
  21. void Serialize(SpBuffer &Buf)
  22. {
  23. auto & buf = Buf & Com;
  24. }
  25. };
  26. struct UpsService_Open_Ans
  27. {
  28. void Serialize(SpBuffer &Buf)
  29. {
  30. }
  31. };
  32. struct UpsService_GetStatus_Req
  33. {
  34. void Serialize(SpBuffer &Buf)
  35. {
  36. }
  37. };
  38. struct UpsService_GetStatus_Ans
  39. {
  40. int Status;
  41. void Serialize(SpBuffer &Buf)
  42. {
  43. auto & buf = Buf & Status;
  44. }
  45. };
  46. struct UpsService_Shutdown_Req
  47. {
  48. int ShutdownTime;
  49. int UpTime;
  50. void Serialize(SpBuffer &Buf)
  51. {
  52. auto & buf = Buf & ShutdownTime & UpTime;
  53. }
  54. };
  55. struct UpsService_Shutdown_Ans
  56. {
  57. void Serialize(SpBuffer &Buf)
  58. {
  59. }
  60. };
  61. struct UpsService_Close_Req
  62. {
  63. void Serialize(SpBuffer &Buf)
  64. {
  65. }
  66. };
  67. struct UpsService_Close_Ans
  68. {
  69. void Serialize(SpBuffer &Buf)
  70. {
  71. }
  72. };
  73. ///////////////////////////
  74. } // namespace Ups
  75. #endif // __UPS_DEF_G_H