22 #ifndef INCLUDED_GR_MESSAGE_H
23 #define INCLUDED_GR_MESSAGE_H
54 unsigned char *d_buf_start;
55 unsigned char *d_msg_start;
56 unsigned char *d_msg_end;
57 unsigned char *d_buf_end;
69 unsigned char *buf_data()
const {
return d_buf_start; }
70 size_t buf_len()
const {
return d_buf_end - d_buf_start; }
75 long type()
const {
return d_type; }
76 double arg1()
const {
return d_arg1; }
77 double arg2()
const {
return d_arg2; }
83 unsigned char *
msg()
const {
return d_msg_start; }
84 size_t length()
const {
return d_msg_end - d_msg_start; }
85 std::string to_string()
const;
void set_arg2(double arg2)
Definition: gr_message.h:81
void set_type(long type)
Definition: gr_message.h:79
double arg2() const
Definition: gr_message.h:77
#define GR_CORE_API
Definition: gr_core_api.h:30
long type() const
Definition: gr_message.h:75
Message class.
Definition: gr_message.h:48
thread-safe message queue
Definition: gr_msg_queue.h:38
GR_CORE_API gr_message_sptr gr_make_message_from_string(const std::string s, long type=0, double arg1=0, double arg2=0)
GR_CORE_API gr_message_sptr gr_make_message(long type=0, double arg1=0, double arg2=0, size_t length=0)
public constructor for gr_message
#define arg2
Definition: gc_spu_macs.h:173
unsigned char * msg() const
Definition: gr_message.h:83
#define arg1
Definition: gc_spu_macs.h:172
double arg1() const
Definition: gr_message.h:76
GR_CORE_API long gr_message_ncurrently_allocated()
size_t length() const
Definition: gr_message.h:84
void set_arg1(double arg1)
Definition: gr_message.h:80