18 #ifndef INCLUDED_UHD_UTILS_MSG_TASK_HPP 19 #define INCLUDED_UHD_UTILS_MSG_TASK_HPP 23 #include <boost/shared_ptr.hpp> 24 #include <boost/function.hpp> 25 #include <boost/utility.hpp> 26 #include <boost/optional/optional.hpp> 32 typedef boost::shared_ptr<msg_task>
sptr;
35 typedef boost::function<boost::optional<msg_type_t>(void)>
task_fcn_type;
42 virtual msg_payload_t get_msg_from_dump_queue(boost::uint32_t sid) = 0;
46 std::vector<uint8_t> v(n);
47 memcpy(&v.front(), p, n);
50 return std::vector<uint8_t>();
boost::shared_ptr< msg_task > sptr
Definition: msg_task.hpp:32
std::vector< uint8_t > msg_payload_t
Definition: msg_task.hpp:33
boost::function< boost::optional< msg_type_t >void)> task_fcn_type
Definition: msg_task.hpp:35
Definition: msg_task.hpp:30
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
std::pair< uint32_t, msg_payload_t > msg_type_t
Definition: msg_task.hpp:34
static std::vector< uint8_t > buff_to_vector(uint8_t *p, size_t n)
Definition: msg_task.hpp:44