local_flags.h 696 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <library/cpp/deprecated/enum_codegen/enum_codegen.h>
  3. #include <util/generic/string.h>
  4. #include <util/stream/output.h>
  5. namespace NBus {
  6. namespace NPrivate {
  7. #define MESSAGE_LOCAL_FLAGS_MAP(XX) \
  8. XX(MESSAGE_REPLY_INTERNAL, 0x0001) \
  9. XX(MESSAGE_IN_WORK, 0x0002) \
  10. XX(MESSAGE_IN_FLIGHT_ON_CLIENT, 0x0004) \
  11. XX(MESSAGE_REPLY_IS_BEGING_SENT, 0x0008) \
  12. XX(MESSAGE_ONE_WAY_INTERNAL, 0x0010) \
  13. /**/
  14. enum EMessageLocalFlags {
  15. MESSAGE_LOCAL_FLAGS_MAP(ENUM_VALUE_GEN)
  16. };
  17. ENUM_TO_STRING(EMessageLocalFlags, MESSAGE_LOCAL_FLAGS_MAP)
  18. TString LocalFlagSetToString(ui32);
  19. }
  20. }