Dripline-Cpp  v2.4.2
Dripline Implementation in C++
amqp.hh
Go to the documentation of this file.
1 /*
2  * amqp.hh
3  *
4  * Created on: Jul 13, 2015
5  * Author: N.S. Oblath
6  */
7 
8 #ifndef DRIPLINE_AMQP_HH_
9 #define DRIPLINE_AMQP_HH_
10 
11 #include "dripline_api.hh"
12 
13 #include "param.hh"
14 
15 #include "SimpleAmqpClient/SimpleAmqpClient.h"
16 
17 #include "SimpleAmqpClient/AmqpException.h"
18 #include "SimpleAmqpClient/AmqpLibraryException.h"
19 
20 
21 namespace dripline
22 {
23  // convenience typedefs
24  typedef AmqpClient::Channel::ptr_t amqp_channel_ptr;
25  typedef AmqpClient::Envelope::ptr_t amqp_envelope_ptr;
26  typedef AmqpClient::BasicMessage::ptr_t amqp_message_ptr;
27 
28  typedef AmqpClient::AmqpException amqp_exception;
29  typedef AmqpClient::AmqpLibraryException amqp_lib_exception;
30 
31  typedef std::vector< amqp_message_ptr > amqp_split_message_ptrs;
32 
33  // conversion functions
34  DRIPLINE_API scarab::param_ptr_t table_to_param( const AmqpClient::Table& a_table );
35  DRIPLINE_API scarab::param_ptr_t table_to_param( const AmqpClient::Array& a_array );
36  DRIPLINE_API scarab::param_ptr_t table_to_param( const AmqpClient::TableValue& a_value );
37 
38  DRIPLINE_API AmqpClient::TableValue param_to_table( const scarab::param_node& a_node );
39  DRIPLINE_API AmqpClient::TableValue param_to_table( const scarab::param_array& a_array );
40  DRIPLINE_API AmqpClient::TableValue param_to_table( const scarab::param_value& a_value );
41  DRIPLINE_API AmqpClient::TableValue param_to_table( const scarab::param& a_value );
42 
43 } /* namespace dripline */
44 
45 #endif /* DRIPLINE_AMPQ_HH_ */
AmqpClient::BasicMessage::ptr_t amqp_message_ptr
Definition: amqp.hh:26
scarab::param_ptr_t table_to_param(const AmqpClient::Table &a_table)
Definition: amqp.cc:14
#define DRIPLINE_API
Definition: dripline_api.hh:34
std::vector< amqp_message_ptr > amqp_split_message_ptrs
Definition: amqp.hh:31
AmqpClient::Channel::ptr_t amqp_channel_ptr
Definition: amqp.hh:24
AmqpClient::AmqpException amqp_exception
Definition: amqp.hh:28
AmqpClient::Envelope::ptr_t amqp_envelope_ptr
Definition: amqp.hh:25
AmqpClient::TableValue param_to_table(const scarab::param_node &a_node)
Definition: amqp.cc:94
AmqpClient::AmqpLibraryException amqp_lib_exception
Definition: amqp.hh:29