You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 regels
784 B

  1. #pragma once
  2. #include <map>
  3. #include <cppamqp/config.h>
  4. namespace cppamqp
  5. {
  6. struct queue_declaration
  7. {
  8. std::string name;
  9. uint message_count;
  10. uint consumer_count;
  11. };
  12. using channel_number = amqp_channel_t;
  13. struct field_value
  14. : private amqp_field_value_t
  15. {
  16. private:
  17. template<typename T_value>
  18. inline void set(T_value&& value);
  19. public:
  20. inline field_value();
  21. template<typename T_value>
  22. inline field_value(T_value&& value);
  23. template<typename T_value>
  24. inline field_value& operator=(T_value&& value);
  25. inline const amqp_field_value_t& get() const;
  26. };
  27. using table = std::map<std::string, field_value>;
  28. const table empty_table;
  29. }