11#ifndef INCLUDED_GR_MESSAGE_H 
   12#define INCLUDED_GR_MESSAGE_H 
   30    typedef std::shared_ptr<message> 
sptr;
 
   38    std::vector<unsigned char> d_buf;
 
   39    unsigned char* d_msg_start; 
 
   40    unsigned char* d_msg_end;   
 
   46    unsigned char* buf_data() { 
return d_buf.data(); }
 
   47    size_t buf_len()
 const { 
return d_buf.size(); }
 
   63    long type()
 const { 
return d_type; }
 
   64    double arg1()
 const { 
return d_arg1; }
 
   65    double arg2()
 const { 
return d_arg2; }
 
   71    unsigned char* 
msg()
 const { 
return d_msg_start; }
 
   72    size_t length()
 const { 
return d_msg_end - d_msg_start; }
 
 
friend class msg_queue
Definition message.h:44
static sptr make_from_string(const std::string s, long type=0, double arg1=0, double arg2=0)
double arg1() const
Definition message.h:64
static sptr make(long type=0, double arg1=0, double arg2=0, size_t length=0)
public constructor for message
size_t length() const
Definition message.h:72
long type() const
Definition message.h:63
void set_arg2(double arg2)
Definition message.h:69
double arg2() const
Definition message.h:65
std::string to_string() const
unsigned char * msg() const
Definition message.h:71
void set_arg1(double arg1)
Definition message.h:68
void set_type(long type)
Definition message.h:67
std::shared_ptr< message > sptr
Definition message.h:30
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
GNU Radio logging wrapper.
Definition basic_block.h:29
GR_RUNTIME_API long message_ncurrently_allocated()